Anonymous_User Absent Member.
Absent Member.
3234 views

Few questions about DRA Powershell extensions module


Hello all,

Could somebody advice how to move any objects (like users, groups,
computers) via the DRA powershell module? I was not able to find any
move-DRAComputer command. We have only move-draou. 😞

Add-DraGroups works pefect, but we cannot do any Add-DRAGroupmembers.

Example:

Add-DRAGroupMembers -Identifier "SITY_IT" -Groups "SITY_NEWIT" -Domain
FQDN -DRAHostServer DRAHOSTSERVERNAME

we got:

Add-DRAGroupMembers : Unexpected character encountered while parsing
value: <. Path '', line 0, position 0.
At line:1 char:1
+ Add-DRAGroupMembers -Identifier "SITY_IT" -Groups "SITY_NEWIT" -Domain
co ...
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation:
({"groupIdentifi...DOMAIN\SITY_IT"}]}:String) [Add-DRAGroupMembers],
PSInvalidOperationException
+ FullyQualifiedErrorId :
ProcessByIDFailed,NetIQ.DRA.PowerShellExtensions.GroupCommands.AddDRAGroupMemberCommand


Thanks!
Rodion


--
rodion_e
------------------------------------------------------------------------
rodion_e's Profile: https://forums.netiq.com/member.php?userid=9769
View this thread: https://forums.netiq.com/showthread.php?t=53590

0 Likes
3 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Few questions about DRA Powershell extensions module

rodion,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

Has your issue been resolved? If not, you might try one of the following options:

- Visit http://www.netiq.com/support and search the knowledgebase and/or check all
the other support options available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.netiq.com)

Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.netiq.com/faq.php

If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your NetIQ Forums Team
http://forums.netiq.com


0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Few questions about DRA Powershell extensions module


Wait! DRA has a PowerShell module?


--
daabsw
------------------------------------------------------------------------
daabsw's Profile: https://forums.netiq.com/member.php?userid=6721
View this thread: https://forums.netiq.com/showthread.php?t=53590

0 Likes

Re: Few questions about DRA Powershell extensions module


rodion_e;257573 Wrote:
> Hello all,
>
> Could somebody advice how to move any objects (like users, groups,
> computers) via the DRA powershell module? I was not able to find any
> move-DRAComputer command. We have only move-draou. 😞
>
> Add-DraGroups works pefect, but we cannot do any Add-DRAGroupmembers.
>
> Example:
>
> Add-DRAGroupMembers -Identifier "SITY_IT" -Groups "SITY_NEWIT" -Domain
> FQDN -DRAHostServer DRAHOSTSERVERNAME
>
> we got:
>
> Add-DRAGroupMembers : Unexpected character encountered while parsing
> value: <. Path '', line 0, position 0.
> At line:1 char:1
> + Add-DRAGroupMembers -Identifier "SITY_IT" -Groups "SITY_NEWIT" -Domain
> co ...
> +
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> + CategoryInfo : InvalidOperation:
> ({"groupIdentifi...DOMAIN\SITY_IT"}]}:String) [Add-DRAGroupMembers],
> PSInvalidOperationException
> + FullyQualifiedErrorId :
> ProcessByIDFailed,NetIQ.DRA.PowerShellExtensions.GroupCommands.AddDRAGroupMemberCommand
>
>
> Thanks!
> Rodion



The DRA powershell just works with ADSI, you must use the version of
PowerShell located in the \Windows\SysWOW64\ folder

Look my example:

$MonGroupe =
[ADSI]"OnePoint://DRASERVER/CN=ADgroup,OU=users,DC=domain,DC=com"
$MonGroupe.add('CN=ADuser,OU=users,DC=domain,DC=com')
$MonGroupe.setinfo()


--
jai_fagundes
------------------------------------------------------------------------
jai_fagundes's Profile: https://forums.netiq.com/member.php?userid=7634
View this thread: https://forums.netiq.com/showthread.php?t=53590

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.