Adding Windows Devices

Adding Windows Devices

Lenovo Device Manager supports an automated process that simplifies the onboarding of Windows devices. Users can easily download the .zip file package with the necessary files and apply to the devices. Any Lenovo Windows device can be automatically claimed on the LDM platform by installing the LDM Provisioning Pack to the device. 

The LDM Provisioning Pack (device.zip) is a zip file. The zip file contains: 
  1. setup.cmd - The setup file that will install UDC client in the Windows device. This setup script file should be executed with Administrator privileges.
  2. udc.exe - The UDC setup file
  3. udc-provision.json - The UDC Service information, task control settings, device parameters to be fetched when running the provisioning pack
  4. README.txt file
The setup is unique for the organization and must not be shared.
To set up a new LDM account, it is mandatory to have a Lenovo ID and get an email invitation from Lenovo. Once the admin account is set up, the org admin can invite other users within the organization to create accounts based on the roles and permissions granted to them.

Automatically Claiming a Windows Device

  1. Navigate to Device Management > Devices page. Click on ✚ Claim Device button.
  2. Select a device type. Windows tablets are not currently supported.


  3. Select OS type Windows. 
  4. Set the values of Installer Expiration (7 days/30 days/60 days/90 days/365 days) and Maximum Usage (5K Devices/10K Devices/50K Devices) from the dropdown. Select Download Provisioning Pack



  5. The provisioning pack will get downloaded. 
    This can be used on the current device, distributed to multiple devices or saved to a USB for on-prem installation.
  6. Unzip and copy the files to an empty folder on the device. For example, C:\temp\LDM.
  7. Open the location where the zip file has been extracted (C:\temp\LDM).
  8. Execute the setup.cmd script as an Administrator.
  9. Confirm the onboarding process was successful by checking the exit code.
    1. Exit code 0 indicates success
    2. Exit code non-zero indicates that the script was not able to successfully onboard the device. Refer to the Quick Start Guide for the list of errors and follow up actions.

Troubleshooting

If there is an error during the Windows Provisioning Pack installation, check the error code table to identify the error and rectify it by following the remedial tip.

Error CodeError NameRemedial Tip
0Ok
-1InvalidArgumentsProvide valid arguments / Run limit has been hit. 
To continue, delete HKLM:\SOFTWARE\Lenovo\Udc\Status\ScriptRunCount registry.
-2InvalidPrivilegesRun the script as an administrator
-4PortalUnreachableEnsure network connectivity and check the connection to the UDS portal. 
-5CertificateMismatch Portal certificate is not valid. Check for https proxy (like Fiddler) that overrides server certificate. Otherwise, contact Lenovo since server certificate could have been changed.
-6UdcSetupFileNotFoundWhen defining -UdcFilename parameter, it is necessary to provide the file.
-7InvalidInfSetupPackageUDC setup file does not contain files needed for the installation. Check if a valid file is provided.
-8UntrustedSetupFiilesUDC installation files doesn't have a valid issuer certificate. Check if a valid file is provided.
-9TokenExpiredLDI portal token has expired, or the device registration limit set for this token is over. Request for a new provisioning package with a new token.
-10TokenNotValidated UDS does not accept provided token. Create another provision package or contact the administrator.
-11RegisteredToAutomaticOrgThe device was registered to an automatic organization. Restart UDCService and try again. If it fails, contact the administrator.
-12DeviceAlreadyRegisteredThis device was already registered in the portal. No other action may be needed, but to use the script registration, delete the device from the portal.
-13Unable to RetrieveClaimCode The script /UDC was not able to retrieve the activation code required for registration of the device in the portal. Restart UDCService and try again. If it fails, contact the administrator.
-14UdcInstallationFailed UDC installation failed, check the script log file for details
-99AnotherInstanceRunningAnother script instance is running. Wait for it to finish.

    • Related Articles

    • Managing Devices Within Lenovo Device Manager

      Devices represent the various types of devices that are in your organization and typically used by employees. A device type can fall under any of the following categories: You can onboard one or more devices to LDM platform through the Device ...
    • Adding Linux (Ubuntu) Devices

      Lenovo Device Manager allows organization admins to claim Linux (Ubuntu) Edge or PC devices easily. Users can download the provisioning pack with the necessary files and apply to the devices. Any Lenovo Linux (Ubuntu) device can be automatically ...
    • Adding Android Devices

      Any Lenovo Android device can be claimed and provisioned in Lenovo Device Manager in two ways - scanning a QR code from the LDM portal or through a manual registration process. Automatically Claiming and Provisioning a Device Navigate to Device ...
    • Customizing LDM Portal

      Lenovo Device Manager (LDM) offers the customization capability to administrators to select specific devices, OS, and device management features within a specific organization's LDM instance. For new organization(s), LDM supports all devices and ...
    • Adding a Windows Application to Lenovo Device Manager

      Lenovo Device Manager offers two methods to package Windows based applications – Automatic and Custom Packaging. Automatic method is used for basic executable file deployment while Custom packaging method can be used for more specific file ...