PowerShell: Meilikontode loomine: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Lruutli (talk | contribs)
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…'
 
Lruutli (talk | contribs)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:


Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 2>&1 | out-null
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 2>&1 | out-null
get-user | where-object{$_.RecipientType –eq “User”} | Enable-Mailbox -ErrorAction:SilentlyContinue -WarningAction:SilentlyContinue
get-user | where-object{$_.RecipientType –eq “User”} | Enable-Mailbox -ErrorAction:SilentlyContinue -WarningAction:SilentlyContinue

Latest revision as of 13:53, 22 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