Run as SYSTEM/TrustedInstaller?

Discussion in 'Windows 10' started by v72dd, Feb 4, 2017.

  1. v72dd

    v72dd MDL Senior Member

    Joined:
    Nov 20, 2016
    Messages:
    445
    Likes Received:
    77
    Trophy Points:
    10
    Is there any command line tool that would allow this? :rolleyes:

    Something like psexec but this only runs as SYSTEM and it's quite complex.
     
  2. maestrosir

    maestrosir MDL Junior Member

    Joined:
    Aug 1, 2016
    Messages:
    65
    Likes Received:
    43
    Trophy Points:
    0
  3. v72dd

    v72dd MDL Senior Member

    Joined:
    Nov 20, 2016
    Messages:
    445
    Likes Received:
    77
    Trophy Points:
    10
    PowerRun doesn't work says it needs some service.
     
  4. abbodi1406

    abbodi1406 MDL KB0000001

    Joined:
    Feb 19, 2011
    Messages:
    12,067
    Likes Received:
    55,424
    Trophy Points:
    340
  5. v72dd

    v72dd MDL Senior Member

    Joined:
    Nov 20, 2016
    Messages:
    445
    Likes Received:
    77
    Trophy Points:
    10
  6. sebus

    sebus MDL Guru

    Joined:
    Jul 23, 2008
    Messages:
    6,201
    Likes Received:
    1,945
    Trophy Points:
    210
    The only issue with NSudo is that is does NOT work correctly on Server 2012 R2.
    It runs, but whatever is run, the session is not accessible from current logon

    sebus
     
  7. s1ave77

    s1ave77 Has left at his own request

    Joined:
    Aug 15, 2012
    Messages:
    16,130
    Likes Received:
    24,279
    Trophy Points:
    340
    Was working a lot with nsudo lately, very handy little tool :good3:.
     
  8. abbodi1406

    abbodi1406 MDL KB0000001

    Joined:
    Feb 19, 2011
    Messages:
    12,067
    Likes Received:
    55,424
    Trophy Points:
    340
    What session? you mean cmd windows?
     
  9. T-S

    T-S MDL Guru

    Joined:
    Dec 14, 2012
    Messages:
    3,988
    Likes Received:
    1,327
    Trophy Points:
    120

    I use it on any server w/o any problem.

    Not sure if I got what is your problem but seem obvious that being a different user not everything is straightforward, say you can't copy and paste from a program launched from nsudo and another launched from the current user.
     
  10. sebus

    sebus MDL Guru

    Joined:
    Jul 23, 2008
    Messages:
    6,201
    Likes Received:
    1,945
    Trophy Points:
    210
    Lets say I invoke just cmd as TI

    cmd does indeed gets loaded as TI in a session that I have no access to, from currently logged user (actual administrator or admin user)

    so cmd is there, but I do NOT see it/are able to interact with it
     
  11. Krakatoa

    Krakatoa MDL Addicted

    Joined:
    Feb 22, 2011
    Messages:
    563
    Likes Received:
    893
    Trophy Points:
    30
  12. lobo11

    lobo11 TOMAHAWK CHOP

    Joined:
    Feb 16, 2012
    Messages:
    6,587
    Likes Received:
    5,350
    Trophy Points:
    210
  13. Krakatoa

    Krakatoa MDL Addicted

    Joined:
    Feb 22, 2011
    Messages:
    563
    Likes Received:
    893
    Trophy Points:
    30
    lobo11:
    it works
    it is free web
    try again soon
     
  14. T-S

    T-S MDL Guru

    Joined:
    Dec 14, 2012
    Messages:
    3,988
    Likes Received:
    1,327
    Trophy Points:
    120
    #14 T-S, Feb 4, 2017
    Last edited by a moderator: Apr 20, 2017
    Try this batch, which is what I use (made by abbodi and slightly modified by me)

    Code:
    @echo off
    >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
    if "%errorlevel%" NEQ "0" (
        echo: Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
        echo: UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
        "%temp%\getadmin.vbs" &    exit
     )
    if exist "%temp%\getadmin.vbs" del /f /q "%temp%\getadmin.vbs"
    )
    
    cd /d "%~dp0"
    bin\NSudoC.exe -U:T -P:E "cmd /K cd /d %~dp0"
    Keep in mind that this assumes the nsudo executable is in a subfolder called bin, otherwise change the last line accordingly.
     
  15. lobo11

    lobo11 TOMAHAWK CHOP

    Joined:
    Feb 16, 2012
    Messages:
    6,587
    Likes Received:
    5,350
    Trophy Points:
    210
    This site can’t be reached

    krakatoa.www3.cz took too long to respond.
     
  16. Nucleus

    Nucleus MDL Guru

    Joined:
    Aug 4, 2009
    Messages:
    2,873
    Likes Received:
    2,949
    Trophy Points:
    90
  17. lobo11

    lobo11 TOMAHAWK CHOP

    Joined:
    Feb 16, 2012
    Messages:
    6,587
    Likes Received:
    5,350
    Trophy Points:
    210
    #17 lobo11, Feb 4, 2017
    Last edited: Feb 4, 2017
    Mine says:

    Allow Chrome to access the network in your firewall or antivirus settings.
    If it is already listed as a program allowed to access the network, try removing it from the list and adding it again.

    with google browser, let me reboot
     
  18. v72dd

    v72dd MDL Senior Member

    Joined:
    Nov 20, 2016
    Messages:
    445
    Likes Received:
    77
    Trophy Points:
    10
    #18 v72dd, Feb 4, 2017
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Where did you get NSudoC?
     
  19. lobo11

    lobo11 TOMAHAWK CHOP

    Joined:
    Feb 16, 2012
    Messages:
    6,587
    Likes Received:
    5,350
    Trophy Points:
    210
    In FireFox browser:

    The connection has timed out

    The server at krakatoa.www3.cz is taking too long to respond.

    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer’s network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
     
  20. Enthousiast

    Enthousiast MDL Tester

    Joined:
    Oct 30, 2009
    Messages:
    35,561
    Likes Received:
    59,628
    Trophy Points:
    450
    #20 Enthousiast, Feb 4, 2017
    Last edited: Feb 4, 2017