Skip to content

UpSync V3 examples

Cristi Petruta edited this page Sep 19, 2022 · 5 revisions

Fetch categories

upsync pre-fetch --store-path .\store

Sync security updates for Windows 11

  1. Print "Security Updates" classification to get its ID

upsync.exe query --title-filter "Security Updates" --store-path .\store --package-type microsoft-classification

  1. Print "Windows 11" product to get its ID

upsync.exe query --title-filter "Windows 11" --store-path .\store --package-type microsoft-product

  1. 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

  1. Query and view update metadata

upsync.exe query --title-filter "cumulative" --store-path .\store --package-type microsoft-update

  1. 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

  1. Sync update content

upsync fetch-content --metadata-store-path .\store --content-store-path .\content --classification-filter 0fa1201d-4330-4fa8-8ae9-b877473b6441 --skip-superseded

Serve updates to downstream WSUS servers

  1. Sync some updates locally to ./store and ./content

  2. 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

  1. Configure the WSUS server to get updates from http://localhost:8080

Serve updates to Windows Update clients

  1. Sync some updates locally to ./store and ./content. Security Updates for Windows 11 is an example filter.

  2. Configure group policy on a Windows device to connect to your private update server.

  3. Serve updates from your local stores:

upsync run-update-server --metadata-store-path .\store --content-source .\content --endpoint localhost --port 40080

Export updates from the local store to WSUS format

  1. Sync some update metadata to a local store

  2. 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.

  1. Follow WSUS instructions on how to import the updates from the export file generated above.