Quantcast
Channel: Software Communities : Popular Discussions - ActiveRoles
Viewing all articles
Browse latest Browse all 1277

PS: Add secondaryowner to group

$
0
0
Dear all,

I have the following problem:

I like to read the secondaryowners from one group and write it into another group

$data = Get-QADObject -type volume data -IncludedProperties edsvasecondaryowners -proxy

$user = $data.edsvasecondaryowners
$user
CN=test\, muster,OU=testuser,OU=Users,DC=test,DC=de


Now I´m able to set the secondaryowners to another group:

Set-QADGroup "data-write" -ObjectAttributes @{"edsvasecondaryowners" = "$user"} -proxy

It´s working great if I have only one object. But If there are two secondary owners it´s not working.

I think it´s because the 2 users in $user are not seperated by quotes.
$user with two secondaryowners
CN=test\, muster,OU=testuser,OU=Users,DC=test,DC=de
CN=test\, haus,OU=testuser,OU=Users,DC=test,DC=de


The command to add two user is the current:

C:\>set-qadgroup "name-Read" -objectattributes @{'edsvaSecondaryOwners'='CN=generic2,OU=Group1,DC=bluesun,DC=com','
CN=secondowner,OU=Group1,DC=bluesun,DC=com'} -proxy

But how is it possible to seperate them?

Do you have any suggestions?

Thanks
Steffen



Viewing all articles
Browse latest Browse all 1277

Trending Articles