question

Heimdallr avatar image
0 Votes"
Heimdallr asked Heimdallr commented

Configuration Manager OSD Build - Automatic Device Naming Step

Hi,

I am looking for something to set automatic device name during OSD Build in my TS.
I am aiming in something that would be a PS script and would name device like: "Location-Type-Last digits of serial "

Now, as far as I know you can check serial number and add type like WO for Workstation or DS for Desktops, but I was thinking, is it possible to somehow set the location based on AD Sites, or some other network factor to determine where the device is being built? I wish the build to be fully automatic so person responsible for it would just chose TS and that's it. Any ideas or hints for that type of script and location factor would be helpful.

Thank you

mem-cm-osd
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SimonRenMSFT-3639 avatar image
0 Votes"
SimonRenMSFT-3639 answered Heimdallr commented

Hi,

Thanks for posting in Microsoft MECM Q&A forum.

Please refer to below helpful thread, it could achieve Semi-Automatic: Location Code + Form Factor + Serial Number

ConfigMgr OSD Device Naming
Note: This is non-Microsoft link, just for your reference.

Best regards,
Simon


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for that extensive article. IT contains what I wanted to get, will try it out now:)

0 Votes 0 ·
yannara avatar image
1 Vote"
yannara answered Heimdallr commented

Yep, WO+%SERIAL% is easy one, adding locations with variables would require more work. Some years ago we tried some network IP range detection with wmi toward Task Sequence but it couldn't be done easily. There is also downside to add location to hostname - hostname will stick, site might change or user works from home. Not sure, is there any idea to tight location to hostname. I would avoid this approach :)

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for that input. I've also put in question the network location naming now and I'm figuring out if we even need it.

0 Votes 0 ·