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 Asset Out of Warranty & Asset Out of Warranty in 60 Days Reports
by  RC62N   Go to last post Go to first unread
Last post: Yesterday at 10:29:35 PM(UTC)
Lansweeper Voip Phone to Computer
by  lansend  
Go to last post Go to first unread
Last post: Yesterday at 1:27:10 AM(UTC)
Lansweeper Report Showing custom registry keys scanned
by  impagian   Go to last post Go to first unread
Last post: 1/23/2020 4:01:34 PM(UTC)
Lansweeper Dell Update v3.0
by  gmw158  
Go to last post Go to first unread
Last post: 1/22/2020 5:42:19 PM(UTC)
Lansweeper Report to compare softwareVersion
by  RC62N   Go to last post Go to first unread
Last post: 1/22/2020 4:57:16 PM(UTC)
Lansweeper Dublicate entries (multiple lines with assetname)
by  wkorrubel  
Go to last post Go to first unread
Last post: 1/22/2020 10:10:28 AM(UTC)
Lansweeper Only show string right of character N
by  RC62N   Go to last post Go to first unread
Last post: 1/20/2020 10:36:12 PM(UTC)
Lansweeper Report From Lansweeper For My Company
by  RC62N  
Go to last post Go to first unread
Last post: 1/17/2020 6:59:47 PM(UTC)