The runas command is setup to allow you to run applications or the command prompt with an admin password for that machine without having to switch who is logged in. If I your dad has admin rights to the laptop then If I ran the runas command I could use my credentials to install or run something with admin right on your profile. So you have to have the administrator password or a users password that has admin rights to run this. You would need a different program for what you are trying to do.
You would need a way to get the admin password or a way to login with admin rights. It looks like your parents have created a user account for you which has less privileges standard user.
You might want to look at it another way. Lets say, you can change the Administrator password to nothing blank and move your user account under Administrators group but make sure the Operating System is not Home Basic or any such lower tier OS. First of all, do the following to change the admin password. You should now have full admin privileges to do the unthinkable. You might also, as a way of courtesy , not tell your parents what happened to the admin password.
I thought maybe there would be a way to do this using Runas, but have not succeeded yet. Am I overlooking something? Please help. How would I use runas in which the command and the arguments both have spaces, e. Or if the command does not have spaces, but the argument s do, then there is also no issue, e.
However, when both the command and the argument s have spaces and need to be quoted, then it will not run. Note that I was able to get this to work using cmd as a wrapper so that the actual command to runas does not have spaces, but the syntax was even more ugly and contorted than above, e. But right now , it is showing error msg in ProcessShellCommand cmdInfo. Please suggest some alternatives.
Hi, I have a service that run some scripts with administrator privileges, but the scripts work only if it was run by a simple user. Asked 11 years, 11 months ago. Active 8 years, 3 months ago.
Viewed k times. Improve this question. Dan McGrath 2, 21 21 silver badges 20 20 bronze badges. Add a comment. Active Oldest Votes. Use the command line. Improve this answer. Peter Mortensen At least in WinXP, this also works in the Run box. This command line option is not working for me whereas the one below with Right Click Run as is working as expected.
What's the difference? Molly Molly User GPO is only processed for users who log on interactively to their own desktops by using the logon user interface. The following command starts an instance of the command prompt as an administrator on the local computer:. The following command starts an instance of a command prompt window, saved MMC console, Control Panel item, or program that will administer a server in another forest:.
When prompted, type the account password. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. In this article. Specifies that the current network environment be used instead of the user's local environment. Many people are curious.
Sure enough, when I introduced myself, I was surprised to […]. ShellExecute "cmd. Tags: Run bat with administrator rights. The company has a new 20K test, which let me see what the real test ceiling is. Exe — what process is qconsvc and what is its function How do win10 disks remove BitLocker encryption win10 remove BitLocker encryption method Win10 Home Edition cannot find a solution to hyper-v qctray.
0コメント