logo
logo

powershell

All the posts published

RDS: Changing the Connection Broker DNS Alias As you cannot edit the name from the RDS Server GUI, PowerShell to the rescue: Set-RDClientAccessName -ConnectionBroker -ClientAccessName

Bulk import PST files to Exchange 2010   So, you have a bunch of PST files to import into Exchange 2010? Grant the Import/Export role: New-ManagementRoleAssignment -Role “Mailbox Import Export” -user “username” Get exchange to import every PST under “\\ex01\*.pst” Dir \\ex01\pst\*.pst | %{ New-MailboxImportRequest -Name RecoveredPST -BatchName Recovered -Mailbox $_.BaseName -FilePath $_.FullName -TargetRootFolder SubFolderInPrimary} Watch the progress: get-mailboximportrequest | get-mailboximportrequeststatistics | ft targetalias,percent*,bytestransferred Clear completed imports: get-mailboximportrequest -status completed …

Read More →
powershell | Cloud Monkey