Einzelnen Beitrag anzeigen

Benutzerbild von faux
faux

Registriert seit: 18. Apr 2004
Ort: Linz
2.044 Beiträge
 
Turbo Delphi für Win32
 
#25

Re: Programme unter Win dauerhaft mit Admin-Rechten ausführe

  Alt 14. Aug 2006, 00:42
Code:
C:\Documents and Settings\Faux>runas /?
RUNAS USAGE:

RUNAS [ [/noprofile | /profile] [/env] [/netonly] ]
        /user:<UserName> program

RUNAS [ [/noprofile | /profile] [/env] [/netonly] ]
        /smartcard [/user:<UserName>] program

   /noprofile       specifies that the user's profile should not be loaded.
                     This causes the application to load more quickly, but
                     can cause some applications to malfunction.
   /profile         specifies that the user's profile should be loaded.
                     This is the default.
   /env             to use current environment instead of user's.
   /netonly         use if the credentials specified are for remote
                     access only.
   [color=red]/savecred        to use credentials previously saved by the user.
                     This option is not available on Windows XP Home Edition
                     and will be ignored.[/color]
   /smartcard       use if the credentials are to be supplied from a
                     smartcard.
   /user            <UserName> should be in form USER@DOMAIN or DOMAIN\USER
   program        command line for EXE. See below for examples

Examples:
> runas /noprofile /user:mymachine\administrator cmd
> runas /profile /env /user:mydomain\admin "mmc %windir%\system32\dsa.msc"
> runas /env /user:user@domain.microsoft.com "notepad \"my file.txt\""

NOTE: Enter user's password only when prompted.
NOTE: USER@DOMAIN is not compatible with /netonly.
NOTE: /profile is not compatible with /netonly.
Naja, die Home User werden wieder ausgeschlossen.
Habe aber ein Tool gefunden, das diesen Befehl für Home-User ersetzt bzw für die Professional User sogar nochmals erweitert: runasspc.

Grüße
Faux
Faux Manuel
Wer weiß, dass er nichts weiß, weiß mehr, als der der nicht weiß, dass er nichts weiß.
GoTrillian
  Mit Zitat antworten Zitat