1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

UACの回避方法

Posted at

いまさらながら必要に駆られて調査したときのメモです。OSはWindows7でしか確認してません。

1. タスクスケジューラを使ってタスクの作成をおこなう

実行したいプログラム名をapp.exeとするとき、
タスクスケジューラの「操作」プロパティにて、
プログラム/スクリプトを
C:\Windows\System32\cmd.exe
と設定し、
引数を
/c start "" "app.exe"
と設定する。

2. タスクをCreateProcess()で実行する

1.で作成したタスク(task_name)を実行するコマンドラインは以下のとおり。
 C:\Windows\System32\schtasks.exe /run /tn "task_name"

タスクスケジューラで実行させたプロセスの優先度は"通常以下"になるのですが、
優先度の設定方法については別途ググッてください^^;;;
(今回の私の件では、シグナル/メッセージを本体に送るプログラムの起動だけが必要だったので、優先度設定は不要だった)

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?