Monday, September 24, 2012

How to Activate Product Key in Windows 8 by using WMI

I have installed windows 8 in my laptop. I was struggling to activate the product key. I found out the product key activation steps by using WMI Scripts in windows 8.

The Steps are,
1) Run command prompt with an elevated privilege (Run as Administrator).



2) To Install your Product Key by using below commands,
slmgr.vbs -ipk


3) To Activate Your Product Key by using below commands,
  slmgr.vbs -ato


Tuesday, September 18, 2012

Adding users to local administrator group on server through command line

Add a User to Local Administrator Group by using Command Line,

Syntax:-

net localgroup administrators /add domain\account

Example :-

c:\>net localgroup administrators /add bala\SPAdmin