I am trying to write a simple batch file which will use HP's online ILO configuration utility (hponcfg.exe) to add an administrative user to all ILO's in our organization.
To do this, I need to take a .xml file on one server and copy it to the server I am running psexec on. I then run another psexec command which uses hponcfg to add the user to the ilo. The reason I want to use psexec to do the file copy instead of just copying the file outright is because psexec has the "@file" feature which allows you to fee a .txt file with your server list to it. Using this will allow me to to add the user to all ILO's at once in my organization. If I use copy, I need to copy this file for each server and I would like to avoid that if possible.
I'm trying to take ilo_update.xml on a server called insightmgr and copy it to the M: drive on a server called citrix-xp02. Later I run another psexec command which uses hponcfg to reference the ilo_update.xml file, which works flawlessly.
below is the psexec command and error that is returning. Anyone know what I'm doing wrong? When I run the command locally on the citrix server it works like a charm!
psexec \\citrix-xp02 -u "domain\user" -p "password" "cmd.exe copy \\insightmgr\c$\downloads\
PsExec v1.94 - Execute processes remotely
Copyright (C) 2001-2008 Mark Russinovich
Sysinternals - www.sysinternals.com
Starting cmd.exe copy \\insightmgr\c$\downloads\
te.xml M: on
PsExec could not start cmd.exe copy \\insightmgr\c$\downloads\
date.xml M: on citrix-xp02:
The system cannot find the path specified.