Vinnaren i pepparkakshustävlingen!
2010-09-20, 10:33
  #1
Medlem
opens avatar
Finns det något sätt jag kan göra så att ett specifikt program alltid körs i administratörsläge utan att måsta högerklicka och välja "kör som administratör". Jag vet att jag kan använda administratörskontot och alltid vara inloggad på det kontot för detta, men det är något jag helst undviker.

Tacksam för svar.
Citera
2010-09-20, 10:38
  #2
Bannlyst
Kod:
C:\Documents and Settings\x>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.
   /savecred         to use credentials previously saved by the user.
                     This option is not available on Windows XP Home Edition
                     and will be ignored.
   /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.
gör en genväg
Citera
2010-09-20, 10:46
  #3
Medlem
opens avatar
Efter att jag kollat lite mer så hittade jag en enklare lösning, tänk att det oftast är där mitt framför näsan utan att man ser det.. Det fanns en ruta under egenskaper / avancerat som heter "kör som admininstratör" enklare än att köra "RUNAS" skulle jag säga. tack för hjälpen dock
Citera

Skapa ett konto eller logga in för att kommentera

Du måste vara medlem för att kunna kommentera

Skapa ett konto

Det är enkelt att registrera ett nytt konto

Bli medlem

Logga in

Har du redan ett konto? Logga in här

Logga in