![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Enable and Unhide from GAL users in an OU Hi, I am looking for a sample script to Enable some disabled accounts and also unhide them from the GAL. These users are in the one OU. Once enabled I will do a mailbox move and then do the reverse of above - i.e. disabled and hide from the GAL. Any sample scripts would be appreciated. Thanks, Peter |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Enable and Unhide from GAL users in an OU Hi Shay, They are Exchange 2003 mailboxes. It was quite easy in the end though. I messed around and came up with this... I created an OU under Department Offices called Enabled Temp. I moved the accounts I wanted to enable there. Then I ran this Powershell command. Get-mailbox –OrganizationalUnit ‘MyDomain.Com/Department Offices/Enabled Temp’ | set-mailbox –HiddenFromAddressListsEnabled $false I will run the same Powershell command with $true when I want them rehidden. Hope this is useful to someone else and thanks anyway Shay. "Shay Levy [MVP]" wrote: Quote: > Hi Don, > > What Exchange version? > > > --- > Shay Levy > Windows PowerShell MVP > http://blogs.microsoft.co.il/blogs/ScriptFanatic > > > > DP> Hi, > DP> > DP> I am looking for a sample script to Enable some disabled accounts > DP> and also unhide them from the GAL. These users are in the one OU. > DP> > DP> Once enabled I will do a mailbox move and then do the reverse of > DP> above - i.e. disabled and hide from the GAL. > DP> > DP> Any sample scripts would be appreciated. > DP> > DP> Thanks, Peter > DP> > > > |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Enable and Unhide from GAL users in an OU Hi Don, What Exchange version? --- Shay Levy Windows PowerShell MVP http://blogs.microsoft.co.il/blogs/ScriptFanatic DP> Hi, DP> DP> I am looking for a sample script to Enable some disabled accounts DP> and also unhide them from the GAL. These users are in the one OU. DP> DP> Once enabled I will do a mailbox move and then do the reverse of DP> above - i.e. disabled and hide from the GAL. DP> DP> Any sample scripts would be appreciated. DP> DP> Thanks, Peter DP> |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| bulk mail enable contacts for existing AD users | PowerShell | |||
| How do I Enable AutoPlay for all Users? | Vista General | |||
| Welcome Center - Enable or Disable at All Users Startup | Tutorials | |||
| Disable/re-enable or hide/unhide Start Menu in Windows Vista via registry, using VB6 | General Discussion | |||
| Enable Power Users group in Vista? | Vista account administration | |||