| T O P I C R E V I E W |
| philrobeson |
Posted - 06/09/2011 : 12:23:34 PM Sometimes users need elevated access to a server to load software or some other reason. I do this remotely, and so can you. First, you need Mark Russinovich's (now Microsoft's) Sysinternal Tools (you should keep these on a thumb drive in your pocket and on your computer). You can download the suite of products here: http://technet.microsoft.com/en-us/sysinternals/bb842062
Once the tools are downloaded, add this to the path via your computer's Environment Variables.
In this scenario, we are adding user "probeson" to the local Administrator's Group on a server named fljaxsrvr01.
Then, from the cmd prompt, enter the below command and hit enter: c:\>psexec \\fljaxsrvr01 cmd
The return will be something like this:
PsExec v1.97 - Execute processes remotely Copyright (C) 2001-2009 Mark Russinovich Sysinternals - www.sysinternals.com
Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved.
This opens a remote cmd shell on that server at "C:\Windows\System32. Next, enter this:
c:\Windows\system32>net localgroup administrators domain\probeson /add
The return is: The command completed successfully
Then close the connection: c:\Windows\system32>exit
The return is: cmd exited on fljaxsrvr01 with error code 0 |
|
|