Category: Powershell

Powershell based articles.

January 21, 2012

Nagios Monitoring Script-Get Local Databases

Script Description Powershell based NSClient++ monitoring script for use with Nagios Core. This script performs the following functions: Retrieves the Databases that are running on the monitored server Checks to see if they are mounted If no databases are resident on the server (in DAG configurations) the script returns the following information string to the […]

January 21, 2012

Nagios Monitoring Script-Monitor DAG Replication Status

Script Description Powershell based NSClient++ monitoring script for use with Nagios Core. This script is designed to Monitor the Replication Status of each database within a DAG Configuration. The script can return one of 2 error codes which are as follow: 0: OK 2: CRITICAL Download [ GetDAGReplicationStatus.ps1 – 1 KB ] Usage Please refer […]

January 21, 2012

Nagios Monitoring Script-Get DAG Information

Script Description Powershell based NSClient++ monitoring script for use with Nagios Core. This script is designed to return the name of the DAG which the host server is a member of. The script only returns the following status code: 0: OK However the return description into the Nagios Interface will either be: Name of the […]

January 21, 2012

Nagios Monitoring Script–Exchange 2010 Backup Monitoring

Script Description Powershell based NSClient++ monitoring script for use with Nagios Core. This script is designed to monitor the “LastFullBackup” attribute of the host Mailbox Server – the script has two exit statuses: 0: OK 2: CRITICAL Critical (2) is flagged when one or more databases hosted on the monitored server has a “lastFullBackup” of […]

December 4, 2011

Update to my create LAB users Powershell Script–Multiple Domains and 500 more users!…

I have been making some modifications to my home lab over the last few days, one key change has been to add in a child domain so that I can test Exchange related scenarios in a multi-domain environment. Naturally, once I had created the child domain, I wanted to populate it with some users – […]

November 10, 2011

Using Powershell to Archive Mailboxes to PST based upon the AD lastLogonTime in Exchange 2007…

A little while ago I ran into a neat little freeware tool for Powershell called the Inactive Users Tracker PowerShell Cmdlet by a company called Netwrix. This cmdlet in essence provided a nice, simple to use wrapper for consolidated last logon information for accounts in Active Directory (as you may be aware the lastlogon attribute […]

July 10, 2011

Quick Tip–Add a member account to all Distribution Groups in your Environment

Today I had the need to add a single user to all the Distribution Groups (around 120) within my Exchange Environment. Thankfully doing this task via Powershell this is a very simple "one liner". All you need to do is open an Exchange Management Shell Window and Type in the following command: Get-DistributionGroup | Add-DistributionGroupMember […]

July 10, 2011

Quick Tip–Creating Distribution Groups from a CSV file using Powershell for a LAB environment….

In a previous article, I provided a Powershell script which could be used to create a number of users for use within a Lab (test environment). Moving on from that, I recently started thinking about other elements of Exchange that are typically very repetitive to perform, but are also needed within an LAB infrastructure – […]

April 9, 2011

Creating LAB users with a Powershell Script

Overview   This SEA download contains two files which will create 300 users for use within a test lab. The files contained in the SEA are as follows: LabUsers.csv – this is a predefined CSV file with 300 test users to populate your environment CreateUsersFromCSV.ps1 – this is the Powershell script which, when executed against […]

November 3, 2010

Managing VMWARE Server 2.0 via Powershell…

Although this article is slightly un-related to Exchange, it does have some relevance – particularly if you are like me and make use of VMWARE Server to create and test scenarios using VMWARE Server 2.0. I have a number of virtual machines which I make use of day to day when compiling content for this […]

You are here: Page 2
Do NOT follow this link or you will be banned from the site!