Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Copy Files from Network to local server and launch cmd

$
0
0
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

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>