Showing posts with label CMD. Show all posts
Showing posts with label CMD. Show all posts

Saturday, 25 April 2020

Enable telnet in Windows OS


1. Open "Control Panel" from start menu.
2. Open "Uninstall Programs".
3. Select the "Turn Windows features on or off " option.
4. Check the "Telnet Client" box.
5. Click "OK". A box will appear that says "Windows features" and "Searching for required        files". When complete, the Telnet client should be installed in Windows.



Self/Remote IP address ping command


Self/Remote IP address ping command.

Process:
1. Open the command prompt.
2. Syntax is "ping IP Address" then press enter
   A. Self Ping "ping 127.0.0.1" then press enter.
   B. Remote Ping "ping 10.10.1.100" then press enter.


3. Continues ping syntax "ping ip address -t" then press enter.
    Example: "ping 127.0.0.1 -t"



Saturday, 11 April 2020

Batch script for getting windows KB Patch status(installed or not)

Batch script for getting windows KB patch status which is installed in system or not.

By using "systeminfo" command we can get the OS information.

Command : systeminfo | find "KB Name".

Batch script: 
1. create batch file "patchstatus.bat".
2. paste the below code in batch.

CALL systeminfo |findstr "KB2849697">>"C:\response.txt"
EXIT

3. save the file and run it. you can see the result in "response.txt" file if it found we will get response like below statement or if not installed it will show empty statement.

                           [01]: KB2849697

Batch script for getting windows OS name in windows.


Batch script for getting windows OS name in windows.

By using "systeminfo" command we can get the OS information.

Command : systeminfo | find "OS Name".

Batch script: 
1. create batch file "OSName.bat".
2. paste the below code in batch.

systeminfo | find "OS Name"

pause

3. save the file and run it. you can see the result in command prompt like below image.