brunell316
New Member
- Joined
- Dec 10, 2014
- Messages
- 10
Hey all,
I have been able to map a network drive of a sharepoint site after I logged into it successfully. I want to make it as painless as possible for other people however. I am using smart card credentials to access the sharepoint so the username and password functions do not work in this case. Is there a way to use those credentials for username and password or atleast have the window automatically open up for the user to input their credentials? Here is the code I have for mapping the drive.
Set Wshnetwork = CreateObject(Wscript.Network)
Wshnetwork.MapNetworkDrive "Z:", "url.com"
- That code pops up that the credentials don't allow access. If I map it manually, this is when the Windows Security window opens and the smart card credentials and pin are entered and allowed access.
I have tried
Set Wshnetwork = CreateObject(Wscript.Network)
Wshnetwork.MapNetworkDrive "Z:", "url.com", False, "SmartCard name", "Pin"
And then I get an error saying "The network name cannot be found" . If anybody has any insight on how to get this to work, that'll be awesome. Thanks!!
I have been able to map a network drive of a sharepoint site after I logged into it successfully. I want to make it as painless as possible for other people however. I am using smart card credentials to access the sharepoint so the username and password functions do not work in this case. Is there a way to use those credentials for username and password or atleast have the window automatically open up for the user to input their credentials? Here is the code I have for mapping the drive.
Set Wshnetwork = CreateObject(Wscript.Network)
Wshnetwork.MapNetworkDrive "Z:", "url.com"
- That code pops up that the credentials don't allow access. If I map it manually, this is when the Windows Security window opens and the smart card credentials and pin are entered and allowed access.
I have tried
Set Wshnetwork = CreateObject(Wscript.Network)
Wshnetwork.MapNetworkDrive "Z:", "url.com", False, "SmartCard name", "Pin"
And then I get an error saying "The network name cannot be found" . If anybody has any insight on how to get this to work, that'll be awesome. Thanks!!