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)
'**** 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)