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
0 answers

We currently convert user mailboxes to shared mailboxes during deprovisioning process but if the user mailbox was already a shared mailbox then the script throws an error ... user mailbox. Here is the actions of the current deprovision command: Thanks!

asked Oct 1 by Carlos (40 points)
0 votes
1 answer

As we use the dateformat dd.mm.yyyy I set it as required in this format in the regesp. Is it possible to convert the CustomAttributeText5 from "dd.mm.yyyy" in "yyyy ... [datetime]::ParseExact($entryDatePropertyName, "dd.MM.yyyy", $null).ToString("yyyy-MM-dd")

asked Jun 11 by fabian.p (380 points)
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.5k 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)
3,552 questions
3,242 answers
8,243 comments
547,830 users