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

Powershell Script - change folder owner based on data from a csv file

Hi I've got a Powershell script which allows me to change the owner of a users home drive from it's current owner (administrators) to the user, but it only allows me to do one user at a time. I've...

View Article


How to add new group entry in Cisco Vpn using powershell

I am working on a powershell script to connect cisco vpn using powershell, I am able to connect to vpn but not sure how to add new group to vpn. I am using the following script$vpn_profile = 'Test'...

View Article


Script to look up user's SID and then delete entry from registry \ProfileList

I need to be able to run a script VB or PowerShell (PS preferred) to look up a AD user accounts SID, search for that SID in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList...

View Article

Powershell For SCR Replication Health

Hello Everyone - I have a script that I found from the web and wanted to use it to help send us email notifications on the status of our SCR replication health. We have 8 SCR Storage groups being...

View Article

WMI32_Volume not returning data from new disk

I am working with a Windows Server 2003 R2 server and have been running an SSIS package to gather volume information using the following statement withina WMITask:select Name, Label, BlockSize,...

View Article


Script to modify the location attribute in an existing subnet registered on...

Could anyone help me to make an script to modify the location attribute in an existing subnet registered on AD sites and services. Using the script to create subnet, like this one below, occurs error...

View Article

wmi Win32_printer and compare with csv file and delete printer for Zero clients

I am getting the mac address of the zero client and then importing a csv. from there i filter out all records from the printers list that don't match with the mac address. After the printers are found...

View Article

Combining three Robocopy commands into one

I would like to combine all three robocopy commands into one. <o:p></o:p>c:\windows\system32\robocopy.exe\\Source1\\destination1*.*/mov /w:1 /r:1 c:\windows\system32\robocopy.exe \\Source2...

View Article


VBScript elevated command with output to file

Hi All,I am trying to run the following test.vbs However after the script run successfully the text file is always blank. Any ideas why the output is not saving in the text file?Code is below:Set...

View Article


Excel VBscript

Hello everyone,   I'm in dire need for a vbscript script that will make my job alot easier and any help is very much appreciated. The function of the script must do the following:  1. when the script...

View Article

How to know the installer of any .EXE file and the silent Switches for...

hi everyone,i want to know that how can i know that any .exe file installer and the silent installation switches with that.I need tools who can search the installer for a specified .EXE file and silent...

View Article

Copying a file through an unknown directory to known directory

Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.GetFile("c:\temp\abc\123.xml") objFile.Copy "c:\programdata\ABC\DEF\XXXXXX\JKL\"I am using the above in a *.VBS to copy...

View Article

PowerShell: the Begin, Process, and End blocks are all skipped when executing...

I am learning PowerShell and have written my first script, a twenty line, one page script (after reading through Ed Wilson's First Steps, Step-by-Step, and then the Deep Dives book). Surprisingly, no...

View Article


Getting a number from within a string

I have a folder with several hundred picture files of our employees that are named in the format first name last name employeeid.jpg. For example, we would have files like john smith 213333.jpg and...

View Article

powershell Script to install ,update, remove device drivers (Network adapters)

powershell Script to install ,update, remove device drivers.

View Article


How do I uninstall a network interface driver using Powershell cmdline.

Hello,I am trying to automate network interface driver installation/uninstallation.I have looked into pnputil, it works, but it only removes the oem.inf file rather than actually uninstalling the...

View Article

Change all Roaming User Profiles to Local in server 2008

Hello!We're going into a major rollout which will require to re-create all users profiles. Before doing so, we need to set their roaming profiles on Windows Server 2008 to local. Our users log in to...

View Article


The Answer + 1

I know I'm a relative newbie, but this just cost me two hours of troubleshooting an application sync issue that didn't exist.  Can somebody please tell me why this is returning a count that's one...

View Article

Batch file extracting all files from nested archives

I have managed to leverage a powerful forfiles command line utility with the mighty 7z compression program.Below is a simple batch file extracting all files from nested archives hidden at any depth...

View Article

Image may be NSFW.
Clik here to view.

get-aduser script with .csv output of Name, UserPrincipalName, Enabled,...

PowerShell Maestros,My goal using PowerShell v4.0 is to perform a .csv export of all Active Directory domain groups members with specific properties for each domain user account.  I want to create a...

View Article
Browsing all 15028 articles
Browse latest View live


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