Top 10 PowerShell Aliases
Top 10 PowerShell Aliases for DOS Commands. I have discovered two types of Alias aficionados. Firstly, there are those who like to use aliases such ‘dir’, ‘cd’ or ‘cls’ in PowerShell, because they used the same commands in DOS. Secondly, there are those who embrace PowerShell aliases such as ‘sort’, …
Introduction to Windows PowerShell Select-String Select-String not only opens a file, but also checks for a word, a phrase, or in fact any pattern match. If you have used -pattern to make changes, PowerShell also tidies up and closes the file automatically. Topics for PowerShell Select-String Example 1a Select-String Example …
Introduction to Scripting Eventlog on a Remote Machine Work in Progress. PowerShell Eventlog Diagnostics Topics Example 1: Eventlog with System.Diagnostics Example 2: Diagnostic EventLog Summary of Eventlog ♣ PowerShell Pre-requisites and Checklist In the case of Windows 7 and later, you don’t need to download any extra files, just: ‘Add …
PowerShell Script Files: Get-Content Cmdlet The ability to ‘Get-Content’ is useful for itself; moreover, this cmdlet illustrates how easily PowerShell deals with reading from text files. Incidentally, this page also demonstrates looping, which is a classic job for automation via scripting, and a task that PowerShell delivers with deceptive ease. …
PowerShell v 3.0 Disable Network Adapter PowerShell version 3 makes it easier than ever to control your NIC (Network Interface Card) with Enable and Disable-NetAdapter cmdlets. Tutorial for Disable-NetAdapter Scenarios for PowerShell’s Disable-NetAdapter How to Disable One of Your Network Cards Enable Your Disabled Network Card Troubleshooting Disable-NetAdapter Research The …
PowerShell Examples Featuring Get-Service This page of PowerShell examples concentrates on Windows services. While ‘Get’ is PowerShell’s default verb, this page alerts you to additional verbs such as stop, start and restart. Topics for PowerShell Service Examples Finding Files Example 1: Get-Service – The Basics Example 2: More Verbs For …
PowerShell Restart-Computer PowerShell v2.0 introduces the Restart-Computer cmdlet, which is very similar to the operating system’s built-in shutdown /r command. A likely scenario is that you wish to automate the reboot of a local or remote server. Topics for PowerShell Restart-Computer Introduction to Restart-Computer Restart-Computer and Stop-Computer Simple Example of …