Thursday, 15 May 2014

Enable or Disable UAC

It is quite easy to enable or disable UAC through registry editor.., in-order to do so use the following commands.

To Enable UAC:
1. Open command prompt.
2. Type the  command "REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f"
3. Click "Enter".

To Disable UAC:
1. Open command prompt.
2. Type the  command "REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f"
3. Click "Enter".

[OR]

To Enable UAC:
1. Open command prompt.
2. Type the  command "REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 1 /f"
3. Click "Enter".

To Disable UAC:
1. Open command prompt.
2. Type the  command "REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0 /f"
3. Click "Enter"

 

How to create dialog boxes through notepad?

Here is a script that helps to create different message boxes.

Steps to follow:
1. Open notepad.exe
2. Type the scrip "x=msgbox("Your Message Here" ,0, "Your Title Here")"
     Example : x=msgbox("hello" ,4+16, "warning")

Creation of different dialog boxes:
If you want to create different dialog boxes, just change the number 0 with the appropriate values.
  * 0 -OK button only 
  * 1 -OK and Cancel buttons
  * 2 -Abort, Retry, and Ignore buttons
  * 3 -Yes, No, and Cancel buttons
  * 4 -Yes and No buttons
  * 5 -Retry and Cancel buttons
  * 16 -Critical Message icon
  * 32 -Warning Query icon
  * 48 -Warning Message icon
  * 64 -Information Message icon
  * 0 -First button is default
  * 256 -Second button is default
  * 512 -Third button is default
  * 768 -Fourth button is default
  * 0 -Application modal (the current application will not work until the user responds to the message box)
  * 4096 -System modal (all applications wont work until the user responds to the message box)
  * 4+16 - Warning message box


Tuesday, 13 May 2014

Easy way to add or delete user

Here is an easiest way which helps to create or delete user,

Command to create user:

SYNTAX: net user username password /add

EXAMPLE:  NET USER TEST 123456 /ADD

Command to delete a user:


SYNTAX: net user username /del

EXAMPLE:  NET USER TEST /DEL

Monday, 12 May 2014

Enable or disable proxy though command line and registry.

It quite easy to set proxy through command prompt ans to enable or disable proxy settings.

Through Command:

1. To set proxy:

     netsh winhttp set proxy [proxy server address:port number] [bypass list]

 Example :  netsh winhttp set proxy 192.168.1.2:8080 *.192.168.1.2

Result:

 Current WinHTTP proxy settings:

    Proxy Server(s) :  192.168.80.2:8080
    Bypass List     :  *.192.168.80.2

 2. To  check the proxy settings:

    netsh winhttp show proxy

 3. To remove proxy settings:

   netsh winhttp reset proxy


Through Registry:

1. Open regedit.exe

2. Navigate to "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings"

3. Create a DWORD "ProxyServer" and give the data as the proxyserver:port example: 192.168.80.2:8080

4. The above step will enable the proxy and make the data to "0" to disable proxy.

Unlock machine using command Line.

Here is a command which allows to unlock a machine,

1. Open cmd prompt.
2. Type the command "rundll32.exe user32.dll, LockWorkStation"
3. Press enter.

Monday, 5 May 2014

Command to open Windows Explorer through cmd.

Command to open Windows Explorer through cmd.

Here are the commands which are used to open the windows explorer from the command prompt. They are:

1. "start ."
2. "explorer ."