PowerShell: Meilikontode loomine

From ICO wiki
Revision as of 13:53, 22 May 2012 by Lruutli (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
  1. Powershell kodutöö
  2. Autor Lauri Rüütli A21
  3. Microsoft Windows Server 2008 R2 / Microsoft Exchange 2010
  4. Skript võtab Active Directory-st kõik kasutajad kellel ei ole meilikontot ja teeb neile Exchange serverisse meilikonto.


Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 2>&1 | out-null

get-user | where-object{$_.RecipientType –eq “User”} | Enable-Mailbox -ErrorAction:SilentlyContinue -WarningAction:SilentlyContinue