Quantcast
Channel: The Official Scripting Guys Forum! forum
Browsing all 15028 articles
Browse latest View live

PowerShell Output to Excel (Without MS office/Excel on system)

HiI have Microsoft Data Protection Manager server for our exchange and SQL databases. DPM monitoring is possible through SCOM and other third party tools. So I am using below script to fetch failed job...

View Article


Remove "Everyone" permissions from folders

Hello Scripting Guys,I'm in need of assistance, I'm currently working on fixing the mistake of another team, they were tasked with the creation of several shares, but made a mistake on the creation and...

View Article


Powershell and DelProf2

Hello,Can anyone advise me why my script isn't working? I can't seem to figure it out.$user = Read-Host "Enter username to delete profile or 'all' to delete all profiles." $arguments = @("/u", "/q",...

View Article

Setting Win32_DCOMApplicationSetting.RemoteServerName using Powershell

Hello, I am using Windows Server 2008R2 and Powershell 3.0 (Upgrading to 4.0) I want to be able to set the RemoteServerName and clear the LocalService on a DCOMApplicationSetting. I tried:$dcom =...

View Article

Appending computer name in web path

Howdy all,I am new to VBS and am working on an automated speed test. Computers in our fleet will open a web page that performs the test, and exports results into a MySQL database. That part is done...

View Article


Powershell - convert list of Hex values to Decimal

Hi, I have a need to convert a list of Hex values in a text file into decimal, so for example c:\test.txt might contain:0x000010df073a7da0If I use the below code this works well $a = get-content...

View Article

Save As multiple files in VB

Hi,Using the Script for VB worked to open multiple .xls files.  Now I want to add to the code and Save As Text files with original name.thx

View Article

Roaming profile folders and redirect folders cleanup script needed

Greetings,I inherited a network that uses roaming profiles and folder redirection.  A recent problem has been storage space is getting consumed as staff leave the organization and no one archives or...

View Article


Setting Share Permissions for Windows 2003 Server

I have a script that properly sets up a new share on a Windows 2012 server, but it will not work for our Windows 2003 server.Is there something that I am overlooking? #AccessMasks: #2032127 = Full...

View Article


Read last characters from a file

Hey All:i'm a novice when it comes to powershell- but this is what i'm trying to do.I have the following command- gwmi-classwin32_computersystem|selectName|out-filec:\computername.txtI want to then...

View Article

Powershell dealing with a range of computer names.

Hello all.  Abridged description, I'm a lab admin trying to re-write a VBS login script into Powershell.  I need to be able to run commands determined by computer name and number...for instance, I have...

View Article

Auditing active directory group and send email report

Hi All,I want to setup a script that will automatically audit some active directory group and send a email report. Actually, the script is working fine but I would like to add the following below:1-...

View Article

I want to create a script that will fetch all read and write access...

Kindly help in this. I really need this script urgently.

View Article


DSC error: Cannot invoke the SendConfigurationApply method. The...

Hello,I ran a DSC configuration script, it seemed to hang, and I received an error that I can't find a resolution for anywhere:"Cannot invoke the SendConfigurationApply method. The...

View Article

Combine each element of the same line by multiple arrays

I have a script that extracts some values from a list of log files. Each value is inserted in an array. At the end of the script I'd like to combine each line of each array and export them in an excel...

View Article


Install Script to include license key

Hello everyone, I am attempting to create a basic install PowerShell script for *.exe and *.msi files; now I know this will not be the seem for everything of course but I am trying to get as close as...

View Article

How to implement below functionality in C#

Hi All,I need some help to implement below functionality using C# code, 1. I need to convert IPv6 Address to Long 2. Convert Long value to IPv6 Address.3. How to convert IPv6 Address Mask to Long...

View Article


Batch File Search and Replace a String

I've written a batch file to handle the copying of files.  I'm trying to reduce the number of parameters that I pass to the batch file.I want the batch file to perform a string replace on the directory...

View Article

Renaming Multiple pdf files

I have NUMEROUS pdf files that are Transcripts.  The company sent them to me with 0000.lastname.firstname.dob.pdf  The 0000 is for non-graduates and there are Transcripts from 1926-1976.  Basically,...

View Article

Export-Csv

$VPNUsers=Import-Csv "C:\Omar\Support_Tools\My_Scripts\My_Scripts\test.csv" $PrimaryDC = 'AD-PDC002.gotransit.local' $DomainName = 'gotransit' Clear-Host Connect-QADService -service $PrimaryDC Function...

View Article
Browsing all 15028 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>