I'm getting a error Line 15, Char 50, Error Expected end of statement, Code 800A0401. What's missing? 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" or "Service Pack 2" or "Service Pack 1" Then
WshShell.Run "runas /user:domain\administrator "z:\win2k_sp4\w2ksp4_EN.exe" | sanur.exe password"
end script
'**** 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" or "Service Pack 2" or "Service Pack 1" Then
WshShell.Run "runas /user:domain\administrator "z:\win2k_sp4\w2ksp4_EN.exe" | sanur.exe password"
end script