Форум АНТИЧАТ

Форум АНТИЧАТ (https://forum.antichat.xyz/index.php)
-   Болталка (https://forum.antichat.xyz/forumdisplay.php?f=46)
-   -   нужна помощь :) (https://forum.antichat.xyz/showthread.php?t=137367)

seofilms 25.08.2009 22:34

нужна помощь :)
 
вобщем есть батник, неработает пока незапутишь как администратор, нельзя сделать чтоб один батник заставлял открываться другой с правами админа ?

Kaimi 25.08.2009 22:40

RUNAS

Execute a program under a different user account.

Syntax
RUNAS [/profile] [/env] [/netonly] /user:user Program

Key
/profile Option to load the user's profile (registry)
/env Use current environment instead of user's.
/netonly Use if the credentials specified are for RAS only.
/user Username in form USER@DOMAIN or DOMAIN\USER
(USER@DOMAIN is not compatible with /netonly)
Program The command to execute

Examples:
runas /profile /user:mymachine\administrator CMD
runas /profile /env /user:SCOT_DOMAIN\administrator NOTEPAD
runas /env /user:jDoe@swest.ss64.com "NOTEPAD \"my file.txt\""

seofilms 25.08.2009 22:43

всё знает, всё умеет :D


Время: 20:16