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
2
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

Report Center Hardware Inventory
by  Cori   Go to last post Go to first unread
Last post: 4/16/2021 4:05:02 PM(UTC)
Lansweeper Windows Activation
by  Hendrik.VE  
Go to last post Go to first unread
Last post: 4/16/2021 4:01:47 PM(UTC)
Lansweeper Microsoft True Up: Licenses combined with AD
by  swaelti  
Go to last post Go to first unread
Last post: 4/15/2021 12:25:41 PM(UTC)
Lansweeper Cisco Duo and associated registry keys
by  dhoward   Go to last post Go to first unread
Last post: 4/15/2021 12:30:14 AM(UTC)
Lansweeper Calls closed within SLA
by  TimHolmes1973   Go to last post Go to first unread
Last post: 4/13/2021 5:25:38 PM(UTC)
Lansweeper Report that ties O365 Group Member to Asset?
by  Chrisy Mullins  
Go to last post Go to first unread
Last post: 4/13/2021 1:34:26 PM(UTC)