Basic activities are executed through
"sconfig"
You might login to a black screen in windows core.
Control + Alt + Del -> Launch taskmanager -> New process “cmd.exe” or powershell.exe
//Windows core remove updatewusa /uninstall /kb:123456
//Reset AD passwordSet-ADAccountPassword "CN=admin,CN=Users,DC=Microsoft,DC=Com" -Reset -NewPassword
//Install a role
get-windowsfeature
Install-windowsfeature
//Enable remote Powershell
//Enable remote Powershell
Enable-PSRemoting -Force
-x2 on both client + Server
Set-Item wsman:\localhost\client\trustedhosts *
-x2 on both client + Server
//Connect to the remote server from the client
Enter-PSSession -ComputerName 10.0.200.9 -Credential administrator
Running unsigned powershell scripts
//Powershell script default permissions
Servers = Remotesigned
Host machine = restricted
//What is my signed status
get-executionpolicy
//Run unsigned .PS1 scripts
set-executionpolicy unrestricted
//Run signed .PS1 scripts
set-executionpolicy allsigned