Quantcast
Channel: Diginomicon » PowerShell
Browsing latest articles
Browse All 10 View Live

Image may be NSFW.
Clik here to view.

Checking for a failure after executing statement

In PowerShell, you can check to see if there were any errors reported by the previously executed cmdlet in several ways. The most useful that I found for basic error handling was the built-in variable...

View Article


Image may be NSFW.
Clik here to view.

Report NDRs because a mailbox was full for the previous day

If you have service levels to maintain in your environment and a finite amount of disk space, there is a pretty good chance that you have mailbox quotas set to prevent users from over running your...

View Article


Image may be NSFW.
Clik here to view.

Automating Lotus Notes Credential in Transporter powershell cmdlets

One of the first challenges that we ran into was having to constantly type the password for the various transporter cmdlets that we placed into any of our automation for the conversion of mailboxes...

View Article

Image may be NSFW.
Clik here to view.

Mailboxes Associated with Disabled Users

Periodically you may wish to identify mailboxes that are still active in Exchange 2007 but which are not associated with active AD users.  As you are aware, some mailboxes within Exchange require...

View Article

Image may be NSFW.
Clik here to view.

Who was that message sent to?

Sometimes you need to know specifically who a message was sent to and there may be no obvious way to determine that (such as it may have been sent to a distribution group, or the sender may have used...

View Article


Image may be NSFW.
Clik here to view.

Reply-All to the AllUsers Distribution List Got you Down?

Work in a company long enough, and there will always be that user who does a reply-all to a large distribution list that spawns a huge reply-all storm.  This normally leads to questions about how it...

View Article

Get Mailbox Count per Database Efficiently

As part of our migration from SCC to CCR in our Exchange 2007 environment, I had to write a script that evacuated all of the users off of a given mailbox server across a collection of other servers...

View Article

Image may be NSFW.
Clik here to view.

Report users assigned to a specific ActiveSync policy

Want to know which users are assigned to a specific ActiveSync policy?  It’s fairly straight forward, but unfortunately it’s not a single command. You have to first retrieve the policy and assign it to...

View Article


Image may be NSFW.
Clik here to view.

Mailboxes with special permissions

Got auditors who want to review any mailboxes that have permissions granted for users other than the mailbox owner?  If you do you’ll appreciate the usefulness of this oneliner, which will give you a...

View Article


Image may be NSFW.
Clik here to view.

PowerShell pscmdlet.writedebug vs Write-Debug

In working on some script based cmdlets I noticed some inconsistent behavior related to the Preference variables.  The $pscmdlet automatic variable provides several methods for interacting with a...

View Article
Browsing latest articles
Browse All 10 View Live