Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Enable and Unhide from GAL users in an OU

Reply
 
Old 07-24-2008   #1 (permalink)
Don Pedro


 
 

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 SpecsSystem Spec
Old 07-24-2008   #2 (permalink)
Don Pedro


 
 

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 SpecsSystem Spec
Old 07-24-2008   #3 (permalink)
Shay Levy [MVP]


 
 

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 SpecsSystem Spec
Reply

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46