Notification

Icon
Error

Script: KMS Activate Windows and Office - Activate windows 7/10 and Office 2013/2016 32/64bit

Posted: Friday, August 19, 2016 12:58:16 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.

Handles attachments
Template-ActivateKMSwinoffice-w-logging.txt (9kb) downloaded 462 time(s).
Template-ActivateKMSwinoffice.txt (5kb) downloaded 609 time(s).
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"
aedwards
#1aedwards Member Posts: 1  
posted: 2/20/2017 6:46:49 PM(UTC)
Can you run this from LanSweeper? if so how do i execute it?

Active Discussions

Installer Uninstall KB5000802
by  hirogen   Go to last post Go to first unread
Last post: 6/8/2021 2:49:19 PM(UTC)
Installer Freezerworks 2021 Client
by  mzipperer  
Go to last post Go to first unread
Last post: 6/2/2021 11:59:05 PM(UTC)
Installer Install .Net Framework 4.7.2
by  John B Fairbrother   Go to last post Go to first unread
Last post: 5/6/2021 4:58:23 PM(UTC)
Installer Sophos Silent Install
by  Craig  
Go to last post Go to first unread
Last post: 4/14/2021 8:09:58 PM(UTC)
Installer Say what you write
by  RobertoP   Go to last post Go to first unread
Last post: 3/31/2021 1:30:54 PM(UTC)
Installer RDP - enable/disable - add/delete users
by  RobertoP  
Go to last post Go to first unread
Last post: 2/9/2021 11:25:52 AM(UTC)
Installer Microsoft Edge (Chromium) 84.0.522.44
by  PLSJohnJohn   Go to last post Go to first unread
Last post: 1/21/2021 11:46:38 PM(UTC)
Installer Install Tight VNC server
by  RobertoP  
Go to last post Go to first unread
Last post: 12/16/2020 2:48:36 PM(UTC)