MSFN Forum: Create a shortcut with credentials? - MSFN Forum

Jump to content


Windows 7 forum rules

If you have questions about customizing Windows 7 that are vLite-specific, please post them in the vLite forum, not here. If you have questions regarding the unattended installation of Windows 7, please post them in the Unattended Windows 7/Server 2008 R2 section.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Create a shortcut with credentials?

#1 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,690
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 19 July 2012 - 12:51 PM

I am designing a new application that requires something to be run after a reboot but doesn't exist on the computer. To save against the program being left behind, I wanted to create a shortcut to execute the program on a network share. I have some other options available to me, but wanted to know if such a shortcut is possible.

Shortcut sits on the Desktop, points to a program on the file server using a UNC path. This part I can do. The problem is that when the shortcut is executed, Windows prompts for credentials to log into the share. Is it possible for me to create a shortcut that has this information in it already, so that the login is handled automatically?

My other option (if this isn't possible) would be to build a .cmd file to sit on the desktop, which would map a drive to execute the file instead.


#2 User is offline   allen2 

  • Not really Newbie
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,737
  • Joined: 13-January 06

Posted 19 July 2012 - 02:33 PM

Or set the share permission to allow anyone (thus weakening a lot the security of the server hosting the share if the client and the server aren't member of an AD domain).
But you might want to try this way but i find it worse.

#3 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,690
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 20 July 2012 - 08:24 AM

I will try out the second option in the link. The first option is NOT an option at all. The problem is that the client is not on the domain, but the share is on the DC.

I already have an account to use to log into the share and it isn't an admin account in production. It is an admin account on the dev servers but that is just to make things easier for me. :whistle:

I'm not particularly concerned with the credentials being in the shortcut, since the EXE on the share is supposed to delete it anyways.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy