SetupComplete.cmd after sysprep unattend - %ProgramFiles% syntax for Win 8.1
Posted on 2014-04-28
I want to adapt the following SetupComplete.cmd file for Windows 8.1 64 bit:
del /F /Q %WINDIR%\Panther\unattend.xml
del /F /Q %WINDIR%\System32\Sysprep\unattend.xml
%WINDIR%\System32\cscript.exe %WINDIR%\System32\slmgr.vbs /ato
%windir%\system32\cscript.exe "%ProgramFiles%\Microsoft Office\Office15\ospp.vbs" /act
This script was written for Win 7 32 bit PCs.
I have not tried to use it with Win 8.1 64 bit because it looks like it will fail with the variable %ProgramFiles%. I don't know much about variables, but I know ospp.vbs is in Program Files (x86) and not Program Files.
Secondly, I cannot actually find %ProgramFiles% in the list of variables under advanced system settings.
As I say I know very little about environmental variables.
Do I need to modify this script?
Why does the %ProgramFiles% variable not appear to already exist?