The best way to learn PowerShell is to use PowerShell. One of the easiest ways to do that is to take common tasks you perform from the command prompt, such as using the ping utility to check network connectivity, and use the PowerShell equivelant.
For example: Test-NetConnection 8.8.8.8
And before you say “well that’s more typing than I need for ping” try the following
Test-NetConnection –traceroute 8.8.8.8
Here is a small number of other useful cmdlets that might help Server 2003 admins that aren’t familiar with PowerShell get more comfortable with it:
- Get-NetIPConfiguration View IP address information (ipconfig functionality)
- New-NetIPAddress Set IP address configuration (netsh interface functionality)
- Stop-Service and Start-Service Stop and start a service use (net stop / net start)
- Rename-Computer Rename a computer
- Restart-Computer Restart a computer
- Shutdown-Computer Shutdown a computer
- Add-Computer Add a computer to a domain
- Install-WindowsFeature Add a role or feature to a computer
- New-VM Create a new VM
- Get-Hotfix See which updates are installed
- test-computersecurechannel –Repair Repair the trust relationship between a computer and the domain
0 comments
Hide comments