
Feb 13, 2013
How To Start and Stop Services Using PowerShell Remotely
Admit it, you’re an admin that likes to do everything possible from the desk or laptop and if possible from a command line because automation is our friend. With the addition of PowerShell this is getting more of the norm for Windows and starting and stopping services remotely is probably one of the most used. To perform this task we will need to several cmdlets, some get-service stop-service... read more
Nov 8, 2012
How To Get Members of a Local Group with PowerShell
Every admin dreads audit and requests for members with privileged access. Some want screen shots, others use scripts and then there are those of us who like to tinker and use PowerShell for Windows. What the result is a script that gets the members of the local Administrators group and export it to a file. # Get members of local administrator group # getlocaladmins.ps1 $node = hostname # Set the... read more
Oct 10, 2012
How to Copy Files between Windows Systems with PowerShell Copy-Item
As a longtime Linux user I have always enjoyed the ease of being able to copy files between systems with scp, ssh and other means. With Windows systems this has been hit or miss in corporate environments with firewalls and block on the un-secure port 445 used by SMB. But with PowerShell there is another way for Windows administrators to enjoy what Linux / Unix admins have enjoyed for years. The copy-item... read more
Oct 9, 2012
How to use PowerShell to create HTML from a Text File
Recently I was tasked with creating a Cluster Health Report for the Windows 2008 R2 Clusters. I was able to do this with PowerShell using the failovercluster cmdlets. This was outputted to a text file and emailed to the support for review daily. To expand / enhance the report it was suggested to create it in HTML format. So back to PowerShell we go and low and behold we find the ConvertTo-Html cmdlet.... read more
Sep 20, 2012
Windows 2008 R2 Cluster Report with PowerShell
You know how it is, manager love reports and really we geeks like some reports as well. Recently I was tasked to generate a health check report for some of the Windows 2008 R2 Active / Passive clusters using PowerShell. With Windows 2008 R2 cluster Microsoft has provided FailoverClusters modules as well as the deprecated cluster command. There is no per say report to check for a status on clusters. Using... read more