![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | Re: Granting user Admin rights to ALL Public Folders exchange 2007 Quote: > Get-PublicFolder -recurse | Add-PublicFolderAdministrativePermission -User UserName-AccessRights AllExtendedRights -whatIf That's not even too hard to understand :-) Any good books to learn Powershell? Thanx again, Louis |
My System Specs![]() |
| | #5 (permalink) |
| | 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 >> > > That's not even too hard to understand :-) > Any good books to learn Powershell? > Thanx again, > > Louis > |
My System Specs![]() |
![]() |
| 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 | |||