
Originally Posted by
mac_shinobi
@
Steve21 - may be able to help with the vbs side, might be others who may be able to suggest something else ?
Oops
Been busy week didn't notice this!
@mbrunt
Can't really test this due to your paths etc, but this should work unless I missed some syntax changes from your exes etc, but try this when you have a minute
Code:
dim objNetwork
Set objNetwork = CreateObject("Wscript.Network")
objNetwork.MapNetworkDrive "T:", "\\ccmgmt01\its", False, "domain.local\administrator", "P&ssword"
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "msiexec.exe /qn /i "t:\APPS\AB\v6\silent\abtclient6.msi""
objNetwork.RemoveNetworkDrive "T:"
WshShell.Run "winsat.exe dwmformal"
WshShell.Run "powercfg -h off"
objNetwork.MapNetworkDrive "S:", "\\ccsophos01.domain.local\sophosupdate", False, "domain.local\sophos", "P&ssword"
WshShell.Run "S:\CIDs\S000\SAVSCFXP\setup.exe -updp "\\ccsophos01\SophosUpdate\CIDs\S000\SAVSCFXP" -user "domain.local\sophos" -pwd "P&ssword" -mng yes"
objNetwork.RemoveNetworkDrive "S:"
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
fso.DeleteFile "c:\windows\system32\sysprep\x64unattend.xml", True
fso.DeleteFile WScript.ScriptFullName Steve