The -ShowWindow parameter will give you a popup window with the help topic you’re researching. You can search words and phrases within the help topic. The found term is highlighted for easy reading and you can move between terms using the previous and next buttons. The window can be resized and you can increase or decrease the text with the slider at the bottom of the window. The description is a bit shorter for some cmdlets, but there are even some command examples displayed in the help window to get you going without coming out of your prompt.
Gone are the days of opening a second Powershell window to reference the help while crafting command line syntax. -ShowWindow is a great too in the Powershell arsenal.
~Note~ This works differently in PS 4.0 and 5.0. and within different builds of Windows 10.
Some contents are missing or out of order. It appears it is a known issue.
Your mileage may vary.
Don’t forget HelpCmdletname-online It launches help in the browser. Keeping you in your PS window without taking you away from your prompt.
You get a helpdesk ticket that a user needs to be added to an AD group. A quick command in PowerShell is all you need. By the time Active Directory Users and Computers opens, you’re closing the ticket.
Open a PowerShell prompt:
Add-ADGroupMember NameOfADGroup userID09
To confirm the account is there, run this: Get-ADGroupMember NameOfADGroup | select SamAccountName | sort-object SamAccountName -descending
Sometimes you need to test to make sure you’re entering the correct the right password. Be it a service account while installing a app or testing a password reset.
The start-process cmdlet is used to start one or more processes on a local computer. Get-Credential gets an object based on username and password. Use it to open an application and test the credentials.