WinPE and WSH issues?

  • Thread starter Thread starter Ravi
  • Start date Start date
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
 
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
 
Back
Top