Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Network Location with http targetpath behavior

$
0
0

My goal is to reproduced the exact same result with PowerShell as using the network location wizard to create a folder redirecting to an http url for a sharepoint site.

Using the wizard, I enter the http url to create the network location. When I select the new location, I can see in the status bar "Link target: http:....".

When I inspect the target.lnk file in the folder, I can see that the targetpath and the comment are set to the webdav url.

Using PowerShell, I'm able to create the folder and store in it the desktop.ini and target.lnk files. I set the target location to be the webdav url and everthing works. However, when I select the folder, I see in the status bar the webdav url for the "Link target: "

I've notice that this information (Not the targetpath but this hidden Link target) have some impact on how some windows application behaves on file operations (open, save). Some apps will show you a folder view (using webdav) other will show you an html view of the site libraries when the link target is a webdav url. However if it is an http url, all apps will show you the html view (this is what I want). So I really need to have the targetpath to be a webdav url but the "Link target" to be a http: url.

I know that this "Link Target" info is stored in the target.lnk file but I would like to know how to access it with PowerShell.

Thanks.







Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>