Process Hacker and Windows discussion

 
Cadmore
New User
Posts: 1
Joined: 20 Oct 2019 09:05
OS: Windows 10
Location: UK

Run as Administrator upon Start when I log on

20 Oct 2019 09:25

Hi Process Hacker support team
I have very recently downloaded and started to use Process Hacker, which is great and does just what I want.
However, is it possible to 'Run as Administrator' mode upon 'Start when I log on'? Currently, selecting 'Start when I log on', Process Hacker launches in normal user account mode, so I immediately need to close Process Hacker and re-launch in Run as Administrator mode, in order to more easily apply changes.
A minor point, but would certainly help me maintain a smoother workflow.
Thanks
AC1962
 
User avatar
Ghostwalker
New User
Posts: 2
Joined: 12 Aug 2016 02:00
OS: XPx64 7x64 8.1x64 10x64 linux

Re: Run as Administrator upon Start when I log on

13 Nov 2019 00:51

What you could try is to drill down to the 3 executables (*.exe) within the C:\Program Files\Process Hacker\ folder,
I.E. both ProcessHacker.exe files, one is in the x86 folder, and the peview.exe file and make them run for you
or all users as an Administrator:

> Right click each .exe file
> Select Properties
> Select the Compatibility tab
> Privilege Level
> Check 'Run this program as an administrator'
> Or do the same in 'Change settings for all users'

Hope this helps
 
infra
New User
Posts: 1
Joined: 03 Dec 2019 16:08
OS: W10
Location: Mexico

Re: Run as Administrator upon Start when I log on

03 Dec 2019 16:15

What Ghostwalker proposes will start PH as admin, but only when you manually start it (directly with the EXE or through a link).

If you want to start PH as admin on login then you must do it with Task Scheduler.

Open Task Scheduler then create a Create a Task on the right. Here you configure your task in different tabs

* General: Here you wan to set a Name for the task and in the bottom check "Run with highest privileges"
* Triggers: Press "New" and choose "At logon" of Any user
* Actions: Here press Browse the search for the PH exe (c:\Program Files\Process Hacker 2\Process Hacker.exe). If you want it to run minimized, the type "-hide" on the "Add arguments" texbox

And that's it. Press OK and you should see it in the Task Scheduler Library. From here you can right click on it and press Run in order to test it. If everything is correct next login PH should start automatically as Admin
 
User avatar
xanda
New User
Posts: 1
Joined: 03 Feb 2020 23:03
OS: Windows 7 Ultimate 64-bit
Location: UK

Re: Run as Administrator upon Start when I log on

03 Feb 2020 23:36

Attempting to run Process Hacker automatically at logon via the Task Scheduler is unlikely to work (at least on Win7). This is because applications won't run interactively when invoked this way - a long known limitation of Task Scheduler.

Assuming Windows 10 still has a traditional startup folder under the 'All Programs' list, one solution is to place a shortcut/link there which runs Process Hacker via the 'runas' facility:-
runas.exe /savecred /noprofile /user:HOSTNAME\Administrator "C:\Program Files\Process Hacker 2\ProcessHacker.exe -hide"
Where HOSTNAME is substituted with the name of the PC.

For reference, the Startup folders can be found here:-

Explore all users:
 %AppData%\Microsoft\Windows\Start Menu\Programs\Startup
Explore current user:
 %ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup
Hope this helps.
Attachments
ProcessHackerStartup.png
 
dbareis
New User
Posts: 1
Joined: 06 Feb 2020 05:05
OS: Windows 10 64 bit
Location: Australia

Re: Run as Administrator upon Start when I log on

06 Feb 2020 05:19

Do any of these work and answer the question?

"Run as Administrator" actually doesn't mean run as the "Administrator" but run elevated, I could automate everything except the confirmation which as far as I know can't be automated.
 
cw2k
Member
Posts: 22
Joined: 07 Nov 2012 20:39

Re: Run as Administrator upon Start when I log on

07 May 2020 17:47

Okay that's how we get PH run elevated via Autostart:
  1. Press WindowsKey+E to open explorer type
    shell:startup
    To open Start-up folder.
  2. Copy the ProcessHacker Link from the desktop in there
    OR just rightclick on a free space in the explorer windows and choose new / shortcut
  3. Open ProcessHacker Link Properties via rightclick
    and paste into target Textbox
    runas.exe /savecred /user:%COMPUTERNAME%\Administrator "%ProgramFiles%\Process Hacker 2\ProcessHacker.exe -hide"
    Note: I left out the /noprofile option so it'll use the settings for traybar icons, columns etc from the current user.
 
tonaz
New User
Posts: 2
Joined: 07 May 2020 20:43

Re: Run as Administrator upon Start when I log on

07 May 2020 20:44

Hello, the -hide parameter doesn't seem to work. It launches always in the main windows open.
 
User avatar
dmex
Admin
Posts: 1562
Joined: 17 Jan 2011 05:43
Location: Australia

Re: Run as Administrator upon Start when I log on

08 May 2020 02:20

Hello, the -hide parameter doesn't seem to work. It launches always in the main windows open.

The -hide parameter requires tray icons enabled otherwise it won't start hidden.
 
tonaz
New User
Posts: 2
Joined: 07 May 2020 20:43

Re: Run as Administrator upon Start when I log on

08 May 2020 09:16

yes i've noticed it. thanks