Skip to content

Windows

Symrak edited this page Jan 17, 2019 · 13 revisions

Windows systems useful commands list

Activation and Licensing

Manual Windows system activation

To enter new/change existing Windows product key use slui 3 command.
To activate Windows using phone execute slui 4 command.

To uninstall current product key and set trial state use: slmgr /upk.
To remove product key from the registry run: slmgr /cpky.
To reset product key and start an evaluation period: slmgr /rearm.

Note: all slmgr commands must be executed with elevated privileges.

Sources: urtech.ca, ss64.com


Windows system activation using deployed KMS server

For OS activation using on-premise deployed KMS server you need to execute several commands on client machine.
Note: all commands must be executed with elevated privileges.

Installing the KMS key for your Windows product (see full list of keys there):
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX.

Specifying the address of the KMS server manually (in case if you have no locally installed DNS server):
slmgr /skms <KMS Server FQDN or IP address>:1688.

Activating Windows on KMS server:
slmgr /ato.

Checking Windows activation status:
slmgr /dli.

Sources: docs.microsoft.com, docs.microsoft.com, theitbros.com


Office package activation using deployed KMS server

Source: docs.microsoft.com


Maintenance

Windows Defender disabling

To disbale Windows Defender you must change policy settings.
For this push Win + R key combination and run gpedit.msc (Local Group Policy Editor).
Then navigate next path:

Computer Configuration > Administrative Templates > Windows Components > Windows Defender Antivirus

Then find policy named Turn off Windows Defender Antivirus and set it's value to True, then reboot.

Source: windowscentral.com