Rearm Windows Activation before creating MSAcc
This commit is contained in:
parent
4a4f8eeab7
commit
4a2753e928
1 changed files with 6 additions and 0 deletions
|
@ -92,6 +92,12 @@ $null = New-Module {
|
|||
Register-Setup -DefaultUser;
|
||||
Enable-OneShotListener;
|
||||
Enable-UAC;
|
||||
|
||||
# Reset Windows activation status
|
||||
# Otherwise the login won't work - Windows is fricking frustrating.
|
||||
slmgr /upk;
|
||||
slmgr /cpky;
|
||||
slmgr /rearm;
|
||||
Restart-Intermediate -CurrentUser;
|
||||
exit;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue