Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script to change Registry settings

Status
Not open for further replies.

bowflyer

IS-IT--Management
Apr 10, 2006
27
US
Thanks to PHV for getting me going on this!!

I'd like to use a script to change registry settings on remote PCs

1. ask what PC
2. copy the designated registry settin from mine to what ever PC i designated in question 1

--------------------
could someone help me with the what I would need to change on the following?

script
-----------------------------------
Dim pcName, intAnswer
Set WShell = CreateObject("WScript.Shell")
Do
pcName = Inputbox("Enter Computer Name","Enter Target for Copy")
If Trim(pcName) = "" Then Exit Do
WShell.Run "c:\Powerpush\copy.bat " & pcName
intAnswer = _
Msgbox("Do you want to do another?", _
vbYesNo, "Kris Rules")
Loop While intAnswer = vbYes


----------------------------------
bat file associated
---------------------------------
c:

mkdir "\\%1\c$\program files\XXXXX\YYYY\ZZZZZ"

xcopy "c:\program Files\XXXXX\YYYY\*.*" "\\%1\C$\XXXXX\YYYY\ZZZZZ\" /e





any ideas ?


 
for clarity I will also add that what I'm trying to do is change the VNC password remotely

I'm the 5th person to inherit this network so there is no consistency in the password. and I end up guessing a lot.
 
+you can using WMI to remotely configure registry on remote machines.
+you using WMI to start a remote thread which runs regsvr32 and imports a .reg file from a server share?
+ you can get your script to run as a logonscript then you dont have to wrry about machine names or remote access
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top