Customize OSD deployments in SCCM
OSD in SCCM is great and can be customized very easily.
I first ran across a great HTA script written by Nick Mosely. With this script you are able to add in a selection for different applications. I then edited the script to suit my needs:
This script will only run properly inside the OSD PXE environment (it might run inside OSD before the restart as well but I didn't test that)
My script sets a bunch of OSD variables that then install the applications. In order to set the computer name and if needed add a user to the Administrators group I use:
With this little tool you can use regex to check and make sure that the computer name follows the corporate standards (if any).
Recently I have also discovered a nice little program that might soon replace the HTA script because it just looks so much better:
With this program the really cool thing is that you can create application sets in order to force applications for certain sites. You can also enforce certain applications but leave others open for selection/deselection.
If I actually have some time I might end up redoing my script inside the OSDAppChooser. We will see.
And actually before I forget about it. Here is my script to add a user to the local Admin group. I kind of added the script together from several different places and added my own touches to it. It might not be pretty but it works. This script has to be run during the last part of the OSD setup phase (when it installs the software as well) I first grab the user name from the OSD variable Local_Admin then I add it to that admin group:
Later,
Andreas