HP PageWide Pro 577dw OfficeJet Pro X and PageWide Pro Series - IT Administrat - Page 10

Command Line Tool to Update IP Address of Installed Printer, Command Line Tool to Update Hostname

Page 10 highlights

Command Line Tool to Update IP Address of Installed Printer Using an administrator account, run the following command on the target PC to change the IP address of a network installed device: START /WAIT /D"C:\Program Files\HP\\Bin" DeviceSetup.exe /serialnumber /changeip NOTE: On Vista and Windows 7, the above command must run from an elevated process when UAC is enabled. This starts a process that attempts to find the network installed device with the given serial number and change it to use the new IP address. The entire process is done silently without displaying any UI. If the operation is successful, it will return a value of 0; otherwise, it will return a non-zero error code. Command Line Tool to Update Hostname of Installed Printer Using an administrator account, run the following command on the target PC to change the hostname of a network installed device: START /WAIT /D"C:\Program Files\HP\\Bin" DeviceSetup.exe /serialnumber /changehostname NOTE: On Vista and Windows 7, the above command must run from an elevated process when UAC is enabled. This starts a process that attempts to find the network installed device with the given serial number and change it to use the new hostname. The entire process is done silently without displaying any UI. If the operation is successful, it will return a value of 0; otherwise, it will return a non-zero error code. Potential Issues The following is a list of potential issues that might cause the update to fail:  DeviceSetup.exe could be failing on Vista/Windows7 due to UAC. Make sure you run DeviceSetup.exe in elevated mode when UAC is enabled.  You might have entered an incorrect serial number. Make sure you specify the correct serial number for the network device in the command line. Logs Each execution of DeviceSetup.exe generates a new log file, which can be found at C:\Users\\AppData\Local\HP\AtInstall\\DeviceSetup.log on Vista and Win7 and at C:\Documents and Settings\\Local Settings\Application Data\HP\AtInstall\\DeviceSetup.log on XP.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19

Command Line Tool to Update IP Address of Installed Printer
Using an administrator account, run the following command on the target PC to change the
IP address of a network installed device:
START /WAIT /D
“C:
\Program Files\HP\<Product Name>\
Bin”
DeviceSetup.exe /serialnumber <device serial
number> /changeip <new ip address>
NOTE
: On Vista and Windows 7, the above command must run from an elevated process
when UAC is enabled.
This starts a process that attempts to find the network installed device with the given serial
number and change it to use the new IP address. The entire process is done silently without
displaying any UI. If the operation is successful, it will return a value of 0; otherwise, it will
return a non-zero error code.
Command Line Tool to Update Hostname of Installed Printer
Using an administrator account, run the following command on the target PC to change the
hostname of a network installed device:
START /WAIT /D
“C:
\Program Files\HP\<Product Name>\Bin
DeviceSetup.exe /serialnumber <device serial
number> /changehostname <new hostname>
NOTE
: On Vista and Windows 7, the above command must run from an elevated process
when UAC is enabled.
This starts a process that attempts to find the network installed device with the given serial
number and change it to use the new hostname. The entire process is done silently without
displaying any UI. If the operation is successful, it will return a value of 0; otherwise, it will
return a non-zero error code.
Potential Issues
The following is a list of potential issues that might cause the update to fail:
DeviceSetup.exe could be failing on Vista/Windows7 due to UAC.
Make sure you run DeviceSetup.exe in elevated mode when UAC is enabled.
You might have entered an incorrect serial number.
Make sure you specify the correct serial number for the network device in the
command line.
Logs
Each execution of DeviceSetup.exe generates a new log file, which can be found at
C:\Users\<NTUserAccount>\AppData\Local\HP\AtInstall\<execution#>\DeviceSetup.log
on Vista and Win7 and at
C:\Documents and Settings\<NTUserAccount>\Local Settings\Application
Data\HP\AtInstall\<execution#>\DeviceSetup.log
on XP.