• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
MagicAndre1981

FAQ: What is the UAC? - Part2

57 posts in this topic

Hi Andre

This is may be too late for the thread but shortcut works fine from desktop (THANKS) but not from Startup

I've checked it in there from both the link above and also / All Programs / Startup

Not sure if you have had this problem before with any of your programs

0

Share this post


Link to post
Share on other sites

Hi,

I have no issues with the startup folder. What is not working?

André

0

Share this post


Link to post
Share on other sites

With a bit of trial and error, this works for me. And it worked inside the Startup folder as well. One question though and I suspect this may be a problem with the software I'm launching. In properties, I have "run/Minimized" selected but it does not minimize. Is there any fix for this? Or it is what it is?

I'm running Vista Home. And the software is called Active Home Pro (X10 Home Automation software0.

Thanks

Lee

0

Share this post


Link to post
Share on other sites

the minimize belongs to the cmd window of schtask.exe not the tool your are running. Does it have a commandline parameter to start it minimized?

0

Share this post


Link to post
Share on other sites

@MagicAndre1981: I wouldn't even know where to look for that?

0

Share this post


Link to post
Share on other sites

look at the Active Home Pro documenation

0

Share this post


Link to post
Share on other sites

I followed the step. But still the standard user gets the UAC prompt saying the publisher is unverified. Here is the task xml.

Please help.

<?xml version="1.0" encoding="UTF-16" ?>

- <Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">

- <RegistrationInfo>

<Date>2010-10-07T22:37:54.9815795</Date>

<Author>MyDomain\User</Author>

</RegistrationInfo>

<Triggers />

- <Principals>

- <Principal id="Author">

<UserId>MyDomain\User</UserId>

<LogonType>InteractiveToken</LogonType>

<RunLevel>HighestAvailable</RunLevel>

</Principal>

</Principals>

- <Settings>

<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>

<DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>

<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>

<AllowHardTerminate>true</AllowHardTerminate>

<StartWhenAvailable>false</StartWhenAvailable>

<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>

- <IdleSettings>

<StopOnIdleEnd>true</StopOnIdleEnd>

<RestartOnIdle>false</RestartOnIdle>

</IdleSettings>

<AllowStartOnDemand>true</AllowStartOnDemand>

<Enabled>true</Enabled>

<Hidden>false</Hidden>

<RunOnlyIfIdle>false</RunOnlyIfIdle>

<WakeToRun>false</WakeToRun>

<ExecutionTimeLimit>P3D</ExecutionTimeLimit>

<Priority>7</Priority>

</Settings>

- <Actions Context="Author">

- <Exec>

<Command>"C:\Tools (x86)\BJ\TdxW\TdxW.exe"</Command>

</Exec>

</Actions>

</Task>

Thanks,

GG

0

Share this post


Link to post
Share on other sites

this is correct. Standard suers have no 2 tokens, so <RunLevel>HighestAvailable</RunLevel> is user rights adnd you get the UAC prompt. This workaround only works for users which are part of the admin group.

0

Share this post


Link to post
Share on other sites

Thanks for the quickly reply. So for standard user, is there any solution for this problem?

0

Share this post


Link to post
Share on other sites

I have followed your steps. When I log in with the account with Admin Privileges this works. When I log in with the standard user privileges and get to the Actions Tab step, click on OK, and I see "Task schedule cannot create the task. The user account is unknown, the password is incorrect, or the user account does not have permission to create this task". I have switched to the admin account with the Create Task window and still get the same error. I try importing the task from the windows scheduler where I created the initial autoElevate task, and it imports until I get to the step to click OK, and then I get the same error message as above. I seem to be doing something incorrectly.

0

Share this post


Link to post
Share on other sites

When you run with standard user rights, this doesn't work, because only admin have the 2 tokens. You can select "Run whether the user is logged on or not" and pick the admin account. With this you can run programs, but you don't see the GUI. So this is only helpful for background tasks.

0

Share this post


Link to post
Share on other sites

Andre, thanks for this information!! This is very useful!

I used this procedure successfully for one of my own programs. However, I have another 3rd-party program that I would like to add. That program expects an ini file to be in the program's startup directory. Presently, the shortcut says that my startup directory is "C:\WINDOWS\SYSTEM32". Right-clicking on the startup icon and changing the startup directory doesn't seem to do the job. I prefer not to copy the ini file to the System32 directory unless I have to. Any suggestions?

------------------------

Never mind!! Ignore my question and please ignore the duplicate "ignore me" post. I just joined the forum.

I found the location in the MMC Taskscheduler where I can set the startup directory.

Thanks again for this very helpful post!

Chip

Edited by Chip
0

Share this post


Link to post
Share on other sites

Never mind!! Ignore my question.

I found the location in the MMC Taskscheduler where I can set the startup directory.

Thanks again for this very helpful post.

Chip

-----------

Is there a way to delete a duplicate posting?

Edited by Chip
0

Share this post


Link to post
Share on other sites

This doesn't work at all on my computer. I followed every step and it doesn't make any difference. You still have to answer the question about allowing programs to run.

I don't know what else to post here. Is there some kind of log or something I can post that would show what's going on?

0

Share this post


Link to post
Share on other sites

don't run the original program. run it with the schtask command.

0

Share this post


Link to post
Share on other sites

This has been annoying me for a long time, while it takes a little time to set up. It means no more UAC for me :)

Thanks André

And for the guy that didn't know how to write the "é", press Alt Gr + E :D

0

Share this post


Link to post
Share on other sites
this workaround only works for accounts who are inside the administrator group.
How do I allow a non-admin (restricted) user to launch an application that, only under Windows 7, requires admin privs?

This application runs fine under XP Pro i386 and XP Pro x64 WITHOUT admin privs. But it does not run without admin creds being entered under W-7.

0

Share this post


Link to post
Share on other sites

This doesn't for for normal/standard users :(

Try to find out why it only runs with admin rights in Win7. The Application Compatibility Toolkit (ACT) is what you need to detect what's wrong with the app.

0

Share this post


Link to post
Share on other sites

Sorry for necroposting, but I'm having an odd issue with this. I've created the task, created the shortcut running through the taskscheduler and the program no longer requires the UAC window. However, the TaskScheduler itself does!

8chr.png

That's in Portuguese (I live in Brazil), but it's talking about the Task Scheduler. Should I click yes, I don't get a UAC request for the program itself, so I'm guessing that's working. I am in an admin account on Win7 x86.

Edited by wasabi
0

Share this post


Link to post
Share on other sites

don't rightclick and select "Run as admin" for the schtasks.exe. Simply double click it.

0

Share this post


Link to post
Share on other sites

That's what I did. Also, there is no "run as Admin" set in the properties. Very odd.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.