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

Lansweeper Windows 10 Upgrade to 2004
by  Alex Beaumier   Go to last post Go to first unread
Last post: Today at 1:18:01 PM(UTC)
Lansweeper snmp trap HP 1910 switch
by  info   Go to last post Go to first unread
Last post: Today at 11:52:17 AM(UTC)
Lansweeper Lsagent cloud relay changes the scanserver value
by  ghelpdesk  
Go to last post Go to first unread
Last post: Today at 2:45:11 AM(UTC)
Lansweeper Is there a chance to get the firewall off via Lansweeper?
by  RedWood   Go to last post Go to first unread
Last post: Yesterday at 11:23:31 PM(UTC)
Lansweeper Not working Wake on Lan
by  RedWood  
Go to last post Go to first unread
Last post: Yesterday at 11:17:33 PM(UTC)
Lansweeper Wake on Lan Issues
by  RedWood   Go to last post Go to first unread
Last post: Yesterday at 11:06:12 PM(UTC)
Lansweeper New Web Interface
by  anpatterson03  
Go to last post Go to first unread
Last post: Yesterday at 10:05:19 PM(UTC)