PowerShell Web Access
KB ID 0001036 Problem One of my goals for this year is to become more proficient with PowerShell. During my studies I came across PowerShell Web access and thought it was so cool, I’d have a play with it. What is PowerShell Web Access? It’s a web service that runs on a Server 2012 IIS web server. It lets you remote connect to that host (via https) and then launch a PowerShell secure connection to any machine in your...
PowerShell – Update All Domain Users Email Address From UPN
KB ID 0001072 Problem Update: Here is an easier Solution Earlier in the year, I had a problem with Certificate Services, every time it tried to issue a ‘user’ certificate it gave me an error because the user did not have an email address specified on their user object in AD. At the time I thought “I wish I know enough PowerShell, to just put an email address in all the users e-mail attribute”. So while...
Exchange – Creating Dynamic Distribution Groups Based on Organizational Units
KB ID 0000820 Problem A Dynamic Distribution list, (as the name implies), maintains its membership for you. Unlike a normal static distribution list that you need to add/remove mailboxes manually. Solution Use PowerShell/Exchange Management Shell 1. I’m assuming you already have an OU populated with mail enabled users, in this example called Engineering. 2. Launch the Exchange Management Shell, Execute the following command, (change...
Exchange – Display/Export Users Mailbox Folder Sizes
KB ID 0000860 Problem A client asked this morning if there was a way he could see each users mailbox size, this is pretty simple to do see here. But he wanted to see each individual folder, and see a breakdown on the sizes of these folders. Solution Display Folder Sizes For an Individual User From the Exchange Management Shell, execute the following command; Get-MailboxFolderStatistics pete | Select...
Exchange – Delete and Recreate the PowerShell Virtual Directory
KB ID 0000700 Problem One of the big drawbacks of Exchange management being built on PowerShell, and it talking to the PowerShell virtual director is, when IIS has a problem, you can’t manage your Exchange via the command shell, or the Exchange Management Console. While trying to fix a problem last week I wanted to remove and recreate the PowerShell virtual directory, and I found the PowerShell command, but no working examples...