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 - Granting user Admin rights to ALL Public Folders exchange 2007

Reply
 
Old 02-13-2008   #1 (permalink)
louis.gohl


 
 

Granting user Admin rights to ALL Public Folders exchange 2007

Hi,

I'm trying to get a powershell script working that gives admin rights
to all Public Folders in exchange 2007.

I found the cmdlet Add-PublicFolderAdministrativePermission

But I'm new to Powershell so if some could help me out here giving
some pointers.
If it was just one Public folder than I could use the following
powershell code:

Add-PublicFolderAdministrativePermission -Identity \"the name of the
folder" -User user name -AccessRights the permissions that you want to
assign -Server "the server that you want to perform the action on"

But I need to set admin rights on every public folder. How do I do
that??

Thanx,

Louis


My System SpecsSystem Spec
Old 02-13-2008   #2 (permalink)
Shay Levi


 
 

Re: Granting user Admin rights to ALL Public Folders exchange 2007



Try this, remove -whatIf when you're ready to make the change:

Get-PublicFolder -recurse | foreach { Add-PublicFolderAdministrativePermission
-Identity $_ -User UserName -AccessRights AllExtendedRights -whatIf }


-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
Quote:

> Hi,
>
> I'm trying to get a powershell script working that gives admin rights
> to all Public Folders in exchange 2007.
>
> I found the cmdlet Add-PublicFolderAdministrativePermission
>
> But I'm new to Powershell so if some could help me out here giving
> some pointers.
> If it was just one Public folder than I could use the following
> powershell code:
> Add-PublicFolderAdministrativePermission -Identity \"the name of the
> folder" -User user name -AccessRights the permissions that you want to
> assign -Server "the server that you want to perform the action on"
>
> But I need to set admin rights on every public folder. How do I do
> that??
>
> Thanx,
>
> Louis
>

My System SpecsSystem Spec
Old 02-13-2008   #3 (permalink)
Shay Levi


 
 

Re: Granting user Admin rights to ALL Public Folders exchange 2007

Much simpler:

Get-PublicFolder -recurse | Add-PublicFolderAdministrativePermission -User
UserName-AccessRights AllExtendedRights -whatIf




-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
Quote:

> Try this, remove -whatIf when you're ready to make the change:
>
> Get-PublicFolder -recurse | foreach {
> Add-PublicFolderAdministrativePermission -Identity $_ -User UserName
> -AccessRights AllExtendedRights -whatIf }
>
> -----
> Shay Levi
> $cript Fanatic
> http://scriptolog.blogspot.com
Quote:

>> Hi,
>>
>> I'm trying to get a powershell script working that gives admin rights
>> to all Public Folders in exchange 2007.
>>
>> I found the cmdlet Add-PublicFolderAdministrativePermission
>>
>> But I'm new to Powershell so if some could help me out here giving
>> some pointers.
>> If it was just one Public folder than I could use the following
>> powershell code:
>> Add-PublicFolderAdministrativePermission -Identity \"the name of the
>> folder" -User user name -AccessRights the permissions that you want
>> to
>> assign -Server "the server that you want to perform the action on"
>> But I need to set admin rights on every public folder. How do I do
>> that??
>>
>> Thanx,
>>
>> Louis
>>

My System SpecsSystem Spec
Old 02-14-2008   #4 (permalink)
louis.gohl


 
 

Re: Granting user Admin rights to ALL Public Folders exchange 2007

Quote:

> Get-PublicFolder -recurse | Add-PublicFolderAdministrativePermission -User UserName-AccessRights AllExtendedRights -whatIf
Thanx!

That's not even too hard to understand :-)
Any good books to learn Powershell?

Thanx again,

Louis



My System SpecsSystem Spec
Old 02-14-2008   #5 (permalink)
Shay Levi


 
 

Re: Granting user Admin rights to ALL Public Folders exchange 2007



Check out the Windows PowerShell community toolbar. It has a section full
of books, getting started and other PowerShell related stuff.

http://scriptolog.blogspot.com/2008/...r-browser.html



-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
Quote:
Quote:

>> Get-PublicFolder -recurse | Add-PublicFolderAdministrativePermission
>> -User UserName-AccessRights AllExtendedRights -whatIf
>>
> Thanx!
>
> That's not even too hard to understand :-)
> Any good books to learn Powershell?
> Thanx again,
>
> Louis
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Public Folder w/ AD User info [exchange 2003] PowerShell
Getting FULL Admin rights to delete folders Vista account administration
Microsoft Releases Public Betas of Exchange Server 2007 and Forefront Security for Exchange Server Vista News
Microsoft Releases Public Betas of Exchange Server 2007 and Forefront Security for Exchange Server Vista News
RE: Sign up for public Vista / Office 2007 / Exchange 12 Beta's Vista General


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