-
Notifications
You must be signed in to change notification settings - Fork 20
UpSync V2 examples
Get the upsync tool from https://github.com/microsoft/update-server-server-sync/releases
upsync.exe pre-fetch --master --destination master.zip
master.zip is a baseline containing categories.
- Make a copy of master.zip that will be the baseline for the filtered fetch operation
copy master.zip master-drivers-1803.zip
- Print all classifications that contain "drivers" in the title
upsync.exe query --classifications --title-filter "driver" --source master-drivers-1803.zip
- 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
- 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.
- 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"
- 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 .\
- Get a default server configuration file from the official upstream server
upsync.exe fetch-config --destination server-config.json
- 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
- Configure the WSUS server to get updates from http://localhost:8080
- 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
-
Copy export.cab to a WSUS server
-
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
- You can now manage the imported update using regular WSUS tools