WinPE and WSH issues?

R

Ravi

All,

I have been trying to automate some of my activities using WinPE. in
that
process i wrote a script to find the system model and based on that map
a
network drive to a build server. here is a part of it:

Set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "Z:",
"\\10.1.1.1\Images", "Administrator",
"abc_123"

Now, when I run this script on my Windows XP box, it maps the drive
without
any issue. But when I run it inside my WinPE environment, i get an
error
message saying that "Logon session is expired or not
available"

My build server is a Windows 2003 Sp1 Server with ADS and RIS
installed. I
named the domain as TestDomain.
Any ideas why is this not working?

Thanks for your time,
Ravi
 
J

Johan Arwidmark

You need to specify the domain (eg. TestDomain\Administrator) when
mapping network drives in WinPE (WinPE is like a workgroup computer)

regards

Johan Arwidmark
Microsoft MVP - Setup/Deployment
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top