Command-line Argument for Admin Rights

bahua

New member
I am enjoying Windows 7, but because of some relatively simple disagreements I have with the interface, I've installed litestep as my shell, which I was very comfortable using in previous versions of Windows. Aero and the new and improved task bar just don't cut it for me. The biggest difference I need is hotkeys for starting applications, and from what I've seen Windows 7 doesn't have it. That's fine. Litestep does and that solves my problem.

However, I also prefer to use vim for my text editing, as it's far more powerful than notepad, and I don't need to muck around with the mouse to use it. I usually start it by right-clicking a text file and selecting the "edit with vim" shell extension that was enabled when I installed vim, and then it's all keyboard.

Unfortunately, there doesn't appear to be a way to edit the access settings when starting vim this way. I want it to run with full administrative access every single time I run it. That's basically all I use it for, other than some idle notes and light coding.

Is there a command-line argument to grant full administrative access to an application, or perhaps a way to grant my user unprompted administrative access? It appears that my user is an administrator, but not really. This new model of security through confirmation is dangerous, but in the case of someone that knows how to use their computer, and how they want it to work, it's just plain annoying.

Can anyone address these concerns?
 

My Computer

OS
Windows 7
I am enjoying Windows 7, but because of some relatively simple disagreements I have with the interface, I've installed litestep as my shell, which I was very comfortable using in previous versions of Windows. Aero and the new and improved task bar just don't cut it for me. The biggest difference I need is hotkeys for starting applications, and from what I've seen Windows 7 doesn't have it. That's fine. Litestep does and that solves my problem.

However, I also prefer to use vim for my text editing, as it's far more powerful than notepad, and I don't need to muck around with the mouse to use it. I usually start it by right-clicking a text file and selecting the "edit with vim" shell extension that was enabled when I installed vim, and then it's all keyboard.

Unfortunately, there doesn't appear to be a way to edit the access settings when starting vim this way. I want it to run with full administrative access every single time I run it. That's basically all I use it for, other than some idle notes and light coding.

Is there a command-line argument to grant full administrative access to an application, or perhaps a way to grant my user unprompted administrative access? It appears that my user is an administrator, but not really. This new model of security through confirmation is dangerous, but in the case of someone that knows how to use their computer, and how they want it to work, it's just plain annoying.

Can anyone address these concerns?

Code:
runas /user:REQUIREDUSERNAME /savecred c:\PATH\TO\APP.exe

You could run as admin using the above replacing 'REQUIREDUSERNAME' with admin account name.

/savecred will make it ask for admin password on the first run only.
 

My Computer

Computer Manufacturer/Model Number
Self Built
OS
XP Pro SP3 x86/Vista SP2 x64/Win7 x64 Triple-boot
CPU
AMD64 X2 AM2 5000+
Motherboard
Asus MSN-X Plus
Memory
Corsair TWX 2Gb (2x1Gb) DDR2 800Mhz
Graphics Card(s)
PCI-X 2.0 Inno3D (NVidia) 9500GT 1Gb DDR2
Sound Card
Onboard Realtec ALC662-GR
Monitor(s) Displays
Relisys 17' CRT (model unknown)
Screen Resolution
1024x768
Hard Drives
750Gb Samsung 7200-3Gb/s 32Mb Cache SATA
PSU
500W
Cooling
Standard AMD CPU Fan, One side, front and rear case fan.
Keyboard
Microsoft Multimedia Keyboard
Mouse
Samsung Optical
Internet Speed
10M
The first run on each boot?

Also, thanks!

No.. it should remember it for good once it's been done. :)

you will have to redo the password for different user accounts though if others need to run it.

EDIT: stick the command in a batch file and create a shortcut to that to run your app each time, I should have been clearer to start with, sorry.

To create a batch file if you don't know, create a new txt file and rename the extension from '.txt' to '.bat' once you have put the command line inside the txt file.
 

My Computer

Computer Manufacturer/Model Number
Self Built
OS
XP Pro SP3 x86/Vista SP2 x64/Win7 x64 Triple-boot
CPU
AMD64 X2 AM2 5000+
Motherboard
Asus MSN-X Plus
Memory
Corsair TWX 2Gb (2x1Gb) DDR2 800Mhz
Graphics Card(s)
PCI-X 2.0 Inno3D (NVidia) 9500GT 1Gb DDR2
Sound Card
Onboard Realtec ALC662-GR
Monitor(s) Displays
Relisys 17' CRT (model unknown)
Screen Resolution
1024x768
Hard Drives
750Gb Samsung 7200-3Gb/s 32Mb Cache SATA
PSU
500W
Cooling
Standard AMD CPU Fan, One side, front and rear case fan.
Keyboard
Microsoft Multimedia Keyboard
Mouse
Samsung Optical
Internet Speed
10M
Please note:

/savecred to use credentials previously saved by the user.
This option is not available on Windows 7 Home or
Windows 7 Starter Editions
 

My Computer

Computer Manufacturer/Model Number
CyberPower
OS
Windows 7 Home Premium
CPU
I5-2500K 3.30 GHZ
Motherboard
ASUS P8Z68-V LX
Memory
16 GB
Graphics Card(s)
AMD Radeon HD 6670
Sound Card
on-board
Monitor(s) Displays
HP ZR2740w
Hard Drives
500GB SATA II 3.0 GB 16MB 7200RPM
PSU
500W
Case
BLACK THERMALTAKE COMMANDER MID TOWER
Cooling
ASETEK 510LC 120MM WATERCOOLER
Back
Top