How to Apply Permissions to Public Folder and All Sub Folders in Exchange 2007/2010 Using Exchange Management Shell

If you have a public folder that your working on, and you need to apply permissions to it using the Exchange Management Shell, its pretty easy.  The command is: Add-PublicFolderClientPermission –Identity “Foldername” –user UserName –AccessRights PublishingEditor For instance, to add the user pponzeka to the folder IT with the Publishing Editor permission, the command would be the following: This works […]

Read more

How to Import Users via CSV in Exchange 2010

Create an csv file with the necessary information across the top row of the file as such: The top row is going to coordinate with the S_.value that you are going to use in the following Exchange Shell command: Import-CSV “C:Mailboxes.csv” | foreach {new-mailbox –Name $_.name –Alias $_.alias –UserPrincipalName $_.userprincipalname –Database $_.Database –OrganizationalUnit $_.organizationalunit –password (ConvertTo-SecureString $_.password –AsPlainText –force)} And […]

Read more

Restart a Service Remotely Using PowerShell on Multiple Servers

I threw a quick PowerShell function together that would allow me to restart one service on 1 or more servers in one command.  I hadn’t found an easy way to do this in PowerShell before so I threw this together.  What I did was pasted the function code into my PowerShell profile at c:\users\%USERNAME%\Documents\WindowsPowershell\Microsoft.PowerShell_profiles.ps1 to ensure it was loaded each […]

Read more

Moving your VM Storage

Use the fantastic tools built-in to Hyper-V 2012 to make it easy to migrate your VMs onto new storage or over to a new host.  Never mess with copying .vhdx or configuration files again. I rebuilt my storage in my test lab, making use of Storage Tiering in Storage Spaces to pool two 64 GB SSDs and one 1.5 TB […]

Read more

Cloning VMs in Hyper-V

It’s a common enough scenario: build one template machine and then mirror that to make a testlab, so you’d think this would be a built-in feature of Hyper-V, but its not. Luckily, it’s not too hard to do once you know how, and I’ll guide you through the tough parts Overall process We’ll be following these steps to get clones […]

Read more

Delete All Calendar Entries In An Exchange 2010 Mailbox

Open EMS Run: Search-Mailbox –identity username –SearchQuery kind:meetings –DeleteContent  You can get an estimate about the number of entries and size that will be freed up after deletion by running: Search-Mailbox –identity username –SearchQuery kind:meetings –EstimateResultOnly    Example: Search-Mailbox –identity mmcguire –SearchQuery kind:meetings –DeleteContent 

Read more
1 22 23 24 25 26 71