

$ConsoleTitle = 'Microsoft Office and Windows Activation', NOTE: I advise putting the script near the end of a task sequence. Here is a screenshot of the script in action: powershell.exe -executionpolicy bypass -command ActivateOfficeWindows.ps1 -ActiveOffice.powershell.exe -executionpolicy bypass -command ActivateOfficeWindows.ps1 -OfficeProductKey "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX".Input the office product key without activation.powershell.exe -executionpolicy bypass -command ActivateOfficeWindows.ps1 -OfficeProductKey "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" -ActiveOffice.Input the office product key and activate office.powershell.exe -executionpolicy bypass -command ActivateOfficeWindows.ps1 -ActivateWindows.


I wrote this script because we currently have both x86 and 圆4 systems, therefore the OSPP.vbs resides in different locations. Here is a script that will activate both Microsoft Office and Microsoft Windows.
