Hey guys, I'm looking to have my department, maybe even building set automatically during imaging. I have 3 department groups; staff, admin, and student. We are using and AD right now, but until we re-organize it, I cannot rely on it to pull department info correctly. I was wondering if anyone knew how to script this out? I'm not sure if the API is needed. Thank You!
Hey @Lhsachs, I just tried out that script and I wasn't able to populate any Department settings. I'm not sure if it's related to @bentoms post. Have you been imaging with those recently? I know an alternative way, is using prestage images, but I have a feeling we may miss updating those manually when machines change hands or switch departments. Thank You!
Is this still working for you? I'm running JSS 9.91 and i'm currently having a problem with running the script during imaging. Everything installs fine on the image but it never runs the script to change the department. I have a policy set up so I can call the script in self service and when I do that it works just fine. No other scripts are set up to run during imaging and I have the priority set to After.
I just took another look back into this. I haven't needed that script to actually work for a while during imaging, but it looks like its not working now. Ive tried the script at reboot, in a payload free pkg to install on reboot, and even a script running at reboot that just triggers a policy containing that script or pkg and nothing is working in an automated way. I can run the commands manually or via self service and they still work that way.