WinPE and WSH issues?



Ravi
07-10-2005, 03:16 AM
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

Johan Arwidmark
07-10-2005, 03:16 AM
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




On 20 May 2005 06:52:06 -0700, "Ravi" <ravikanth.chaganti@gmail.com>
wrote:

>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(&quot;WScript.Network&quot;)
>WshNetwork.MapNetworkDrive &quot;Z:&quot;,
>&quot;\\10.1.1.1\Images&quot;, &quot;Administrator&quot;,
>&quot;abc_123&quot;
>
>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 &quot;Logon session is expired or not
>available&quot;
>
>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

Ravi
07-10-2005, 03:16 AM
Thanks. It worked.


WinPE and WSH issues?