MSFN Forum: Mapping a network drive under Windows PE - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Mapping a network drive under Windows PE Rate Topic: -----

#1 User is offline   gangsterhenk 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 29-June 06

Posted 30 May 2007 - 07:18 AM

In the unattended.xml, section RunSynchronousCommand, Pass1 WindowsPE,
I tried using the command "net use w: \\server\share" to map a drive. I also entered
the proper credentials. However the drive isnt mapped under PE.

What am i doing wrong ?

<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Credentials>
<Domain>mydomain</Domain>
<Password>mypassword</Password>
<Username>administrator</Username>
</Credentials>
<Path>net use w: \\myserver\myshare</Path>
</RunSynchronousCommand>
</RunSynchronous>


#2 User is offline   KraftDinner 

  • Group: Members
  • Posts: 3
  • Joined: 28-June 07

Posted 28 June 2007 - 09:43 AM

from What I see you're trying to map a network drive for when WinPE boots so you don't have to do it manually. If I'm correct this will not work. You're best bet would be to either make a batch file and execute it or just type it in yourself. It took me quite a bit of searching to find how to map a domain network drive, but heres the syntax: NET USE <DriveLetter>: <NetworkLocation> <DomainPassword>|* /USER:<Domain>\<DomainUserName>
<DriveLetter> = The letter you would like to map
<NetworkLocation> = The location on the network you are trying to map to
<DomainPassword> = The users domain password
<Domain> = The domain the user and network location is on
<DomainUserName> The username of the user

Example: NET USE I: \\Domshare\Install mypass123 /USER:mydomain.ca\domuser

Hope this helps.

-KD

#3 User is offline   FireGeier 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 24-October 05

Posted 29 June 2007 - 03:25 AM

Hello gangsterhenk!

Like KD has described you can't put a command - like net use - into the path section of xml file. You just can put in the path there - like \\server\share, without net use.

So like KD has described you need to establish the connection to the share by using a batch.

BTW, make sure that you have access to your network at all by enabling the network support in your batch file. Use

wpeutil intializenetwork


as first command in your batch.

Regards,
Martin

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy