May 14, 2014 at 8:26 am
Still trying to programmatically create a New Network Location link.
I've got it down to -- I think:
$Newlink = New-Object System.IO.DirectoryInfo "$MyPath"
But I can't figure out how to set the target, which is a \\Server\Drive$
Any ideas?
May 15, 2014 at 11:58 am
Well it took some looking, but I found out to do it. With a couple of minor mods , it works!!
The gotcha is that a File Folder link is an internal MS type,
"CLSID2={0AFACED1-E828-11D1-9187-B532F1E9575D}"
which is NOT the simplest thing to work with (for this DBA, at least :-)).
First post in the answers, by Aakash Shah.
May 16, 2014 at 6:05 am
Thanks for posting the solution to your own problem. Very generous. Much appreciated.
Gaz
-- Stop your grinnin' and drop your linen...they're everywhere!!!
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy