Anyone write me a VB Script please?
See my batch file below, could someone possibly kindly rewrite this in a vbs for me?
net use t: \\ccmgmt01\its /User:domain.local\administrator P&ssword
msiexec /qn /i "t:\APPS\AB\v6\silent\abtclient6.msi"
net use t: /delete /y
@echo Checking to see if Aero capable...
@echo Switching off Hibernate...
powercfg -h off
@echo Installing Sophos Antivirus, please wait...
net use s: \\ccsophos01.domain.local\sophosupdate /User:domain.local\sophos P&ssword
setup.exe -updp "\\ccsophos01\SophosUpdate\CIDs\S000\SAVSCFXP" -user "domain.local\sophos" -pwd "P&ssword" -mng yes
net use s: /delete /y
del /f "c:\windows\system32\sysprep\x64unattend.xml"
The reason I need it rewriting is that although the script works perfectly mdt seems to find something wrong with it and causes the task sequence to report errors at the very end. What I've done for now is write a very basic vbs that simply calls the batch file above. Although this works its not 100% ideal.
Thanks for anyone that can help!!