I am trying to find a way to deploy VNC and Visual Studio Code. Was
wondering if anyone has a way to do it and would be able to help me on
this. Thank you in advance.
Sorry for the late reply. I was able to get this working because I use
Composer to make it a PKG and deploy it to machines. Thank you guys for
the guides and help!
Just want to update, it worked, so I changed (
computerName=$internalNamingScheme-$modelName-$fname-$serial ) to (
computerName=$lastLoggedInUser-$modelName-$fname-$serial ) And now it
works.
This is what I currently have. #!/bin/bash#
VariablesinternalNamingScheme=XXXXlastLoggedInUser=`defaults read
/Library/Preferences/com.apple.loginwindow lastUserName`fname=`dscl .
-read /Users/$lastLoggedInUser RealName | grep ^\ | awk '{print
$1}'`m...
So, I would change ( internalNamingScheme=XXXX ) I would put
$lastloggedInUser? and then in # Generate new computer name. I would do
what you pasted which is ( computerName=$lastLoggedInUser-$modelName )?
Sorry, I am not perfect in scripts.
Thank you for this! This worked for me too but I have a quick question.
For this part of the script ( internalNamingScheme=XXXX ) it puts
XXXX-MacBookPro etc etc on my computer name. How would I make it be the
username of the user who is using the Co...