Remove and deactivate Windows license
Log In or Register to download the BES file, and more.

1 Votes

Description

This task will deathorize a Windows license.

The task will only be relevant to activated Windows workstations.  It will evaluate as successful after it becomes no longer relevant.


Property Details

ID25208
StatusProduction - Fully Tested and Ready for Production
TitleRemove and deactivate Windows license
DomainBESC
CategorySoftware removal
SourceInternal
Source Release Date2/28/2018 12:00:00 AM
KeywordsWindows License Deactivate Deauthorize
Is TaskTrue
Added by on 2/28/2018 8:36:29 AM
Last Modified by on 2/28/2018 8:36:29 AM
Counters 183 Views / 1 Download
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

isWindows (Relevance 1172)
Used in 1096 fixlets and 523 analyses   * Results in a true/false
Show indented relevance
windows of operating system
Windows Activation State (Relevance 3008577)
Used in 1 fixlet   * Results in a "string"/number
Show indented relevance
(select "LicenseStatus from SoftwareLicensingProduct WHERE (PartialProductKey is not null) and (Name like 'Windows(R)%25')" of wmi) as string contains "1"
Used in 2 fixlets and 1 analsis   * Results in a true/false
Show indented relevance
(select ("ProductType from Win32_OperatingSystem") of WMI) as string contains "1"

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
dos cscript C:\Windows\System32\slmgr.vbs /upk /ato
dos cscript C:\Windows\System32\slmgr.vbs /cpky /ato
dos cscript C:\Windows\System32\slmgr.vbs /rearm /ato
action requires restart
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!
ReynardMuldrake -
Your relevance evaluation is faster, so I have updated the source on my end. Thanks for the suggestion.
jgstew -
exists string values whose(it = "1") of selects "LicenseStatus from SoftwareLicensingProduct WHERE (PartialProductKey is not null) and (Name like 'Windows(R)%25')" of wmis