Get-LnvUpdatesRepo#
Create a local Lenovo Update Repository.
Synopsis#
Downloads Lenovo update packages for specified machine types and builds a local repository compatible with Update Retriever and Thin Installer.
Description#
Get-LnvUpdatesRepo retrieves Lenovo update metadata and packages directly from Lenovo’s public catalogs and stores them in an Update Retriever–style repository.
This cmdlet is intended for environments where:
- Update Retriever cannot be used
- Automated or scheduled repository creation is required
- Offline or controlled update distribution is needed
The generated repository includes package folders, metadata catalogs, and log files.
Parameters#
-RepositoryPath (Required)#
Path where the local repository is created.
-MachineTypes#
Comma-separated list of 4-character Lenovo machine types (e.g. "21DD,21DE").
If omitted, the local Lenovo system machine type is used.
-WindowsVersion#
Target OS version: "10" or "11".
Defaults to the current system OS.
-PackageTypes#
Filter by package type:
1Application2Driver3BIOS4Firmware
Defaults to all types.
-RebootTypes#
Filter by reboot behavior:
0No reboot1Forced reboot3Requires reboot4Forced shutdown5Delayed forced reboot
Defaults to all types.
-Severities#
Filter by update severity:
0Default1Critical2Recommended3Optional
-PackageList#
Limit repository creation to specific package IDs.
-RT5toRT3#
Converts Reboot Type 5 updates to Reboot Type 3.
Intended for task sequence scenarios.
Cannot be used with
-CloudRepo.
-CloudRepo#
Creates a metadata-only repository that references Lenovo CDN packages.
Cannot be used with
-RT5toRT3.
-DeltaUpdate#
Downloads only new or changed updates since the last run.
Output#
This cmdlet does not return objects.
It creates:
- Package folders
- database.xml and database.xsd
- Log file detailing execution
Examples#
Create a full repository#
Get-LnvUpdatesRepo `
-RepositoryPath "C:\Repository" `
-MachineTypes "21DD,21DE" `
-PackageTypes "2,3,4" `
-RebootTypes "3,5"
Update an existing repository (delta)#
Create a Cloud-based repository#
Notes#
- Initial runs should be performed without
-DeltaUpdate