Jump to content
Sign in to follow this  
knoll

Exchange 2007 - Öffentliche Ortner - PowerShell

Recommended Posts

Hallo an alle SysAdmins,

 

Ich habe folgendes Problem :confused: :

 

Ich möchte mit der Powershell auf einem Öffentlichen Ordner einen Benutzer mit bestimmten Rechten (alle Rechte) anlegen und diesen dann auch auf alle Unterordner replizieren!

 

Gui funktioniert nicht weil er keine Öffentlichen Ordner die vorhanden sind anzeigt!

 

Hab mich auch schon durch alle Foren und Librarys durchgeforstet aber noch nichts passendes gefunden. Angeblich gibt das Attribut "Recurse" weiter. Nur funzt das nicht!

 

So hab ich´s versucht!

Add-PublicFolderClientPermission -Identity \"Test" -Recurse -AccessRights EditAllItems -User "Daniela" -Server Server01

 

 

Bitte um Hilfe.

lg alex

Share this post


Link to post
Share on other sites

Hallo,

 

leider hab ich gerade keinen Ex2k7 hier, um das zu testen. Ich würde allerdings wie folgt vorgehen:

 

Mit "Get-Publicfolder -recurse" lässt Du Dir den öffentlichen Ordner inkl. aller Unterordner auslesen (siehe Get-PublicFolder) und pipest die Ergebnisse dann auf "Add-PublicFolderClientPermission".

 

Genaue Syntax müsstest Du testen, müsste aber meiner Meinung nach so rum funktionieren.

Share this post


Link to post
Share on other sites

Hallo

 

Im GUI kann der PublicFolder nicht konfiguriert werden. Entweder mit PowerShell (wobei es strange ist, dass der obige Fehler nit fuunzt. Poste doch bitte die genaue Fehlermeldung.

 

Alternative ist der Public Folder auf 2003 anzulegen und rüberzureplizieren auf den Ex2007.

 

Gruss,

Matthias

Share this post


Link to post
Share on other sites

Geht nicht!

get-publicfolder -Identity \"LaMaree" -recurse | add-adpermission -user "daniela" -AccessRights "ListChildren"

 

Fehlermeldung

----------------------------------------------------------------

get-publicfolder

-Identity \"LaMaree" -recurse | add-adpermission -user "daniela" -AccessRights "

ListChildren"

Add-ADPermission : The input object cannot be bound to any parameters for the c

ommand either because the command does not take pipeline input or the input and

its properties do not match any of the parameters that take pipeline input.

At line:1 char:66

+ get-publicfolder -Identity \"LaMaree" -recurse | add-adpermission <<<< -user

"daniela" -AccessRights "ListChildren"

Add-ADPermission : The input object cannot be bound to any parameters for the c

ommand either because the command does not take pipeline input or the input and

its properties do not match any of the parameters that take pipeline input.

At line:1 char:66

+ get-publicfolder -Identity \"LaMaree" -recurse | add-adpermission <<<< -user

"daniela" -AccessRights "ListChildren"

Add-ADPermission : The input object cannot be bound to any parameters for the c

ommand either because the command does not take pipeline input or the input and

its properties do not match any of the parameters that take pipeline input.

At line:1 char:66

+ get-publicfolder -Identity \"LaMaree" -recurse | add-adpermission <<<< -user

"daniela" -AccessRights "ListChildren"

Add-ADPermission : The input object cannot be bound to any parameters for the c

ommand either because the command does not take pipeline input or the input and

its properties do not match any of the parameters that take pipeline input.

At line:1 char:66

+ get-publicfolder -Identity \"LaMaree" -recurse | add-adpermission <<<< -user

"daniela" -AccessRights "ListChildren"

Add-ADPermission : The input object cannot be bound to any parameters for the c

ommand either because the command does not take pipeline input or the input and

its properties do not match any of the parameters that take pipeline input.

At line:1 char:66

+ get-publicfolder -Identity \"LaMaree" -recurse | add-adpermission <<<< -user

"daniela" -AccessRights "ListChildren"

----------------------------------------------------------------

Share this post


Link to post
Share on other sites

Warum "add-adpermission"? Damit ist klar, das Input passt dann ja nicht - "add-publicfolderclientpermission" müsste es sein - oder hast Dich da nur verschrieben hier?

 

Und der Backslash müsste in den Hochkommata stehen bzw. kannst diese bei dem angegebenen Namen (ohne Leerzeichen) auch ganz weglassen.

Share this post


Link to post
Share on other sites

Es will nicht funktionieren!!!!

 

get-publicfolder \"LaMaree" -recurse | Add-PublicFolderClientPermission -Identity \"LaMaree" -AccessRights EditAllItems -User "Daniela" -Server np01

 

Add-PublicFolderClientPermission : The input object cannot be bound to any para

meters for the command either because the command does not take pipeline input

or the input and its properties do not match any of the parameters that take pi

peline input.

At line:1 char:72

+ get-publicfolder \"LaMaree" -recurse | Add-PublicFolderClientPermission <<<<

-Identity \"LaMaree" -AccessRights EditAllItems -User "Daniela" -Server np01

Add-PublicFolderClientPermission : The input object cannot be bound to any para

meters for the command either because the command does not take pipeline input

or the input and its properties do not match any of the parameters that take pi

peline input.

At line:1 char:72

+ get-publicfolder \"LaMaree" -recurse | Add-PublicFolderClientPermission <<<<

-Identity \"LaMaree" -AccessRights EditAllItems -User "Daniela" -Server np01

Add-PublicFolderClientPermission : The input object cannot be bound to any para

meters for the command either because the command does not take pipeline input

or the input and its properties do not match any of the parameters that take pi

peline input.

At line:1 char:72

+ get-publicfolder \"LaMaree" -recurse | Add-PublicFolderClientPermission <<<<

-Identity \"LaMaree" -AccessRights EditAllItems -User "Daniela" -Server np01

Add-PublicFolderClientPermission : The input object cannot be bound to any para

meters for the command either because the command does not take pipeline input

or the input and its properties do not match any of the parameters that take pi

peline input.

At line:1 char:72

+ get-publicfolder \"LaMaree" -recurse | Add-PublicFolderClientPermission <<<<

-Identity \"LaMaree" -AccessRights EditAllItems -User "Daniela" -Server np01

Add-PublicFolderClientPermission : The input object cannot be bound to any para

meters for the command either because the command does not take pipeline input

or the input and its properties do not match any of the parameters that take pi

peline input.

At line:1 char:72

+ get-publicfolder \"LaMaree" -recurse | Add-PublicFolderClientPermission <<<<

-Identity \"LaMaree" -AccessRights EditAllItems -User "Daniela" -Server np01

Share this post


Link to post
Share on other sites

Das "-identity" bei Add-PublicFolderClientPermission brauchst Du nicht, da dies der Wert ist, der von Get-PublicFolder übergeben wird. Daher wird das auch fehlschlagen denke ich.

 

Versuchs mal mit:

 

get-publicfolder "\LaMaree" -recurse | Add-PublicFolderClientPermission -User "Daniela" -AccessRights EditAllItems -Server np01

Share this post


Link to post
Share on other sites
Der letzte Beitrag zu diesem Thema ist mehr als 180 Tage alt. Bitte überlege Dir, ob es nicht sinnvoller ist ein neues Thema zu erstellen.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

Werbepartner:



×
×
  • Create New...