Opening Task manager minimised at startup
I'm sorry to contradict anybody but do not waste your time even looking at that TechRepublic article - it is from 2004 and it does not work in Windows 10.
- That old method exploits the lack of security in Windows XP. Windows 10 does not allow elevated tasks to be run in their elevated state at startup because malware would try to exploit any such arrangement.
- Task manager does not obey normal rules.
- The best I have achieved** is to have it open automatically minimised to the Taskbar and it then takes a double-click to minimise it to the System tray. See
the solution I posted in #16 to start Task manager at Login [the problem having been defined in
my post #14] in that thread.
- My solution involves use of Task scheduler to run an elevated shortcut without prompting for admin permission by using the
Run with highest privileges setting. That shortcut lives safely inside a folder group C:\Tools to which only Admins have write [modify] access so it behaves just like folders within C:\Program files - every change needs separate admin approval. {normal Users only have Read, Execute, List permissions}.
** Added later - dalchina's method using an AutoHotKey script achieves more than my method does.
Opening other applications minimised
The Start /MIN command is pretty ropey and is not being maintained by MS so I am not surpised to see another example of it not behaving itself. If I wanted to start something minimised
- that did not have its own built-in method and
- that did not obey the command of a shortcut with the minimised property set and
- that did not work correctly with Start /Min then
I would start it by running a vbs command which specified the window as minimised.
StartNotepadMinimised.vbs
Code:
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "C:\Windows\System32\notepad.exe" & Chr(34), 7
' this runs minimised
Denis