No announcement yet.

Run as different User on a VBscript + Hide the Password (Solved)

  • Filter
  • Time
  • Show
Clear All
new posts

  • Run as different User on a VBscript + Hide the Password (Solved)


    I just want to share this with everyone.

    I would like a user to run a VBscript with different user credentials on their desktop, but NOT knowing the password.

    1.) Convert .VBS file to .EXE file using this freeware tool.

    2.) Hide the "Run as different user" password.

    1. Right click on the desktop select New >> Shortcut >> browse to the newly created .exe file >> Next >> Finish.
    2. Right on the custom shortcut select Properties and go to the Target: box and type this in and hit ok ...
    runas.exe /savecred /user:domain\user "C:\users\bob\desktop\vbs.exe" (Of course...put your own directory path where the executable file is located)
    3. When double clicking on the custom shortcut, a command windows will appear and ask for the users' password. You only have to enter just once. The next time you run the custom shortcut, it will NOT ask for the password.

    The credentials are stored in the "Manage your credentials" under User Account in the Control Panel.

    Hopefully this will help someone like it did for me.

    Last edited by vane0326; 30th June 2015, 15:17.