I’ve been doing some work out a customer recently, and there was a requirement (or at least a “it would be really great if we could do this”-type request) to be able to trigger the creation of SCCM prestaged media on a remote system which did NOT have the SCCM console installed.
As you know, you can create a variety of bootable media from the SCCM console, and under the hood the console is calling the CreateMedia.exe commandline utility, which you can also call directly if required. There’s a good list of the available switches and usage here on TechNet.
However, how to enable this on a remote system which didn’t have the console installed, and where installing the console was not an option?
The solution is as follows:
From a machine which does have the SCCM console installed, navigate to the installation path (you can use the %SMS_ADMIN_UI_PATH% variable to get there directly). From this location (which is something like C:Program Files (x86)Microsoft Configuration ManagerAdminConsolebini386) copy the following files to a separate folder:
- The complete OSD folder
Copy the folder over to your remote system (it’s less than 40MB in size) and then on the remote system create the following registry entry:
- Key: HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftConfigMgr10Setup (for a 64-bit system)
- String: UI Installation Directory
- Value: C:TempCreateMedia (or whatever is the full path of the folder which you copied across)
Now you can run CreateMedia.exe from this location to build your SCCM media, without needing to install the console.
One word of warning – if you ever DO want to install the console on the remote system, delete that registry entry first so that it doesn’t get in the way.