Way to create a hyperlink to map a network drive?

btcomm22

Member
Apr 18, 2013
25
0
16
Is there a way to create a hyperlink that would map a network drive that you could send to someone in an email?
 

KB

Diamond Member
Nov 8, 1999
5,406
389
126
You could send them an attachment to do this, like a batch file or vbscript file. Problem is, their email program or spam filter is likely to block it.
 

MrColin

Platinum Member
May 21, 2003
2,403
3
81
On some os's a url like "smb://examplehost/share" could be used. Probably easier to send a http url linking to a batch, vbscript, or powershell script.
 

Ketchup

Elite Member
Sep 1, 2002
14,558
248
106
Is the email going outside the network? I fail to see how that would work, since the map is relative to the computer it is coming from, and a network link would only work inside that network.
 

Mushkins

Golden Member
Feb 11, 2013
1,631
0
0
Is the email going outside the network? I fail to see how that would work, since the map is relative to the computer it is coming from, and a network link would only work inside that network.

If you sent them a hyperlink to the explicit address, not the mapped letter, the hyperlink would work. For example if you have a server called Server1 with a shared folder called Cats, a hyperlink to \\Server1\Cats\ will open properly.

I think the OP is actually trying to configure a mapped drive by clicking a hyperlink though, which cannot be done. It would need to be an attached script file of some type or a hyperlink *to* a script file. Even the most basic antivirus and antispam protocols are going to block both.

Best way to map network drives en-masse in a large network is via AD login scripts. For one-offs or home use you're pretty much stuck mapping manually.
 

Ketchup

Elite Member
Sep 1, 2002
14,558
248
106
If you sent them a hyperlink to the explicit address, not the mapped letter, the hyperlink would work. For example if you have a server called Server1 with a shared folder called Cats, a hyperlink to \\Server1\Cats\ will open properly.

I think the OP is actually trying to configure a mapped drive by clicking a hyperlink though, which cannot be done. It would need to be an attached script file of some type or a hyperlink *to* a script file. Even the most basic antivirus and antispam protocols are going to block both.

Best way to map network drives en-masse in a large network is via AD login scripts. For one-offs or home use you're pretty much stuck mapping manually.

I agree.
 

btcomm22

Member
Apr 18, 2013
25
0
16
If you sent them a hyperlink to the explicit address, not the mapped letter, the hyperlink would work. For example if you have a server called Server1 with a shared folder called Cats, a hyperlink to \\Server1\Cats\ will open properly.

I think the OP is actually trying to configure a mapped drive by clicking a hyperlink though, which cannot be done. It would need to be an attached script file of some type or a hyperlink *to* a script file. Even the most basic antivirus and antispam protocols are going to block both.

Best way to map network drives en-masse in a large network is via AD login scripts. For one-offs or home use you're pretty much stuck mapping manually.

It would be within the network and yes, I want a hyperlink that would map a drive. Too bad there is no way to do this.
 

Mushkins

Golden Member
Feb 11, 2013
1,631
0
0
It would be within the network and yes, I want a hyperlink that would map a drive. Too bad there is no way to do this.

For the small benefit it would give from a user perspective, the potential to use it maliciously would be immense.

The best you're probably going to get is to write the CLI command to map the drive out in the email body and give the user instructions to copy/paste it into cmd.exe and hit enter. But even then spam filters might pick up on CLI syntax and think its malicious.