Scripts
Here is a list of all of my scripts I’ve posted about on this blog. I’ll try to keep this page current.
Exchange Server scripts and functions
Set-Exchange2010Features.ps1 v3.3 (12-29-2011)
Install the prerequisites for Exchange 2010 on Windows 2008 R2.
Set-Exchange2010FilterConfig.ps1 v2.0
Configure the Filter Pack for Exchange 2010
Set-Exchange2010RedirectSSL.ps1 v1.2 (10-19-2011)
Configure SSL settings and folder redirection for Exchange 2010
Add-BadWordsFromFile.ps1 v1.0 (10-08-2009)
Import a list of bad words from a file for the Exchange 2010 content filter.
Hide-InternetNewsgroups.ps1
Hide the Internet Newsgroups folder from appearing in the Public Folder list of Exchange Server.
Add-Cmdlets2Dictionary.ps1
Add Exchange 2007 and/or 2010 cmdlets to the Microsoft Word dictionary
DAG-InstallRollup.ps1
Script for installing update rollups on DAG servers
Send-NewUserWelcome.ps1 v1.3
Automatically sends an informative, HTML formatted email to a user once their mailbox is created.
AutoApplyMRMPolicy.ps1
Automatically apply an MRM policy to mailboxes upon creation
Update-MobileNumber.ps1
Update the Global Address Book when a user adds a new ActiveSync device
New-DirectoryUpdateReminder.ps1 v1.5 (10-03-2011)
Remind users to update their Active Directory information
New-ADPasswordReminder.ps1 v2.8 (05-03-2013)
Sends an informative, HTML formatted email to users whose password is soon expiring. This is useful for those users who are mobile only and don’t get the conventional notices.
New-LocalExchangeConnection
Establishes a connection to Exchange 2010 on the local server
Exchange Server one liners
- one liners: Finding users with forwarding addresses set
- one liners: See failed inbound messages for the past few days
- one liners: Restarting stopped services
- one liners: Finding users who have Send-As or Full Access permissions to mailboxes
- one liners: Setting the default language and time zone for OWA
- one liners: Exporting distribution list membership to Excel
- one liners: Get All Exchange Users Who Are Configured For Forwarding
- one liners: List All Users Who Have Send-As Access To Other Mailboxes
Lync Server scripts
Set-Cs2013Features.ps1 v1.5 (05-10-2013)
Install the prerequisites and many additional features, configurations, and add-ons for Lync Server 2010.
Set-Lync2010Features.ps1 v5.3 (12-23-2011)
Install the prerequisites and many additional features, configurations, and add-ons for Lync Server 2010.
Get-CsConnections.ps1 v2.1 (12-13-2012)
Lists connections per Lync Server 2010 Front End server in a pool, load balancing distribution, and per user connections
Get-CsVoiceCalls.ps1 v1.4 (06-12-2012)
View basic information about current voice calls
New-CsFirmware.ps1 v1.3 (10-19-2012)
Import single or multiple Lync Phone Edition firmware updates to single or multiple pools.
Grant-CsPolicyByADGroup.ps1 v1.2 (10-16-2012)
Assign Lync policies to users based on Active Directory group membership
Lync Server one liners
- one liners: Finding out which Lync pool servers a user is associated with, and the preferred connection order
- one liners: Finding AD disabled accounts who are still Lync enabled
- one liners: Setting recovery option to ‘restart’ for Lync services
Misc
Function: Set-AdminUser v1.0 (10-22-2012)
Clear AdminCount and set security inheritance on a specified user account
Function: New-PSUpdateHelp v1.0 (03-01-2013)
Automatically create a scheduled task to update PowerShell v3 help files
Function: Set-Timezone v1.0 (03-04-2013)
Easily define the desired timezone when building servers
Function: New-SignedScript v1.0 (09-20-2012)
Sign one or many PowerShell scripts with your code signing certificate
New-ExpiringCertificatesReminder.ps1 v1.0 (09-14-2012)
Receive a Reminder When Certificates Have Expired/Are Expiring
Function: New-FirewallRule v1.0 (09-14-2012)
Create Windows Firewall rules with PowerShell
Set-WindowsEmailAddress.ps1 v1.1 (10-01-2011)
Update the WindowsEmailAddress field of users in environments WITHOUT Exchange server.
Function: New-LoopbackAdapter.ps1 v1.0
Create and configure a loopback adapter for use with Direct Server Return hardware load balancing.
New-HandBrakeConversion.ps1 v1.3 (10-04-2011)
Process entire folders of video files through HandBrake to convert them to iTunes format.
Function: Remove-NicGateway v1.0 (03-13-2012)
Removes the default gateway on selected network interfaces
Function: Set-DriveLabel v1.0 (03-06-2012)
Set the label of a selected drive
Function: New-BalloonTip v1.0 (02-21-2012)
Show a Windows system tray balloon tip
Get-UACStatus and Set-UACStatus v1.0 (02-20-2012)
Functions for displaying and settings Windows User Access Control
Function: Set-ModuleStatus v1.1 (09-17-2012)
Load PowerShell modules with error checking
Function: New-Password v1.0 12-26-2011
Quickly and easily generate passwords, complete with phonetic pronunciation
Function: Get-LocalAdminGroupMembership and Set-LocalAdminGroupMembership v1.0 (12-22-2011)
Get and set local admin group membership on remote computers.
Function: New-Pause v1.0 (12-21-2011)
A graceful way to pause your PowerShell scripts
Function: New-Sleep v1.0 (12-20-2011)
A more graphical way to introduce delay in PowerShell scripts
Function: New-Share v1.0 (07-13-2011)
Programatically create file shares
Function: Remove-ScriptVariables v1.0 (07-08-2011)
Remove all variables from a script from memory
Function: New-PSUpdateHelpScheduledTask v1.0 (03-01-2013)
Creates scheduled task that automatically updates PowerShell help files everyday.



Hi Pat, I’ d like to say thank you so much indeed for your amazing scripts. There’s no doubt that exchange server administrators deeply grateful to you! Cheers
Many thanks for your script which make things easier and saves time as well.
Thanks again, great work.