Logo
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
World Cup news
 
 
Windows Server

Using Windows PowerShell in an Exchange Server 2010 Environment : Managing Cmdlets

3/24/2011 6:07:06 PM
It is a best practice to add the folder(s) that contain the custom cmdlets and scripts to the system path. This enables the administrator to run any one of the cmdlets from anywhere in the EMS console.

Cmdlets with the .ps1 extension cannot be run directly from the Cmd.exe console; they must be run within the PowerShell or Exchange Management Shell.

The cmdlets that ship with Exchange Server 2010 and EMS cannot be modified. They have been optimized and compiled for maximum performance. These native cmdlets are contained in the DLL files in the %SystemDrive%\Program Files\Microsoft\Exchange Server\bin folder.

It is a best practice to create a folder to contain the custom .ps1 files and add that folder to the system path. This facilitates the use of the .ps1 files within the EMS command line.

Developing a Common Naming Scheme

When developing custom scripts, it is important to use functional names that denote the use of the script. It is a best practice to use the same verb-noun naming that is common in PowerShell and EMS. This provides consistency in the management environment.

A script to send SMTP email from the EMS command line might be called send-email.ps1, for example.

Distributing Cmdlets

Cmdlets can be distributed in a number of ways, similar to VBScripts or batch files.

The Microsoft distributed file system (DFS) offers another way to distribute cmdlets. By creating replicas in remote sites, the organization’s cmdlet library can be fault tolerant and available locally to all administrators.

Another option for distributing cmdlets is via SharePoint. SharePoint’s document management features enable administrators to check in and check out cmdlets as .ps1 files. This makes managing .ps1 files simple and provides full-text search capabilities. It also provides security so that only the appropriate administrators have access to certain cmdlets.

Note

Because .ps1 files are executable code, they cannot be sent using Outlook due to the Outlook security restrictions. Cmdlets can be zipped into compressed folders and emailed as attachments, or their contents can be pasted into the body of a message.

Top Search -----------------
- Windows Server 2008 R2 : Work with RAID Volumes - Understand RAID Levels & Implement RAID
- Windows Server 2008 R2 Administration : Managing Printers with the Print Management Console
- Configuring Email Settings in Windows Small Business Server 2011
- Windows Server 2008 R2 : Configuring Folder Security, Access, and Replication - Implement Permissions
- Monitoring Exchange Server 2010 : Monitoring Mail Flow
- Windows Server 2008 R2 :Task Scheduler
- Windows Server 2008 R2 : File Server Resource Manager
- Windows Server 2008 R2 : Installing DFS
- Exchange Server 2010 : Managing Anti-Spam and Antivirus Countermeasures
- Windows Server 2008 R2 : Configuring Folder Security, Access, and Replication - Share Folders
Other -----------------
- Using Windows PowerShell in an Exchange Server 2010 Environment : Creating Your Own Scripts
- Windows Server 2008 R2 : Installing Windows Deployment Services (part 3)
- Windows Server 2008 R2 : Installing Windows Deployment Services (part 2)
- Windows Server 2008 R2 : Installing Windows Deployment Services (part 1) - Configuring the WDS Server
- Windows Server 2008 R2 Windows Deployment Services
- Windows Server 2008 R2 Administration Tools for Desktops : Operating System Deployment Options
- Windows Server 2008 R2 Administration Tools for Desktops : Managing Desktops and Servers
- Backing Up Windows Server 2008 (part 2) - Individual Component Backup
- Backing Up Windows Server 2008 (part 1) - Full Server Backup
- Exchange Server 2010 : Mailbox Configuration (part 5) - Import, Export and Archive Mailboxes
 
 
Most view of day
- Windows Server 2008 R2 : Hyper-V feature focus - Introduction to Virtualization and Hyper-V, Hyper-V Changes
- BizTalk Server 2009 Operations : Maintaining the BizTalk Group (part 3) - Restore Procedures
- Microsoft Visio 2010 : Adding Graphics to Your Documents - Adding Clip Art to a Document - Finding and Inserting a Clip Art Graphic
- Microsoft Exchange Server 2010 : Managing Connectivity with Hub Transport Servers - Transport Improvements in Exchange Server 2010
- Windows Server 2012 Requirements and Installation : Switching Between Install Modes
- Microsoft Dynamic GP 2010 : Sales Order Processing (part 1) - Sales Order Processing Setup, Sales Document Setup
- Designing and Configuring Unified Messaging in Exchange Server 2007 : Monitoring and Troubleshooting Unified Messaging (part 1) - Active Calls , Connectivity
Top 10
- Windows Server 2012 : Configuring IPv6/IPv4 interoperability (part 7) - ISATAP
- Windows Server 2012 : Configuring IPv6/IPv4 interoperability (part 6) - Configuring a DHCPv6 server, IPv6 transition technologies
- Windows Server 2012 : Configuring IPv6/IPv4 interoperability (part 5) - Stateless address autoconfiguration,Stateful address autoconfiguration
- Windows Server 2012 : Configuring IPv6/IPv4 interoperability (part 4) - IPv6 address assignment - Manual address assignment
- Windows Server 2012 : Configuring IPv6/IPv4 interoperability (part 3) - IPv6 address representation
- Windows Server 2012 : Configuring IPv6/IPv4 interoperability (part 2) - Default IPv6 functionality
- Windows Server 2012 : Configuring IPv6/IPv4 interoperability (part 1) - IPv6 concepts and terminology
- Multi-Tenancy in SharePoint 2013 (part 2) - Multi-Tenant Use Cases, Partitioning in the Enterprise
- Multi-Tenancy in SharePoint 2013 (part 1) - Managing Service Application Groups, Creating a Site Subscription
- Sharepoint 2013 : Service Application Administration (part 4) - Setting Up the Farm Trust, Publishing a Service Application
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
Cars Review