Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

Prompting for user credentials when starting application

  • Please log in to reply
1 reply to this topic

#1 unclepickle1


    CC Newcomer

  • New Member
  • PipPip
  • 10 posts

Posted 13 February 2012 - 10:34 AM

Hey guys,

I'm developing an application for our IT Helpdesk to do some common tasks like installs, drive mapping, etc...

However this application needs to be run as administrator. Is there a way to get the application to bring up the RunAs prompt as soon as it runs, so the user doesn't have to do a Shift + Right click > Runas?

  • 0

#2 MeekLogic


    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 177 posts
  • Location:Fresno, CA
  • Programming Language:C#, PHP, JavaScript, PL/SQL, Visual Basic .NET, Lua

Posted 14 February 2012 - 06:44 PM

Perfect guide: Make your Visual Basic application run as administrator | Mahdi Hazaveh

I'm assuming it only works that easy in Visual Studio though.
  • 0
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
- Martin Golding

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download