Question : How do I map a sharepoint location in VB script to work on Windows 7

I have a SharePointe location that I need to map to using Visual Basic Script

\\www.Site.net\SiteDirectory\ce\Standards

This maps fine in Windows 7 if I manually map network drive and authenticate myself when the dialog box request my credentials.  In Windows XP, the script maps the drive and it works fine without any issue as long as I have already added "www.Site.net" to the trusted sites list in the Local Intranet zone.  The script will not work in Windows 7 and gives me an error.

Script: "location of script"
Line: 4
Char: 1
Error: The operation being requested was not performed because the user has not been authenticated.
Code: 800704DC
Source: WSHNetwork.MapNetworkDrive


Note: Real SharePoint location was substituted with "Site.net"
1:
2:
3:
4:
Xpath = "\\www.Site.net\SiteDirectory\ce\Standards"

Set objNetwork = Wscript.CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "X:", Xpath

Answer : How do I map a sharepoint location in VB script to work on Windows 7

Problem solved

Such configuration is fully possible.

On router in Site 2 traffic from Site1 tto Site3 is NATed.

NAT must be configured on Outside interface with local address pool (Site 2) on Outside (not Inside) interface.

thanks for your support. Case closed.

bgs
Random Solutions  
 
programming4us programming4us