HP Officejet Pro and Officejet printers Series - IT Administrators Install Guide

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, Windows 7, and Windows 8 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/Windows 7/Windows 8 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, Windows 7, and Windows 8, and at
C:\Documents and Settings\<NTUserAccount>\Local Settings\Application
Data\HP\AtInstall\<execution#>\DeviceSetup.log
on XP.
Plug and Play Suppression
The installer supports adding a registry value that will instruct Windows to ignore the serial number
when plug and playing a USB printer (for the printer model being installed). This will allow an
Enterprise to service a USB printer at a user’s desk, and return a printer with a different serial
number which, when connected to the PC, will appear as if it were the same printer to the user.
To enable this feature, set the property IGNORE_SERIALNUM to “YES”. For example, if using
msiexec.exe:
msiexec.exe /i D3050x86.msi /qn ENTERPRISE=YES IGNORE_SERIALNUM=YES