Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Create a shortcut with credentials?


  • Please log in to reply
2 replies to this topic

#1
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,503 posts
  • OS:Server 2012
  • Country: Country Flag

Donator

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.


How to remove advertisement from MSFN

#2
allen2

allen2

    Not really Newbie

  • Members
  • PipPipPipPipPipPipPip
  • 1,812 posts
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
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,503 posts
  • OS:Server 2012
  • Country: Country Flag

Donator

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.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users



How to remove advertisement from MSFN