Home   ::  Login   ::  Register   ::  Post

:: Computers & Technology

Common useful power-shell commands

Posted: 2016-08-05

dism /online /get-features /format:table - Displays list of Features and their state (enabled or disabled) in a friendly format

Rename-Computer pc1 - Renames the computer to PC1

Restart-Computer - Restarts or reboots the computer

Stop-Computer - Shuts down the computer

Restart-Computer -ComputerName PC2 - Reboots remote computer named PC2

Stop-Computer -ComputerName PC2 - Shuts down remote computer named PC2

Get-NetIPConfiguration - Display computer IP information (IP, Gateway, DNS, Interfaces, etc)

New-NetIPAddress -InterfaceAlias Wi-Fi -IPAddress -PrefixLength 24 -DefaultGateway - Assigns new IP address and default gateway to the Wireless interface. -Prefixlenght indicates number of network bits.

Set-DnsClientServerAddress -InterfaceAlias Wi-Fi -ServerAddresses - Sets up DNS server for the Wireless interface

Add-Computer -DomainName spidertip - Joins computer to a domain called spidertip

Invoke-GPUpdate -computer pc2 - Updates GP on remote computer

Invoke-GpUpdate -Computer pc1 -RandomDelayInMinutes 0 -Force - Forces GP update on a remote computer pc1

© Copyright 2019-2020 SpiderTip.Com