-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Device rename by using local csv file #141
Comments
Hi there,
You could write this yourself today via Graph. You wouldn’t run it on each device, but as a service script that renamed devices as they were added to Intune.
You can find more here : Working with Intune in Microsoft Graph - Microsoft Graph v1.0 | Microsoft Learn<https://learn.microsoft.com/en-us/graph/api/resources/intune-graph-overview?view=graph-rest-1.0>
From: Smarthome-Creator ***@***.***>
Date: Wednesday, 19 June 2024 at 14:12
To: microsoft/shell-intune-samples ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [microsoft/shell-intune-samples] Device rename by using local csv file (Issue #141)
I know it is a feature request and not an issue but i hope u can help me.
Renaming the device according to its serial number is not really practical. It's easier to find a device by a unique hostname. And that's my idea, can you write a script that makes it possible to load a CSV file on the Mac that contains the serial number with associated hostname and if the serial number finds a match in the CSV file sets the corresponding hostname?
The logical buildup:
(CSV file)
Serial number: Hostname:
XXXXXXXXXXXXX = MBXXXX (MB for MacBook)
XXXXXXXXXXXXX = MMXXXX (MM for Mac mini)
and so on.
The script finds the matching serial number and gives the Mac the correct host name.
—
Reply to this email directly, view it on GitHub<#141> or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGOC2JNDDAM55D7NBX4NUODZIF7T3BFKMF2HI4TJMJ2XIZLTSOBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJLJONZXKZNENZQW2ZNLORUHEZLBMRPXI6LQMWBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTLDTOVRGUZLDORPXI6LQMWSUS43TOVS2M5DPOBUWG44SQKSHI6LQMWVHEZLQN5ZWS5DPOJ42K5TBNR2WLKJSG43DKMJZHA3DBAVEOR4XAZNFNFZXG5LFUV3GC3DVMWVDEMZWGIZTKNJTHA42O5DSNFTWOZLSUZRXEZLBORSQ>.
You are receiving this email because you are subscribed to this thread.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I know it is a feature request and not an issue but i hope u can help me.
Renaming the device according to its serial number is not really practical. It's easier to find a device by a unique hostname. And that's my idea, can you write a script that makes it possible to load a CSV file on the Mac that contains the serial number with associated hostname and if the serial number finds a match in the CSV file sets the corresponding hostname?
The logical buildup:
(CSV file)
Serial number: Hostname:
XXXXXXXXXXXXX = MBXXXX (MB for MacBook)
XXXXXXXXXXXXX = MMXXXX (MM for Mac mini)
and so on.
The script finds the matching serial number and gives the Mac the correct host name.
The text was updated successfully, but these errors were encountered: