batch file - Access folder on network drive with username password -


I currently have a script which installs a program from a network drive silently. However, the problem is that I have to enter a username and password to access these files Does anyone know how I can do this? This is what I currently have

  start / "" wait \ "network drive \ setup.exe" / adminfile "% ~ dp0outlook2013.msp"  

do i just need to end

  {password} USER: admin  

?

A solution is to temporarily install a network drive Pure Access has been suggested by the use. Use

  @echo off% SystemRoot% \ System32 \ net.exe Z: \\ Computer \ ShareName \ password / User: Administrator / Constant: No Start "" / Wait Use Z: \ setup.exe / adminfile "% ~ Dp0outlook2013.msp"% SystemRoot% \ System32 \ net.exe Z: / delete / yes  

parameter / persistent : No Disables the storage of the network In case of batch file, the user who executes this batch file will be able The mapping of the drive mapping drive has been abolished by the user before deletion: It can be executed.
She is not a shaw ld, but it is generally better that floating mapping always avoid recording this network drive connection in the Windows registry with parameter / persistent: no .


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -