Quantcast
Channel: Ivanti User Community: Message List - OS Deployment and Provisioning
Viewing all articles
Browse latest Browse all 3345

Re: Running DOS Commands in Provisioning

$
0
0

GJHorn,

 

   You can still run those commands via the Unattend.xml in 9.6. Also, if you would like to manage those commands separate from the unattend, you can execute them through an Execute File action. To do this add an Execute File action with the following:

 

Target path and file name: %%windir%%\system32\cmd.exe

Command-line Parameters: /C netsh {necessary command line switches}

 

  1.    The "double percent" symbols around the "windir" variable are so that Provisioning understands it is an OS variable, and not a provisioning variable.
  2.    The "/C" switch is related to cmd.exe in this case, and makes it so that once the command that follows it is complete, cmd.exe will close rather than stay open possibly causing the task to hang.

 

Thanks,

 

Bryce.


Viewing all articles
Browse latest Browse all 3345

Trending Articles



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