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

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 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 (240 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 (250 points)
0 votes
1 answer

Is it possible to visually convert the computer property associated with the Local Administrator Expiration Date "ms-Mcs-AdmPwdExpirationTime" from an integer to a more readable date ... on the fly when the property is displayed in the web interface. Thanks!

asked Aug 16, 2016 by VTPatsFan (610 points)
2,797 questions
2,530 answers
6,594 comments
57,502 users