Skip to main content

replace command

Use the replace command to replace the FoD key for the specified system on Lenovo Web site.

replace command syntax

OneCli.exe [misc] fod replace <--featurecode <feature_code>> <--uid <uid>> <--olduid <old_uid>> <--kmsid<kms_id>>
[--installin <install_in>] [--dir <dir_name>] [--proxy <proxy_info>] [<options>]
Table 1. replace command specific parameters
ParameterRequired/OptionalNotes
--dirOptionalSpecify the directory to save the downloaded key file. The default value is the current directory.
--featurecodeRequiredSpecify the feature code of the FoD key to be replaced.
--installinOptional

System machine type and serial number of the target system.

Install the FoD key.

--kmsidRequiredSpecify Lenovo ID credential for Lenovo Web site interactive.
--olduidRequiredSpecify the previous unique identifier information.
--proxyOptional

Use proxy to connect to Lenovo Web site.

The format is user: password@host[:port].

For IPv6 address, the format is socks5://user:password@[IPv6]:port.

--uidRequiredSpecify unique identifier information.
  • --check-trust, -C

  • --never-check-trust, -N

  • --nolog

  • --output, -o

Optional

Refer to Table 2.

Example of the replace command

OneCli.exe fod replace --featurecode xxxx --uidxxx --olduid xxx --kmsid userid:password 
--installin xxxxxx --output replace