by Jacki Moody | Apr 7, 2021 | PowerShell
Windows 10 does not keep PowerShell up-to-date for you. It usually ships with version 5, even though version 7 is the current version. Luckily, you can easily get the files and run the updater from within PowerShell itself. First, check your current version with a...
by Jacki Moody | Oct 17, 2016 | Active Directory, PowerShell
You can easily retrieve an Active Directory group membership’s recursive user list with PowerShell. This three-line PowerShell command will retrieve all users in the Domain Admins group, and all users’s in that group’s groups, without returning the...
by Jacki Moody | Jun 24, 2016 | PowerShell, SQL
You can query a SQL database using PowerShell’s Invoke-Sqlcmd cmdlet. This cmdlet is included as part of the Sqlps module, which is installed on a computer by running SQL setup. If you need to load the module, use this command: Import-Module “sqlps”...
by Jacki Moody | May 14, 2016 | PowerShell
When I cannot send email from an application on a server, I use PowerShell to send an email to determine if it is the app our outside the application where the issue is. Here is an example sending an email with the following info. You should replace this with your own...
by Jacki Moody | Jan 23, 2016 | PowerShell, Windows
Groove is one of those apps that keeps popping up and advertising for itself, regardless of if you wanted it or not. Microsoft does not give you an uninstall through the interface, but you can remove it with a simple PowerShell command. Run PowerShell as an...
by Jacki Moody | Oct 29, 2015 | PowerShell
When displaying PowerShell results, sometimes you want to manually force a new line to help format it. PowerShell uses the escape character with two codes to do that: `r and `n. The first code, `r, stands for carriage return. It sets the current position of the...