0 votes

Good morning, I need to get the serial number of PC and update the description with the value result. I tried with %serialNumber% but the is empty. Can u help me? thanks, Simone

by (130 points)

1 Answer

0 votes
by (211k points)

Hello Simone,

The approach you are using is correct for a custom command, business rule or scheduled task configured for the Computer object type. However, as per our check, the serialNumber property is not populated in AD automatically. It can only be retrieved using a script. The following thread on Microsoft forums should be helpful: https://social.technet.microsoft.com/Forums/windows/en-US/0c473196-afd0-43ec-b812-db54d62c2b16/serial-number-attribute-of-computer-object?forum=winserverDS.

Related questions

0 votes
1 answer

Hello, i have a custom command which sets the oof-message for the selected user. in this custom command i have a parameter "param-vertretung" (ad-object picker). Now i want to ... and email of the stand-in in the oof-message. Can you help me with that? Thanks

asked Nov 13, 2020 by lohnag (100 points)
0 votes
1 answer

I would like to create a task to get an address from proxyAddresses (Email Proxy Addresses) and add the number to a CustomAttribute field. The address would be DIR:xxxx ... digit number) and I would like to add the 4 digit number to adm-CustomAttributeText5.

asked May 6, 2016 by Kikaida (1.1k points)
0 votes
1 answer

I'm not able to retrieve the Description of a user using ADSI. I'm trying user.Get("description").ToString() on IADsUser I get the error, The 'description' property cannot be found in the cache. Is there a different method I need to use to get Description?

asked Feb 6, 2017 by sdavidson (730 points)
0 votes
1 answer

When we create a shared mailbox, we create an associated mail-enabled security group. In the security group I want to populate the description field with the name of the shared mailbox ... How can I get just the "name" of the shared mailbox versus the full DN?

asked Feb 4 by atnorman (120 points)
0 votes
0 answers

Hi, I have a scheduled task in place that is disabling accounts based on certain criteria's. When the task hits an account that is supposed to be disabled it modifies the ... Account has been disabled on XY" What's in the attached screenshot didn't worked.

asked Mar 2, 2016 by ijacob (960 points)
2,609 questions
2,347 answers
6,236 comments
869,275 users