Windows PowerShell enables you to easily run deployment commands without writing code using the Deployment Web service. To execute commands, you must first configure Microsoft Dynamics CRM 2011 with Windows PowerShell.

My blog describes a small script to output details of your Default Microsoft Dynamics CRM 2011 Organization.

The script is verified on the following Windows platforms:

This is a PowerShell script. You can copy this script into a text editor and save the file as a PowerShell file. PowerShell file has an extension of ps1. I have saved this script as ‘DefaultCRMOrganization.ps1′.

You can save this PowerShell file ‘DefaultCRMOrganization.ps1′ to your server. Microsoft Dynamics CRM administrators and professionals can have a quick browse through the details for their default organization by simply running this file.

The Script (File ‘DefaultCRMOrganization.ps1′)

# —————————————-
# Script Definition: This script will output details of your default organization.
# —————————————-
add-pssnapin Microsoft.CRM.Powershell
get-crmorganization
read-host ‘Press enter key to close this window. . .’

Note: Sometimes when you run this file, for the first time, it might open in Notepad. In order to open this file with a PowerShell application, associate this file (with extension ps1) with C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

I hope this article about ‘Microsoft Dynamics CRM 2011 – PowerShell script to output details of your Default Organization’ was informative. Please feel free to leave your comments.