нужна помощь :)

Discussion in 'Болталка' started by seofilms, 25 Aug 2009.

  1. seofilms

    seofilms Elder - Старейшина

    Joined:
    27 May 2009
    Messages:
    66
    Likes Received:
    46
    Reputations:
    14
    вобщем есть батник, неработает пока незапутишь как администратор, нельзя сделать чтоб один батник заставлял открываться другой с правами админа ?
     
  2. Kaimi

    Kaimi Well-Known Member

    Joined:
    23 Aug 2007
    Messages:
    1,732
    Likes Received:
    809
    Reputations:
    231
    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\""
     
    _________________________
  3. seofilms

    seofilms Elder - Старейшина

    Joined:
    27 May 2009
    Messages:
    66
    Likes Received:
    46
    Reputations:
    14
    всё знает, всё умеет :D