Microsoft Dynamics CRM 2011 – PowerShell script to output details of your Default Organization


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:

  • Windows Server 2008 R2
  • Windows Server 2008

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 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 blog about ‘Microsoft Dynamics CRM 2011 – PowerShell script to output details of your Default Organization’ was informative. Please feel free to leave your comments.

Advertisements
Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

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

%d bloggers like this: