How can I use Powershell to create shortcuts "File Folder" in the section network location?

Hello

I am trying to create a powershell batch file that will create a bunch of shortcuts to files to Sharepoint document libraries network.

To get an idea, the manual method would be to go to computer--> right click--> Add a network location

From there, I can enter the path of the URL to a Sharepoint document library and it will create a folder shortcut in this library of documents that allow people access to the library without having to go through Sharepoint to access.  So when the user clicks the shortcut, it opens an Explorer window to view and manipulate the files.

I found the script next, but it will create a shortcut 'Internet' when I put in the path instead of a shortcut of the file folder. So when the user clicks on it, it just opens the web page.  Any help would be great!  Thank you!

[Environment]: GetFolderPath ("ApplicationData")
$path = [Environment]: GetFolderPath("ApplicationData") + '\Microsoft\Windows\Network Shortcuts\ACL Documents.lnk.
$comobject = new-Object - comObject WScript.Shell
$link = $comobject. CreateShortcut ($path)
#targetpath can be the UNC path or physical path to .exe
$link.targetpath = "https://finance.domain.net/ACL/Shared%20Documents".
$link. IconLocation = '% SystemRoot%\system32\imageres.dll,137 '.
$link. Save()

Thank you

Hello

The question you posted would be better suited to the TechNet community. Please visit the link below to find a community that will provide the best support.

http://social.technet.Microsoft.com/forums/en-us/category/SharePoint2010, sharepoint

Tags: Windows

