I have two commands that are supposed to Activate an office product, but the code doesn't execute.
Could it be because I'm not using Execute-Process? I guess I assumed that it would still execute just using the process name since it's in the PATH env variable.
#*===============================================
#* INSTALLATION
$installPhase = "Installation"
#*===============================================
# Perform installation tasks here
$LyncArgs = "/config","SilentLyncConfig.xml"
Execute-Process -FilePath "$dirfiles\Setup.exe" -Arguments $LyncArgs
#*===============================================
#* POST-INSTALLATION
$installPhase = "Post-Installation"
#*===============================================
# Perform post-installation tasks here
cscript.exe 'C:\Program Files (x86)\Microsoft Office\Office15\OSPP.VBS' /inpkey:XXXX-XXXX-XXXX-XXXX-XXXX
cscript.exe 'C:\Program Files (x86)\Microsoft Office\Office15\OSPP.VBS' /act
and here is what the log shows:[24-11-2014 20:30:21] [Initialization] Session 0 detected.
[24-11-2014 20:30:21] [Initialization] Installation is running in [NonInteractive] mode.
[24-11-2014 20:30:21] [Installation] Working Directory is [C:\Windows\ccmcache\o\Files]
[24-11-2014 20:30:21] [Installation] Executing [C:\Windows\ccmcache\o\Files\Setup.exe /config SilentLyncConfig.xml]...
[24-11-2014 20:34:41] [Installation] Execution completed successfully with exit code [3010]. A reboot is required.
[24-11-2014 20:34:49] [Post-Installation] Microsoft_Lync2013Client__EN_01 Installation completed with exit code [0].
[24-11-2014 20:34:49] [Post-Installation] ----------------------------------------------------------------------------------------------------------
and the log stops there.Could it be because I'm not using Execute-Process? I guess I assumed that it would still execute just using the process name since it's in the PATH env variable.