RunAs V2

Just a bug fix to version 1 where the list of apps was being recreated everytime the tool was started.

Do you have a controlled environment where you are aways "Running applications As"?

Here's the solution! Just one centralized location. Put your username and password once and run all your apps and tools.

The first time you run it, a XML file will be created. This file has to sit in the same folder as the PS1.

To add apps click on the + sign, name the app, point its location and pass any arguments if required.

To remove it, just select it and click on the - sign.

I recommend to create a shortcut and in the Targer type:

C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -WindowStyle Hidden -NoProfile -File C:\Folder_where_its_located\RunAs.ps1

Do not run it right clicking and "Run with Powershell". The reason is beucase when you do that it defaults the current location to your profile's start location.

Also you need psexec in the same folder. You can download it from here http://download.sysinternals.com/Files/PsTools.zip

Enjoy!!

fbinotto.blogspot.com

Anonymous