0 votes

Hi

Any easy way to convert the ObjectGUID we get from:

$TheGUID = (Get-AdmGroup -Identity $SomeObject -Server $SomeServer).ObjectGUID

so that we can store them on the current object that Adaxes is working on, using:

$Context.TargetObject.Put("adm-customAttributeBinary1", $TheConvertedGUID)

----

We have tried some convert examples from Internet, but they do not work.

- Thanks

by (2.6k points)

1 Answer

0 votes
by (2.6k points)
selected by
Best answer

This works :oops: :oops:

$TheGroupGUID = (Get-AdmGroup -Identity $SomeGroup -Server $SomeServer).ObjectGUID
$TheNewGUID = [System.String]::Join('', ($TheGroupGUID | ForEach-Object {$_.ToString('x2')}))

Related questions

0 votes
1 answer

Hi, I would like to add a CSV file during my group creation form and add users from CSV to new created group. However the CSV file is converted into Binary file and I am ... help is really appreciated. Thanks! PS: What I tried so far and error message I got

asked Jul 3, 2023 by wintec01 (1.1k points)
0 votes
1 answer

I had a script that would copy the values from adm-CustomAttributeTextMultiValue1 and save them into extensionAttribute15 as a comma seperated list. The script somehow got deleted and I can't seem to find the tutorial I used to create it before.

asked Jul 1, 2022 by jordan (110 points)
0 votes
1 answer

Hi, I am running a report to dump some attributes. I have one attribute that is Yes or No in AD. I want to transform that when generating that in a report. <br&gt ... I believe it is script in a report -specific column but not sure how to construct. Thanks.

asked Jun 26, 2021 by techg (320 points)
0 votes
0 answers

Hey Guys We have some issues with new meeting rooms that we have created. Previously we used to have on-premise exchange but switched to office365. Before doing ... OU but the interface are different. under exchange properties they are different aswell.

asked Sep 18, 2019 by seanr (70 points)
0 votes
1 answer

The built in functionality to convert exchange online mailboxes to shared does not work for users that are synced from our local AD via Azure AD connect. How can we over ... account to in cloud from synced with AD all our issues with this would be resolved.

asked Jul 31, 2019 by john.morrow (270 points)
3,346 questions
3,047 answers
7,782 comments
544,986 users