Mapping Cluster.exe Commands to Windows PowerShell Cmdlets for Failover Clusters – Extended Edition

While many of the Windows Server Failover Cluster (WSFC) administrators have moved from the old CLUSTER.EXE command-line to the new PowerShell interface, I know at least a few holdouts out there. It’s probably the fact that they have used the old CLI since the early days of Microsoft Cluster Services (MSCS), combined with the fact … Continue reading Mapping Cluster.exe Commands to Windows PowerShell Cmdlets for Failover Clusters – Extended Edition

PowerShell v2: Get-Date vs [System.DateTime]::Now – What’s the difference?

I was trying to figure out why people use the more complicated [System.DateTime]::Now instead of the simple Get-Date.They do the same thing and they both return an object of type "System.DateTime". PS C:> Get-DateThursday, April 08, 2010 10:46:48 PM PS C:> [System.DateTime]::NowThursday, April 08, 2010 10:46:59 PMThe only possible different is the performance. Yes, Get-Date … Continue reading PowerShell v2: Get-Date vs [System.DateTime]::Now – What’s the difference?

Using PowerShell V2 to gather info on free space on the volumes of your remote file server

Overview  In a previous blog post, I have examined some of PowerShell’s control structures and included an example gathered some information from web. If you haven’t seen it, you can check it at http://blogs.technet.com/josebda/archive/2010/04/04/experimenting-with-powershell-v2-scripting-variables-and-control-structures.aspx. At the end of that post, I suggested a project to check free spaces on file servers. That’s what this post … Continue reading Using PowerShell V2 to gather info on free space on the volumes of your remote file server

Experimenting with PowerShell V2 scripting, variables and control structures

Last week I was testing Visual Studio 2010 to write a C# application to export all my blog posts to a file. I described that in some detail at http://blogs.technet.com/josebda/archive/2010/03/21/experimenting-with-visual-studio-2010-and-backing-up-the-entries-on-my-blog.aspx I am performing the exact same task, but this time using PowerShell V2. The basic idea is still the same and I am still using … Continue reading Experimenting with PowerShell V2 scripting, variables and control structures

Comparing RPC, WMI and WinRM for remote server management with PowerShell V2

1. OverviewIn a recent blog post, I was looking at PowerShell V2 remoting in Windows Server 2008 R2. If you haven’t seen it, take a look at http://blogs.technet.com/josebda/archive/2010/03/31/experimenting-with-powershell-v2-remoting.aspx. In that post, I mentioned three different ways to gather information about services on a remove server (throughout this post, I use this task as an example … Continue reading Comparing RPC, WMI and WinRM for remote server management with PowerShell V2

Experimenting with PowerShell V2 Remoting

As I continue to experiment with PowerShell v2 in Windows Server 2008 R2, I will share some of what I learn here on the blog. This time I am focusing on PowerShell Remoting. If you never played with PowerShell before, please start by reading http://blogs.technet.com/josebda/archive/2009/07/25/experimenting-with-powershell.aspx and http://blogs.technet.com/josebda/archive/2009/08/09/experimenting-with-powershell-cmdlets-snap-ins-and-modules.aspx Remoting In general, “remoting” relates to the ability … Continue reading Experimenting with PowerShell V2 Remoting

Automatically uploading files from File Server to SharePoint using the File Classification Infrastructure (FCI)

Windows Server 2008 R2 introduced a new File Classification Infrastructure (FCI) and the team has been sharing different ways to put it to good use. The latest one comes as a blog post that describes how to use the FCI SharePoint Upload PowerShell script in conjunction with the FCI File Management Tasks to automatically upload … Continue reading Automatically uploading files from File Server to SharePoint using the File Classification Infrastructure (FCI)

Download for Powershell v2 for Windows 7? No need… It’s already there!

A while back, Microsoft announced the release of PowerShell v2 for Windows XP, Windows Server 2003, Windows Vista, and Windows Server 2008 (see http://go.microsoft.com/fwlink/?LinkID=151321). However, it is not clear to everyone that Powershell v2 is already part of Windows 7 and Windows Server 2008 R2. I have seen people still asking for the link for … Continue reading Download for Powershell v2 for Windows 7? No need… It’s already there!

Experimenting with PowerShell Cmdlets, Snap-ins and Modules

As I continue to experiment with PowerShell v2 in Windows Server 2008 R2, I will share some of what I learn here on the blog. This time I am focusing on Cmdlets, Snap-ins and Modules.  Cmdlets Windows PowerShell introduced the notion of a “cmdlet” (you pronounce it “commandlet”). These are like tools or commands that are typically very simple … Continue reading Experimenting with PowerShell Cmdlets, Snap-ins and Modules