Linked Questions
14 questions linked to/from Create a shortcut (.lnk file) using PowerShell
37
votes
2
answers
37k
views
How to create a Run As Administrator shortcut using PowerShell
In my PowerShell script, I create a shortcut to a .exe (using something similar to the answer from this question):
$WshShell = New-Object -comObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut(...
4
votes
5
answers
6k
views
Create a Windows Shortcut (.lnk) in Go
I would like to create a Windows Shortcut (.lnk) to the desktop and the startmenu in Golang.
I actually got the Desktop & Startmenu folders via the gowin module and I would like to create a ...
5
votes
3
answers
14k
views
Creating a directory shortcut in powershell
I'm writing my first powershell script and I'm having a little trouble.
Up to this point my system creates a directory tree and populates it with files. The final step is to put a shortcut on my ...
4
votes
1
answer
9k
views
Create shortcut that runs a batch file
I want to create a powershell script that creates a shortcut in the windows 7 taskbar, that runs a batch file from cmd.exe.
Trying to do as told in these two posts:
https://superuser.com/questions/...
0
votes
1
answer
7k
views
Create " *.url " file using powershell and CMD
i was inquiring if there are options to create a url shortcut to be placed on c:\users\username\favorites to be applied to be added to the login script of the user on Active directory to create the ...
1
vote
1
answer
3k
views
Use PowerShell to add and remove shortcuts from Explorer's favorite bar
Is there a way to use PowerShell to manage Explorer's shortcut?
For example, remove 7346 then add a link to ~/Projects/9999?
1
vote
2
answers
3k
views
Moving files create shortcut in original location pointing to new location
I have a PowerShell script that moves all files from one location to another that have a date modified older than 3 years. I have it so the file when moved to the new location also keeps the file ...
1
vote
2
answers
2k
views
Changing a programs "start in" property via batch file
I am trying to change the "Start In" property of a program via batch file for an install script that I am writing for windows 10. I have not been able to find any info about where or how to do this. I'...
1
vote
1
answer
1k
views
how to create several shortcuts at the same time for all .exe files in a directory using powershell
Hi I want to create several shortcuts at same time using powershel and something like this
Get-ChildItem -Path D:\something\ -Include *.exe -File -Recurse -ErrorAction SilentlyContinue
get the ...
0
votes
1
answer
943
views
Create shortcut to file in native python
I just tried to create a small Python script that first installs a certain package (PyMOL), based on the Python version installed on the system and then creates a shortcut to that program on the user'...
0
votes
1
answer
1k
views
programmatically edit Windows shortcuts [duplicate]
My shortcuts often get broken because I move stuff around and unfortunately, the Windows link tracker can't keep up. Is there a way to programmatically (with Powershell) read and edit the properties ...
0
votes
1
answer
295
views
Powershell vs GUI shortcuts
I have a file named new.txt. Using GUI I can create a shortcut, for example, "new.lnk". When I click on "new.lnk" file, Notepad is opened with the contents of "new.txt" file. When I create the ...
-1
votes
1
answer
275
views
Deploy IE shotcut from server to multiple PCs
I'm new to sccm, psexec, and vb scripting. I need help copying a Internet Explorer shortcut from a server to multiple computers.
Lets say my link is named Shortcut.lnk and is located on \troyserver\...
0
votes
1
answer
143
views
Creating desktop icon after installing powershell
I am using the following code to install cygwin using powershell.
http://www.jbmurphy.com/2011/06/16/powershell-script-to-install-cygwin/
It successfully installs but the only problem is there is no ...