08-19-2016 01:55 AM - last edited on 07-04-2023 04:37 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.
07-07-2017 05:50 PM
10-17-2019 12:00 PM
JDav007 wrote:
Can you provide powershell script/file?
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now