Notification

Icon
Error

KMS Activation: Office2013/16 & Windows 7/10 or only Office 2013/16 - Powershell Script to activate Office and Windows multiple versions

Posted: Friday, August 19, 2016 12:55:50 AM(UTC)
Lakatta

Lakatta

Member Alpha Tester Original PosterPosts: 19
1
Like
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.

Powershell - Activate - KMS Windows/OfficeDownload Package
DescriptionKMS activation

Activate windows 7 or windows 10
Activate All Office versions

Scroll to view how it works:

Powershell Script/Command running instructions
http://www.lansweeper.com/Forum/yaf_postst10730_PowerShell-from-Deployment-Package.aspx#post40186

Command:
powershell.exe -executionpolicy bypass -command {"commands go here"}

Scripts:
powershell.exe -executionpolicy bypass -file "{PackageShare}\Scripts\script.ps1"

Final ActionNothing
Max. Duration4 min(s), 0 hour(s)
RescanYes
Steps
1. Activate - KMS - Win/Office
TypeCommand
Return Codes 0,1641,3010
SuccessStop (Success)
FailureStop (Failure)
Command powershell.exe -executionpolicy bypass -file "{PackageShare}\Scripts\Template-ActivateKMSwinoffice..ps1"
JDav007
#1JDav007 Member Posts: 3  
posted: 7/7/2017 4:50:52 PM(UTC)
Can you provide powershell script/file?
abs0lut3
#2abs0lut3 Member Posts: 1  
posted: 10/17/2019 11:00:54 AM(UTC)
Originally Posted by: JDav007 Go to Quoted Post
Can you provide powershell script/file?


+++

Also, how moderators approved this?
Moreover, are installer packages get checked before publishing into catalog or not?

Active Discussions

Lansweeper Lansweeper Webserver Error
by  Bruce.B   Go to last post Go to first unread
Last post: Today at 3:19:01 AM(UTC)
Lansweeper LsAgent install issue
by  Susan.A  
Go to last post Go to first unread
Last post: Yesterday at 8:46:19 PM(UTC)
Lansweeper Is a Common Table Expression possible?
by  PatrickWolf   Go to last post Go to first unread
Last post: Yesterday at 6:52:24 PM(UTC)
Lansweeper Tracking assets like docking station, mouse and keyboards
by  cycleheat  
Go to last post Go to first unread
Last post: Yesterday at 5:00:39 PM(UTC)
Lansweeper Update to V. 7.2.107.4
by  cycleheat   Go to last post Go to first unread
Last post: Yesterday at 4:57:38 PM(UTC)
Lansweeper Windows Defender AV
by  Rob B  
Go to last post Go to first unread
Last post: Yesterday at 4:55:19 PM(UTC)
Lansweeper Scan Server Scanning wrong IP range
by  wayneRex   Go to last post Go to first unread
Last post: Yesterday at 3:49:36 PM(UTC)
Lansweeper Lansweeper support levels
by  RobertB  
Go to last post Go to first unread
Last post: 1/23/2020 10:39:05 PM(UTC)