Similar Questions

  • How can I use Photoshop to remove scanned Brown adhesive around the edges of a digitized photo and keep the image showing through the band? Thank you very much.

    How can I use Photoshop to remove scanned Brown adhesive around the edges of a digitized photo and keep the image showing through the band? Thank you very much.

    Dear Melissa,

    We thank you for your email about my problem with the Brown stick Ribbon at the bottom left of this photo. I attach the screenshot. As I said before, I need to remove the Brown adhesive while maintaining the image of the small low boat left and its mast covering the band. Is it possible to do this with Photoshop?

    Kind regards

    Robert Bellingford

  • How can I add a contact to my new folder, when the add new contact button is missing?

    original title: adding new Contacts

    How can I add a contact to my new folder, when the add new contact button is missing?

    Hello

    see if that helps

    http://www.vista4beginners.com/missing-buttons-from-Windows-contacts-toolbar

    http://www.Vistax64.com/tutorials/186477-new-contact-new-contact-group-button-missing.html

  • How can I use an image fixed outside of Lightroom in the corrected version?

    For a photo Album I want to use some photos from Lightroom corrected in an application from a vendor of the album. By selecting these pictures I still have the original and not the corrected version in the present application. How can I get the versions corrected for other uses?

    Please mark resolved issues as such. This makes it easier for others to find solutions and the "help" identify already solved threads. Thank you.

  • How can I determine if a created PDF file has been encrypted in a unix or linux box

    I'm not sure if execution of the command file on my box will tell me if a given created PDF file is encrypted and with what level of encryption.  Is there a way to determine if the file is encrypted by using the Unix/Linux tools after the fact?

    Thank you

    Sam

    It is assumed that you want to do this in UNIX command line / Shell / Terminal.  There is a way that you could do that and that is to 'rolling' and build the tool with the Adobe PDF Library SDK.  Datalogics, which is an Adobe partner has a port of UNIX for the Adobe PDF Library SDK which could be used to create a tool that does this for you, but there is a very big opposition involved in the price structure for the Adobe's PDF library.

    http://www.Datalogics.com/products/PDF/PDFLibrary/

  • How can I make Windows 7 Explorer open my folder on the desktop instead of libraries?

    I can find solutions that have me enter the GUID (Globally Unique Identifiers) for My Documents/computer etc, but I want Windows Explorer to start on my office if possible.  Can someone explain how to do this?

    Three ways:

    1

    1.1. open Windows Explorer, select theyourusername file C:\Users\

    1.2 your desktop folder will appear in the right pane.

    1.3 with the right button on the desktop folder and select Create shortcut.

    1.4 you can now use this shortcut to open Windows Explorer on the desktop.

    - - - - - -

    2

    2.1 while on your desktop, right-click, select new, select shortcut.

    2.2 in the dialog box that appears, find the location with C:\Users\yourusername\Desktop tab, and then click Next

    2.3 and enter any convenient name for the shortcut.

    - - - - -

    3 [is perhaps the most convenient because it can be pinned to the start menu or the taskbar]

    3.1 while on your desktop, right-click, select new, select shortcut.

    3.2 in the dialog box that appears, find the location with C:\Windows\explorer.exe and then a space & then C:\Users\yourusername\Desktop tab, and then click Next

    3.3 then enter any convenient name for the shortcut.

    This type of shortcut can be pinned to the taskbar or the Start Menu.

  • Can I use VM 2nd NIC to access target on the storage network?

    I'm running ESXi 4.1 on an isolated network iSCSI network storage with 1 NIC physical on the management network, 4 physical network connected to the Production network interface cards, and 4 NIC physical and all my VM is Server 2008 x 64. Until the budget will allow, without my actually are Dell PE 2900 of servers running Windows Server 2008r2 and Microsoft iSCSI Software Target 3.3 with various sizes of PowerVault DAS, which is 15 to. Here's my question regarding this configuration. The environment in which I work in requires the use of an application that needs the access card to a server that has more than 10 TB of structured of maps and images. For the sake of future growth, I decided to go the normal way of iSCSI target as opposed to sharing/server configuration, so I created a 14.5 TB iSCSI Target .vhd and all my data have moved to this location. In addition, I have one of my servers iSCSI Initiator pointing to the target VM (exported snapshot)... through my network of production... where it is mounted as a read-only disc, configured as I need to be and spread my desktop map. This configuration works well, but the fact that my VM accesses the target via my production network is certainly not the way I need it to be installed, I really need to access the network storage iSCSI initiator. Confused yet? I really need to keep my out of the Production Network iSCSI traffic, but so far I have not been able to find a method to add a second NETWORK card on my virtual computer and put it on anything other than the VM network. I have no problem at all with my host ESXi accessing iSCSI target data warehouses that I created on my other AD, but obviously, there are enormous obstacles to the creation of a 14.5 TB data store, while a 14.5 to SAN target is very flexible and easy... now how can I shoot by the storage network team.

    I appreciate the answers really, but I'm composing this House as VMWare communities are blocked on my work network. However, given that the responses are also sent to my email... I will receive them as text and therefore all references to added images etc will have to wait until I get to watch. Answers appreciated text.

    Thank you

    Confused yet?

    Yes, absolutely

    I don't know if your configuration iSCSI in detail, please consider my suggestion carefully. Access the iSCSI virtual machine network directly should be as simple as adding a group of ports 'Virtual Machine' to iSCSI vSwitch and adding another virtual NETWORK card on the computer virtual - attached to the newly swanky group harbour - with an IP address in the range of iSCSI.

    André

  • How can I disable 'O2 connection manager' to automatically connect to the wireless network?

    Original title: I have a program installed in my computer 'O2 connection manager' it automatically connects to the wireless network, I need to disable the connection

    I have a program installed in my computer 'O2 connection manager' it automatically connects to the wireless network, I need to disable the connection to the network.

    Hi John,

    I imagine the inconvenience that you are experiencing. I will certainly help the question of fixing.

    If you do not O2 connection manager, you can disable it to connect to the Internet or you can uninstall the program and check the issue.

    You can follow the steps in the link below.

    Uninstall or change a program:
    http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program

    I would say O2 you back for more information in the links below:

    http://www.O2.co.UK/business/support

    http://community.o2online.IE/

    I hope that the information above helps you.

  • How can I use Notepad to create a CV?

    I created a resume using Notepad, but when I print it, it doesn't have the same format. Everywhere there are gaps. The view that I see online does not match the print version.

    Thanks if you can help in some way.
    Karen

    Tuesday, February 18, 2014 12:34:04 + 0000, Ed and KarenLockhart wrote:

    I appreciate the fact that, although my question had nothing to do with outlook, you helped so much that
    you could be passing on my question.  My windows Vista has unfortunately wordpad.

    Yes, he does. At all versions of Windows. If you do not find
    just do a search of wordpad.exe.

    I have
    created my resume on the notebook using Windows Vista and I have the impression that it is not a complete
    answer my question. Thanks for doing what you do.

    The notebook is not really a word processor. It is a text editor, and you can
    do almost nothing in the way of formatting with it.

    WordPad isn't really a word processor either. It is a much fairer one
    Editor of glorified text, but you can do a formatting much more with her
    You can with Notepad.

    According to fancy how you want your resume to be, WordPad or can
    not meet your needs. If it isn't, you should get a real word
    processor. You can buy Microsoft Word or Corel, my favorite
    WordPerfect. Or you can download a free, like OpenOffice or
    LibreOffice; I have no experience with either, but both have the reputation of
    be good.

  • How can I use a web application to provide me with the results of a matrix?

    I have a need to set up a search based on a matrix type area. It is a matrix that shows a list of the postal codes to the bottom of the left column and a list of products across the top, and the corresponding field in a product and a postal code is the freight rate.

    for example

    Product 1 product 2 product 3 4

    1234     $10               $12               $14               $16

    4567     $11               $11               $13               $17

    5678     $55               $54               $27               $35

    If 4567 for product 3 freight rate is $ 13.

    So what I want is a drop-down menu for a customer to choose the product, then a field to enter their zip code, and the search result will be the freight cross reference rate.

    Is this possible? If so, can someone guide me as to how this would be?

    Throw this open to the community for the chip, but off the top of my head... think of something along the lines of:

    Create web applications 3,

    1. Product (the fields product name & ProductID)
    2. Postcode (box Desc fields & zip code)
    3. Freight rates (fields FreightRateID (composed of ProductID_ZipCode), freight rates)

    Create a search form web app for Web App freight rates with:

    1. Select product, with options of web app 1 using value ProductID.
    2. Select ZIP Code, with options of web app 2 using postal code for the value.
    3. Hidden FreightRateID field.

    Once a visitor has chosen their product and their zip code using javascript concatenent the ProductID selected with selected postcode.

    This will produce a FreightRateID (for example PROD1_4567), which can be loaded in the hidden field on the FreightRateID.

    Once submitted, it will search the Web app for a freight rate that corresponds to the selected product and zip code, IE. FreightRateID.

    To facilitate the entry of freight rates, maybe add 2 data source fields to the web application of freight for the goods and postal code rate.

    Then, create a front-end web app add/edit (via a secure area) to grant access is done by:

    Select product, select ZIP Code then enter freight rates.  (FreightRateID can be created and filled in same way as the above search)

  • How can I use a context menu to change values in the numbers?

    I would use a context menu to view different values depending on whether you choose.

    example: projects

    sheet 1: projects, broken down by supplies, each of the deliveries was the price. I currently have this game to show me all the neede resources to complete everything, I want to implement in order to choose a pop up of a building of character, etc. and have it show me how it is necessary for this.

    HI Black Jack,

    I'm sure that many young people can do what you ask, but I do not understand your table - what data you want to move where and the place where.

    What would be in the context menu, where the popup would be and where the data would be displayed.

    Quinn

  • How can I use my resaltech modem to hang on to the xbox 306 to the internet?

    I have a netgear switch to help get the extra cord ethernet ports. I can't connect thinking over 1-internet tho because it says that you can't find the ip address that an xbox is connected. I also have a computer (a netbook) to use as a support system to configure the modem, but I don't know what to do. HELP WOULD BE APPRECIATED!

    Hello

    I suggest you try the steps in the following article in the Xbox and check if it helps.

    Troubleshooting controllers, headsets and Xbox 360 Wireless Accessories:

    http://support.Xbox.com/en-us/Xbox-360/troubleshoot/accessories/controllers-remotes

    If the steps mentioned above to the article, it would be better to post the same question in the Xbox forum and check if it helps.

    Forums Xbox: http://forums.xbox.com/

    Hope the information is useful.

  • How can I use an accelerometer on a cRio 9012 with the NI 9233 module?

    I'm putting in place a system of vibration using a search of wilcoxon accelerometer 797-33. Is there some setting you have to light to light the target NOR?

    I used the getting started with the example of 9233 as base. However, it will only read 0, while the vi is running

    The power of the module 9233 is always.  Its successor, the 9234 contains options to be turned off, and by default the 9234 is turned off.  So with the 9233, is always under tension.

    You can watch the specific\NI LabVIEW\examples\compactRIO\module 9233 examples for some ideas on coding.

  • How can I add a blank module in a folder in the primavera contract manager?

    Hi, I want to add modules to the log folder. I don't know how to do it. I would like that it is possible to image.

    I suggest to use the Notepad to track your info utility. You can add custom as required fields to meet your needs.

    InfoMaker is simply to customize the OUTPUT (i.e. print reports / forms). Has nothing to do with what you see in the application.

  • New router = the name of the new network, how can I get my wireless Dell 966 printer to recognize the new network?

    I got everything set up on my new network, but have not been able to set up my Dell 966 Wireless printer.  It worked fine with the old router.  The name of the network on the printer is still my old network name, not a new one.  I can't find the printer when I search for wireless.  Printer sharing is on, and the port is set for the printer.  I have reset the desktop computer and the printer.  I checked and double checked all connections.     9

    + The wireless set up the menu of the printer is the former name of network, and I don't know how to put the new name in.  It is grayed out so I can't select it.  I don't find a way to do it either from the office.  Any suggestions?

    Hello

    Configure the printer with a static IP address to connect directly to the router (read the manual).

    Next, configure the computers on the network to print to the static IP address.

    The network name or the name of the router would be important.

    Jack - Microsoft MVP, Windows networking. WWW.EZLAN.NET

Maybe you are looking for