Jump to content

Copy Files from Network to local server and launch cmd


 Share

Recommended Posts

deploying autoit .exe script via SCCM 2012 to servers then launching the script. Here is the script

FileCopy("\\networkpath\Scripts\ilo\FileCopy\file1.cmd", "C:Program Files\hp\hponcfg\", 0)

FileCopy("\\networkpath\Scripts\ilo\FileCopy\file2.xml", "C:Program Files\hp\hponcfg\", 0)

Run("C:\Program Files\hp\hponcfg\file1.cmd", "C:\Program Files\hp\hponcfg\", @SW_HIDE)

----------------------------------------------------------

So my problem seems to be that SCCM launches the exe as local system acccount, which doesnt have rights to the network path to copy the files. How can I copy these files as my Admin account in the script?

Thanks,

chris

Link to comment
Share on other sites

  • Moderators

Last I knew, your only options in SCCM are Run as logged in user, or Run as System. You could set it to Run as logged in user, then log into each of the boxes. Otherwise, you would have to set the Package to drop the executable somewhere on the box, then in the command line section do a RunAs.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...