Install-WindowsFeature = install Windows apps
ServerManager = opens up Server Manager GUI
get-ciminstance -classname win32_computersystem | select -object model = get your computer model
iisreset = restarts iis server
wf = opens up firewall
$ServicePID = (get-wmiobject win32_service | where { $_.name -eq 'service name'}).processID
$Stop-Process $ServicePID -Force
#First enable SSHServer on that Windows machine and ssh remote into it. Then run Powershell to open a powershell command prompt on the remote machine and run this command:
$Get-Service | Where-Object {$_.displayName -like "*remote*"} ==> this will find all services that have word "remote" into their DisplayName and will show you the ServiceName and Status of these services as well
$Get-NetAdapter -Name Local* | Get-Member -MemberType Properties
$Get-NetAdapterPowerManagement
$ $env:path.split(';')
$env:AWS_PROFILE="yourAWSuserName"
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))