Hello, I am having issues with the following script that worked great as a policy for Big Sur and older OS/Macs to rename Macs, but for some reason, Macs with M1/Monterey will not execute the rename commands as a Policy Script.
#!/bin/sh
/usr/sbin/scutil --set ComputerName "Test-Mac"
/usr/sbin/scutil --set HostName "Test-Mac"
/usr/sbin/scutil --set LocalHostName "Test-Mac"
exit 0
