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")
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s