PowerShell: Meilikontode loomine: Difference between revisions
From ICO wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
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
- 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 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