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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

for loop script

Status
Not open for further replies.

ApurvaD

MIS
May 1, 2003
1
US
Hi All, I'm new here...

Was wondering if someone could share a sample for loop script that would go through a textfile full of machine names and do a regisrty hack on each box. I'm new to this, so I hope I'm not offending anyone with this kind of simple request. Much appreciated.

Apurva

 
The idea behind SMS software distribution is to target machines in the collections. Create a package and distribute it. You can use SMS Installer that comes with SMS to create a script that makes the registry changes you need. There is a book on SMS Installer you should look into obtaining. Search on Amazon.com for 'SMS Installer'.

Rod Trent
Microsoft.MVP.SMS
=======================================
Main site: =======================================
 
Here is some vbs that may help out:

strFile = file with list of device names

Set objTextFile = objFSO.OpenTextFile (strFile, 1)
Do Until objTextFile.AtEndOfStream
strTarget = objTextFile.Readline
strTarget = Trim (strTarget)
If strTarget = "" then
Exit Do
Else
[put your code to do stuff here]
End If
Loop
Set objTextFile = Nothing

Scripting registry changes:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top