PowerShell Snippets

It seems I write PowerShell about 20% of my time now as a SharePoint architect and developer. However, I can’t seem to easily locate all the PowerShell as I move from project to project and team to team. Most of the previously mentioned PowerShell is quite customer specific so I won’t post any of that here, but just for my sake of locating it, here are my current PowerShell snippets.

Empty Guid:

[System.GUID]::Empty

Random Guid:

[System.GUID]::NewGuid()

Guid with a value:

[System.GUID]("b2e92f11-7f65-41d1-dead-ba051b418bdf")