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

Script to deploy out SP

Status
Not open for further replies.

theinvid

Technical User
May 24, 2002
33
0
0
US
Is there a way to get this script to install SP4 without logging in as admin or granting admin rights. I'm planning to use this as a login script for user. Thanks.



'**** Update Win2k to SP4 ************************
'*************************************************

'**** Map Drive **********************************
Dim WshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "Z:", "\\mcad01\update$"
'*************************************************
'**** Verify Current SP version ******************

Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegRead "HKLM\Software\Microsoft\Windows NT\CurrentVersion\CSDVersion"
If REG_SZ = "Service Pack 3" & "Service Pack 2" & "Service Pack 1" Then
WshShell.Run "z:\win2k_sp4\w2ksp4_EN.exe"
end if
wscript.Quit(0)
 
Try using Microsofts SUS server as the latest version delploys service packs - its free !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top