With the current MiKTeX (fresh installation using basic installer 2.9.5872) it is impossible to mpm with the --admin option.
So
mpm --list
works
while
mpm --admin --list
does not work.
I checked all possible options and all work, but as soon as the --admin option is used nothing is executed.
(I need the --admin option because I bundle MikteX with the LyX installer and for users who install MiKTeX as admin for all users of a PC TeX packages must be installed as --admin to be visible for all users.)
Hmm, it is in general no longer possible to start the admin version of the MPM:
when one tries
mpm --admin
one gets this error:
"Sorry, but "MiKTeX Package Manager" did not succeed for the following reason:
Option --admin requires administrator privileges."
But I am logged in with my admin account and this did not happen with former MPM versions.
when I run a console explicitly with admin permissions and then execute
mpm --admin
in it or via a batch file only the normal MPM starts and not the admin version.
initexmf is also affected:
initexmf --update-fndb
works while
initexmf --admin --update-fndb
does not work, no matter how I execute this.
All programs with option --admin are affected. This option does not make sense if the program is not started from an elevated parent process (e.g., admin command window) or if the MiKTeX setup is not shared (i.e., MiKTeX installed for all users). The programs must check these conditions and disable --admin when necessary. This will be fixed with one of the next updates.
But the problem I wanted to report is that
I have admin permissions
MiKTeX was installed using the --shared option (for all users)
* I explicitly run cmd.exe with elevated permissions
But --admin fails always. --admin worked in previous MiKTeX versions.
Okay, this is the real issue:
mpm --admin
does not start the admin variant of the GUI. This will fixed as well.Btw,
mpm --list --admin
works for me.Many thanks! But to benefit from the fix I need a new Basic-miktex installer. At the moment there:
http://miktex.org/download
is still the affected 2.9.5872 offered.
The updated installer will be available in the coming week.