by mtsimmons | Jul 23, 2010 | Uncategorized
Here’s a great piece of profile customization: Make your PowerShell session have a dark red background each time it starts a session running as an administrator. To do this, I look the built in $host variable, which has several properties in it, such as the...
by mtsimmons | Jul 23, 2010 | Uncategorized
Excellent profile customization. I use this one myself, and honestly it’s my favorite one. Keeps my head in the right place. This PowerShell profile customization is simple and sweet: Go grab a webpage source; parse the lines to get to the juice;...
by mtsimmons | Jul 22, 2010 | Uncategorized
If you want a fast way to get information about the uninstallers that are listed in the registry, then check out this simple script to parse out some information for you. $searchterm = read-host “Enter search term for uninstallers” $uninstallers =...
by mtsimmons | Jul 22, 2010 | Uncategorized
Alright, so you’ve built up your skills, developed your script, got all the kinks worked out and now it’s time to set the sucker up to do your work for you. I know, I’ve been there myself. This tutorial shows you how to setup a scheduled task to run your PowerShell...
by mtsimmons | Jul 21, 2010 | Uncategorized
If you need to automate a task to create a file once a day, this PowerShell tutorial will help. This problem is handled in 2 parts: Doing the task you want to do; and saving the output. First things first: We need something to do Since this post is really about...
by mtsimmons | Jul 21, 2010 | Uncategorized
The need: To run multiple PowerShell windows and keep it straight which one is working on what. Example: In PowerShell window #1 you’re working with SharePoint In PowerShell window #2 you’re working with Active Directory users In PowerShell window #3 you’re...
by mtsimmons | May 27, 2010 | Uncategorized
Whether you’re new to PowerShell or not, when you find yourself ready to start customizing PowerShell and making it do a few tricks, you’re going to want to setup your profile. Don’t worry, I will show you how to create your profile, and even show...
by mtsimmons | May 27, 2010 | Uncategorized
Just had a couple techs scratching their heads about finding the path. Seriously? Yes. But to be fair, the path can get long and downright hard to read. And that was the problem for our tech friends. Now my friends are smart guys, but they had a problem with a path....
by mtsimmons | Apr 13, 2010 | Windows PowerShell (Legacy)
This quick free lesson in PowerShell teaches you how to use the ping class to get a list of offline computers. It is fast and easy, and the results are much easier to work with than using ping.exe. Hey. This post is from 2010. When it was written there was no...
by | Apr 2, 2010 | Uncategorized
How to Move a Computer Account From Within Powershell I’m going to show you how to move a computer account to its new OU in just one line. Not only that, I don’t even need to know the name of the OU it’s going to be placed in. That piece of information is going...