PowerShell: Meilikontode loomine: Difference between revisions

From ICO wiki
Jump to navigationJump to search
(Created page with '#Powershell kodutöö #Autor Lauri Rüütli A21 #Microsoft Windows Server 2008 R2 / Microsoft Exchange 2010 #Skript võtab Active Directory-st kõik kasutajad kellel ei ole meili…')
(No difference)

Revision as of 09:09, 16 May 2012

  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