Exchange – remove and add folder permissions

#IT-Solved #april 2016 #V3 20160405 automapping uit bij zetten full access import-module Activedirectory Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn; Set-ADServerSettings -ViewEntireForest $true cls $all_rights = @() $mailboxzoek = $null $mailboxzoek = read-host “Mailboxnaam” #Mailbox ophalen if ($($mailboxzoek) -eq “”) { Write-Host “Geen mailbox gekozen!” -ForegroundColor Red exit } try { $mailboxzoek =Get-Mailbox $($mailboxzoek) -ErrorAction Stop } Catch { Write-Host …read more →

Exchange – Convert mailboxes to type regular

Get-mailbox | Where-Object {$_.RecipientTypeDetails -eq “%type%”} | set-mailbox -type regular Get-Mailbox -Identity MarketingDept1 | Format-List RecipientTypeDetails get-mailbox | Where-Object {$_.RecipientType -eq “UserMailbox”} | Format-List alias,RecipientTypeDetails| out-file c:\windows\temp\mbtype.log

Powershell – Check specific service status on ActiveDirectory computers

In this powershell script you can search for an specific service on computers (based on ActiveDirectory OU). When the the service is stopped, the scrip starts the service and sends an e-mail Get-ADComputer -SearchBase ‘OU=servers,dc=test,dc=local’ -Filter ‘*’| Foreach-Object { write-host $ -ForegroundColor Yellow if (Get-Service -NAme “RES*” -ComputerName $ | Where-Object {$_.Status -eq “Stopped”}) { …read more →