Skip to content

UpSync V2 examples

Cristi Petruta edited this page May 6, 2022 · 1 revision

Fetch categories

upsync.exe pre-fetch --master --destination master.zip

master.zip is a baseline containing categories.

Sync drivers for windows 10 1803 or later

  1. Make a copy of master.zip that will be the baseline for the filtered fetch operation

copy master.zip master-drivers-1803.zip

  1. Print all classifications that contain "drivers" in the title

upsync.exe query --classifications --title-filter "driver" --source master-drivers-1803.zip

  1. Print all products that contain "windows 10 1803" in the title

upsync.exe query --products --title-filter "windows 10 1803" --source master-drivers-1803.zip

  1. Fetch all driver updates metadata for windows 10 1803 and later. The IDs were obtained from the commands above.

upsync.exe fetch --classification-filter ebfc1fc5-71a4-4f7b-9aca-3b9a503104a0 --product-filter 8570b1a2-0551-42c8-a3e7-d3783c3d36d4 --baseline master-drivers-1803.zip

The result is written to master-drivers-1803-1.zip. This file is the new baseline.

View driver metadata and sync driver content

  1. List drivers that match the hardware ID "intelaudio\func_01&ven_10ec&dev_0294&subsys_10431481"

upsync.exe query --updates --source master-drivers-1803-1.zip --hwid-filter "intelaudio\func_01&ven_10ec&dev_0294&subsys_10431481"

  1. Sync content for drivers in "windows 10 1803 and later" that match the hardware ID "intelaudio\func_01&ven_10ec&dev_0294&subsys_10431481"

upsync.exe fetch-content --metadata-source master-drivers-1803-1.zip --hwid-filter "intelaudio\func_01&ven_10ec&dev_0294&subsys_10431481" --destination .\

Serve updates to downstream WSUS servers

  1. Get a default server configuration file from the official upstream server

upsync.exe fetch-config --destination server-config.json

  1. Serve "windows 10 1803 and later" drivers to a downstream WSUS server:

upsync.exe run-upstream-server --endpoint localhost --port 8080 --metadata-source master-drivers-1803-1.zip --content-source .\ --service-config server-config.json

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

Export a driver to WSUS

  1. Export all driver updates with "surface firmware" in title

upsync.exe export --export-file export.cab --title-filter "surface firmware" --source master-drivers-1803-1.zip --server-config server-config.json

  1. Copy export.cab to a WSUS server

  2. On your WSUS server, on an elevated command prompt on WSUS, go to %ProgramFiles%\Update Services\Tools and run

WsusUtil.exe import export.cab import.log

  1. You can now manage the imported update using regular WSUS tools