Runas command for user without password

Posted by user156558 on Super User See other posts from Super User or by user156558
Published on 2012-09-05T20:43:50Z Indexed on 2012/09/05 21:40 UTC
Read the original article Hit count: 170

I want to use the runas command in CMD and from Batch files to gain elevated permissions, but I don't have an admin password on my PC because it's my home computer and I'm the only user. Every time I try to use the runas command it asks me for a password, then tells me that blank passwords are not permitted, is there any way round this? I know I can just right click and select run as administrator, but I would much rather have a command that can do it as that is not always an option, and it's just a bit of a pain.

I could just be making some kind of basic mistake as I'm not hugely experienced with command prompt, but I'm not completely clueless.

© Super User or respective owner

Related posts about windows-7

Related posts about command-line