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
Line 5: Line 5:




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

Revision as of 13:51, 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