Check the health of your SMS 2003 & 2007 servers
I run a PowerShell script which checks the health of my 20 SMS 2003 servers. Sure, I could install Microsoft Operations Manager (Microsoft MOM). But there is the cost for…
I run a PowerShell script which checks the health of my 20 SMS 2003 servers. Sure, I could install Microsoft Operations Manager (Microsoft MOM). But there is the cost for…
I use the following piece of code in my “Check SMS Server are healthly” PowerShell scripts. I had a case recently where the SQL Server process decided to use 80%…
The first thing you might notice is that the PowerShell version is a bit shorter. 3 lines of VBscript code, compared to 1 line of PowerShell script. That is, 1…
It looks like it’s going to be a week of scripting blog posts. Today’s script is used to reboot a list of remote computers. Sometimes, when deploying security patches, the…
With PowerShell, I needed to get a count of files in a particular directory. This is what I came up with. # # Get a count of files in a…
I needed to read the last line of a log file. PowerShell made it very, very, easy. All you need to do is Get-Content the file, and then pipe it…
Get-ComputersNearMe Today I learned a little bit about how to get to some of the data stored within special shell folders. You can get a list of all of the…
The Windows PowerShell syntax was deliberately chosen to facilitate ease of use and ease of learning. Corporate enterprise Windows administrators are the target audience. - Windows PowerShell Scripting Guide by…