Skip to main content

Remotely Give Local Admin Privileges to Domain Account on Windows Server

It is assumed that you have a privileged account (read - domain admin) to be able to grant local admin privileges on servers. You will require psexec from sysinternals.
 C:\Windows\system32>psexec \\TestServer cmd  
   
   
 PsExec v1.98 - Execute processes remotely  
 Copyright (C) 2001-2010 Mark Russinovich  
 Sysinternals - www.sysinternals.com  
   
   
 Microsoft Windows [Version 6.1.7601]  
 Copyright (c) 2009 Microsoft Corporation. All rights reserved.  

Confirm we are connected to the correct server.
  C:\Windows\system32>hostname  
 Testserver  

Now issue the command to grant local admin privileges and exit the server.
     
 C:\Windows\system32>net localgroup administrators corp\jeremy /add  
 The command completed successfully.  
   
 C:\Windows\system32>exit  
 cmd exited on testserver with error code 0.  

Comments

Popular posts from this blog

Using Posix 7zip on the Cosole for Fast Compression

7zip has a fast compression algorithm using LZMA2 with as many threads (logic processors, cores, etc) as you like.  In this article we are focusing on the Posix version of 7zip for linux/unix. Here is an example command: 7za a -m0=lzma2 -mmt=2 -mx=1 MyZip.7z mydatabase.dpdmp -m0=lzma2 tells 7zip to use the LZMA2 compression algorithm. -mmt specifies the number of logic processors to use (multi threads) -mx=1 tells 7zip to use the fastest compression This is faster and better compression than zip and gzip and while comparable to bzip2 in size it is way faster than bzip2. Throw that together with a command that detects the number of logical processors and you get a function that discovers how many CPU's to use. LCPU=`cat /proc/cpuinfo | grep processor | wc -l` 7za a -m0=lzma2 -mmt=${LCPU} -mx=1 MyZip.7z mydatabase.dpdmp

Windows 7 x64 and Oracle 10g R2 Client Installation

By default Windows 7 x64 is not support in Oracle 10g R2, but 10gR2 does support Windows 2008 x64, so it should work with Windows 7 after some tweaking. Tweak the following two files: .\stage\prereq\db\refhost.xml .\stage\prereq\db_prereqs\db\refhost.xml To add the BOLD text below: <certified_systems> <!--Microsoft Windows 7--> <operating_system> <version value="6.1"> </operating_system> </certified_systems> Next edit the ./install/oraparam.ini file making the BOLD changes/addition: [Certified Versions] #You can customise error message shown for failure, provide value for CERTIFIED_VERSION_FAILURE_MESSAGE Windows=5.0,5.1,5.2,6.0, 6.1 Then just run the installer as Administrator and you are done.