Redirecting Paths

One of the best uses of OSDBuilder Settings is to redirect paths. In this example I have two OSDBuilder Home directories for keeping Development and Production separate. The issue with this is the duplicated work. For example I need to import identical Operating Systems, and download identical Updates. Keeping some things in sync can be quite a challenge

Global OSDBuilder.json

In this case, I can choose which directories to redirect and add them to a JSON file and save it in %ProgramData%\OSDeploy\OSDBuilder.json

%ProgramData%\OSDeploy\OSDBuilder.json
1
{
2
"PathContent": "C:\\OSDBuilder\\Shared\\Content",
3
"PathContentPacks": "C:\\OSDBuilder\\Shared\\ContentPacks",
4
"PathFeatureUpdates": "C:\\OSDBuilder\\Shared\\FeatureUpdates",
5
"PathMount": "C:\\OSDBuilder\\Shared\\Mount",
6
"PathOSImport": "C:\\OSDBuilder\\Shared\\OSImport",
7
"PathOSMedia": "C:\\OSDBuilder\\Shared\\OSMedia",
8
"PathUpdates": "C:\\OSDBuilder\\Shared\\Updates"
9
}
Copied!

Close all open PowerShell sessions to clear everything, or just reinitialize OSDBuilder

1
OSDBuilder -Initialize -Verbose
Copied!

If everything worked right, Verbose will display any added settings

I can then move and merge the shared Directories

Since things were set in a Global file, any new OSDBuilder Home will also inherit these settings

Last modified 1yr ago
Copy link