Question Locked
0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I need to logon users from active directory, map drives and then run an application, sitting on a map drive, from a logon vbscript.
3 replies
by jose.garcia3 Accepted solution
Clarifications
by adumbrow Accepted solution
Just so I am clear, you want the script to map a drive and then run an application sitting on the drive as a part of the logon?
by sundaram ramanujam Accepted solution
Hi,
You can check the below script for insert the drive. Please change the folder according to your need.
Dim objNetwork, strDrive, objShell
Dim strRemotePath, strDriveLetter, strNewName
strDriveLetter = "Z:"
strRemotePath = "\\MyServer\Myfolder"
' Section to map the network drive
Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive strDriveLetter, strRemotePath
This discussion is closed to new replies.
Trending Hardware posts
Sort by Trending
Question Locked
Setting up a wifi bridge with switch correctly
0 helpful
5 replies
Question Locked
Experiencing Bottleneck with RTX 4060 + i5-12400F - Need Advice
0 helpful
5 replies
Question Locked
Keyboard
0 helpful
3 replies
Question Locked
Core i7 12700KF or Core i7 12700F ?
0 helpful
9 replies
Question Locked
Looking for honest opinions on gaming PC
0 helpful
5 replies