‎08-19-2016 01:58 AM - last edited on ‎07-04-2023 05:38 PM by ErikT
Summary:
This is normally part of a post clone script which does a lot more. I thought this might be able to help someone.
You must allow scripts to run on your computers. the easiest way in a secured environment is to set the running scripts policy to unrestricted in the registry.
BTW, the first part of the script will launch, elevate, and run the powershell script as an administrator.
How to use:
Edit the powershell script to reflect your KMS server name. If you want to log the actions, then use the w-logging.ps1 file. Edit the script and remove the comment tags as directed at the top of the script.
Place the file or files in your scripts folder (you can place them anywhere really). Rename it of course.
The deployment is a command: powershell.exe -executionpolicy bypass -file "{PackageShare}\Scripts\Powershell\Template-ActivateKMSwinoffice..ps1"
And that's it.
‎02-20-2017 06:46 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now