Ray wrote:
> Hey Wizards,
>
> I have a VB script that maps network drives. I wanted the script to auth. a
> user to AD as well. Can someone help?
>
> Dim objNet
> on error resume next
> Set objNet = CreateObject("Wscript.Network")
> on error resume next
> objNet.MapNetworkDrive "l:", "\\server\userfolder"
> on error resume next
> objNet.MapNetworkDrive "m:", "\\server2\app\userfolder"
> WSCript.Quit
Hi
The MapNetworkDrive method supports adding username and password
as parameters.
WSH 5.6 documentation (local help file) can be downloaded from here
if you haven't got it already:
<a rel="nofollow" style='text-decoration: none;' href="http://msdn.microsoft.com/downloads/list/webdev.asp" target="_blank">http://msdn.microsoft.com/downloads/list/webdev.asp</a>
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
<a rel="nofollow" style='text-decoration: none;' href="http://www.microsoft.com/technet/scriptcenter/default.mspx" target="_blank">http://www.microsoft.com/technet/scriptcenter/default.mspx</a>
>> Stay informed about: Drive Mapping Script