Launch program as admin in standard user account without UAC and password

Hi,

I need to launch a programm as admin in a standard user account Windows 8 session without UAC or pasword prompt. I don't want to disable UAC.

I found that procedure on the web :

I created a scheduled task (With max rights and for Windows 8) which launch cmd (%windir%\System32\cmd.exe) with that argument :

/c start "Task_Name" "Full_Path_of_Program"


I finally created a shortcut for launch the task on demand :

C:\Windows\System32\schtasks.exe /run /tn "scheduled_task_name"


I can't create the scheduled task from the standard user session, I have to launch taskschd as admin, This way, the task (with the shortcut for example) don't work with standard user (I can see the cmd launch but nothing happens after), I have to run it as admin and fill the password...

When I want to create the task from standard user session with max rights for Windows 8, I select the admin or standard user and when the task is configured I click on OK. Then I have to fill the password for the admin account and receive an error message that tell me that the account name specified is not valid... (the same error message appear if I set the standard user and password) The password are correct and I use it every days.

What do I do wrong ? Any idea ?
jet-infoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

WyoComputersCommented:
be a standard user

open notepad and make a file named dosomething.bat

edit file and put in

runas /user:ComputerName\usernamehere /savecred C:\Windows\System32\schtasks.exe /run /tn "scheduled_task_name"

create shortcut on users desktop or c:\users\public\desktop

1st time you run it it will prompt you for password

2nd time it will just run, even under standard user

note: this is a security risk, as the password can be discovered since its stored in windows, but it would take an advanced user to figure this out.
0
McKnifeCommented:
You will not see any task that is launched as a different user - that is secure design and expected behavior. It will not run interactive.
So if you need it interactive, you will need to use the small, free Microsoft tool psexec. Download it. Example:
psexec -u administrator -p yourpassword notepad
Why no UAC prompt? Because for the account "administrator", there is no UAC. The administrator account needs to be activated with a non-blank-password set, first.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jet-infoAuthor Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.