-
Notifications
You must be signed in to change notification settings - Fork 20
UpSync V3 examples
Get the upsync tool from https://github.com/microsoft/update-server-server-sync/releases
upsync pre-fetch --store-path .\store
- Print "Security Updates" classification to get its ID
upsync.exe query --title-filter "Security Updates" --store-path .\store --package-type microsoft-classification
- Print "Windows 11" product to get its ID
upsync.exe query --title-filter "Windows 11" --store-path .\store --package-type microsoft-product
- Fetch all security updates for windows 11. The IDs were obtained from the commands above.
upsync.exe fetch --classification-filter 0fa1201d-4330-4fa8-8ae9-b877473b6441 --product-filter 72e7624a-5b00-45d2-b92f-e561c0a6a160 --store-path .\store
- Query and view update metadata
upsync.exe query --title-filter "cumulative" --store-path .\store --package-type microsoft-update
- Query and export update metadata to JSON
upsync.exe query --title-filter "cumulative" --store-path .\store --package-type microsoft-update --json-out-path query-results.json
- Sync update content
upsync fetch-content --metadata-store-path .\store --content-store-path .\content --classification-filter 0fa1201d-4330-4fa8-8ae9-b877473b6441 --skip-superseded
-
Sync some updates locally to ./store and ./content
-
Serve "windows 10 1803 and later" drivers to a downstream WSUS server:
upsync run-upstream-server --metadata-store-path .\store --content-source .\content --endpoint localhost --port 40080
- Configure the WSUS server to get updates from http://localhost:8080
-
Sync some updates locally to ./store and ./content. Security Updates for Windows 11 is an example filter.
-
Configure group policy on a Windows device to connect to your private update server.
-
Serve updates from your local stores:
upsync run-update-server --metadata-store-path .\store --content-source .\content --endpoint localhost --port 40080
-
Sync some update metadata to a local store
-
Export using UpSync
upsync.exe export --export-file export.cab --title-filter "cumulative" --store-path ./store --server-config upstream-server-config.json
Note: a default configuration file, "upstream-server-config.json" is available in the UpSync directory.
- Follow WSUS instructions on how to import the updates from the export file generated above.