Showing posts with label tips. Show all posts
Showing posts with label tips. Show all posts

How to view and kill tasks or process running in a remote server

Windows has several built in command line utilities for performing various tasks, and two tools are useful for remotely viewing and killing tasks from command prompt.They are “Tasklist” and “Taskkill”. 

If you open an admin command prompt (Press Start, type cmd, press Ctrl+Shift+Enter) and type tasklist, it will give you a list of running processes on your computer. We can use same command with some modifications to view the task manager of remote computer in our network from our machine.

To view Task manager of remote computer use below format in cmd prompt [with admin privilege] from our machine
Tasklist /S remote system (name or IP address) /U username /P password
Example: Tasklist /S  192.168.1.1 /U sysnet /P P@ss@0rd

To kill process of remote computer use below format
Taskkill /S remote system /U username /P password /IM ProcessName
Example: Taskkill /S 192.168.1.1 /U sysnet /P P@ss@0rd /IM malware.exe

NOTE: You have to use IP address or Hostname of your server and your AD username and password instead of  192.168.1.100 , sysnet and P@ss@0rd respectively 

Note: To kill the process you want,Add the process name (including .exe) or the PID number along with the “/IM” argument as above example. If it works a SUCCESS message will show. If the process doesn’t get killed, try to add /F to the end of the line to force the process to be terminated.

Note: Some processes cannot be terminated such as those which are system critical or security software etc.

Read More...

Error : Can not add a site to "Trusted sites zone" [Solved]

Internet Explorer assigns all websites to one of four security zones: Internet, Local intranet, Trusted sites, or Restricted sites. The zone to which a website is assigned specifies the security settings that are used for that site. You can choose which websites to assign to the Intranet, Trusted, or Restricted zones. By adding a website to a specific zone, you can control the level of security used on that site. For example, if you have a list of websites that you visit and you completely trust those sites, add those sites to the Trusted zone.

To add a site to Trusted Zone

-Open Internet Explorer 
-Navigate to the website that you want to add to a specific security zone.
-Click the Tools button, and then click Internet Options.
-Click the Security tab, and then click Trusted sites
-Click Sites.
-The website should be shown in the Add this website to the zone field. Click Add.
-If the site is not a secure site (HTTPS), clear the Require server verification (https:) for all sites in this zone check box.
-Click Close, and then click OK 

Sometimes you might come across an error : Can not add a site to "Trusted sites zone"

To solve this error try below method

-Open Internet Explorer.
-Click Tools, and then click Internet Options.
-Click the Advanced tab.
-Under Reset Internet Explorer Settings, click Reset.
Read More...

Tracert from Cmd prompt and save result in a notepad [Batch file]

Steps for Tracert an IP and save result in a notepad

- Open Notepad
-Type

TRACERT 8.8.4.4 >Tracert.txt 

-Save it as Sysnet.cmd in your desktop .
Instead of "8.8.4.4" you can use any IP address you want.
Instead of "Sysnet.cmd" you can use any Name.cmd you want.

Tracert to given IP will be initiated  when you click on the Sysnet icon on your desktop.Result of tracert will be saved to the notepad named Tracert.txt in the desktop which will be automatically created when you click on Sysnet icon.



Result in notepad


Read More...

How to ping multiple ip addresses from cmd prompt

If you are working as a  Network/System administrator you might come across situations to monitor network connectivity of multiple machines in your network at same time.Companies having large network may use Network Monitoring tools like PRTG Monitor .

As we all know, ping is one of the most useful network debugging tools used for verifying IP-level connectivity.Normally when we want to ping multiple IP addresses, we open command prompts and start pinging to each IP.


If the ping command gets a response, then the connection is good, and you can concentrate on other problems.If you are getting RTO's [Request time out] there is some connectivity problem in the network
If we have to monitor connectivity of multiple IP addresses we need to open each cmd prompt and need to ping all IPs.There are lot of free software which allow you to ping multiple IPs at same time.But many of the companies will not allow admins to install and use third party softwares to do that.In such cases we can use batch files to ping multiple IPs at same time.You can PING as many IPs with a single click.


How to make a Batch file to ping multiple IP addresses

- Open a notepad 
- Type

START "Google Primary DNS" ping 8.8.8.8 -t
START "Google Secondary DNS" ping 8.8.4.4 -t  

-Save it as Sysnet.cmd in your desktop .You can use as many IP address you want.All IP addresses are opened in seperate windows when you click on the Sysnet icon on your desktop

Instead of  "Google Primary DNS" you can use any Title you want.
Instead of "8.8.8.8" and "8.8.4.4" you can use any IP address you want.
Instead of "Sysnet.cmd" you can use any Name.cmd you want.


If you are interested in free software to ping multiple IPs at same time,You can try PingInfoView which is a small, very useful and free utility that allows you to easily ping multiple host names and IP addresses, and watch the result in one table.

Read More...

List of commands which can execute from cmd promt

Below are the list of commands which can be run from cmd prompt.This commands will help to get informations about your network.Some of this commands can be directly executed from Run window

Click the Start button Picture of the Start button. In the Search box, type Cmd, and then, in the list of results, click on Cmd

OR Press  (windows Key) + R which will open Run window and there you can type cmd and press OK.

1) Display Connection Configuration: ipconfig /all


2) Display DNS Cache Info: ipconfig /displaydns

3) Clear DNS Cache: ipconfig /flushdns

4) Release All IP Address Connections: ipconfig /release

5) Renew All IP Address Connections: ipconfig /renew

6) Re-Register the DNS connections: ipconfig /registerdns

7) Trace IP address Route: tracert <IP address>

8) Network Connections: control netconnections / control ncpa.cpl

9) Display Name of Computer Currently on: hostname

10) Test Connectivity: ping <IP address>

11) Trace IP address Route: tracert <IP address>

12) Displays the TCP/IP protocol sessions: netstat

13) Display Local Route: route

14) Display Resolved MAC Addresses: arp

15) To view "Add or Remove Programscontrol": appwiz.cpl

16) To view Admin tools: control admintools

17) Date and time:  control timedate.cpl

18) Device Manager : control hdwwiz.cpl

19) Devices and Printers : Control printers

20) Display : control desk.cpl

21) Folder Options : control folders

22) Fonts : Control fonts

23) Internet Options: control inetcpl.cpl

24) Network Setup Wizard : control netsetup.cpl

25) User Accounts: control userpasswords

26) Troubleshooting: control /name Microsoft.Troubleshooting

27) Windows Firewall: firewall.cpl
Read More...

How to find IP address of a network printer

If you’re on a Windows computer, this is how you can find the IP address of a network printer.
1. In Windows 7, From Start menu type "Devices and Printers."
2. Right-click on the appropriate printer in the list and select “Printer Properties.” In the location box under the General tab, you should see the IP address of the printer.
If the location box happens to be empty, click on the “Ports” tab in Printer Properties, highlight/select the port that is checked off (there should just be one) and click  the “Configure Port…” button. In the next window, you should see the IP address in the “Printer Name or IP Address” text box
Read More...

Error: LibraOffice requires a Java runtime environment (JRE) to perform this task [Solved]

LibreOffice is a free and open source office suite, developed by The Document Foundation.LibreOffice is  compatible with other major office suites, including Microsoft Office, through a variety of import/export filters. You can download it from http://www.libreoffice.org/

Sometimes you come across an error "LibraOffice requires a Java runtime environment (JRE) to perform this task.Please install a JRE and restart LibreOffice"  while trying to run Macros in LibraOffice Calc.Try below step to overcome this error.



Solution 
- Install latest JRE Windows Offline (32-bit) from http://www.java.com/en/download/manual.jsp
- Go to LibreOffice Calc - Menu - Tools - Options - LibreOffice - Advanced(or Java in older version) - Add - then add installed Java from Program Files(x86)  - Java - jre7 - Press OK 
- Go to LibreOffice Calc - Menu - Tools - Options - LibreOffice - Advanced(or Java in older version) - Add - then add installed Java from Program Files(x86)  - Java - jre7 - Press OK 

To check whether its working
Go to LibreOffice Calc - Menu - Tools - Macros - Run Macros (confirm above error is not showing)

To enable Record Macro option 
Version 3.5.x 
Menu Tools > Options > LibreOffice > General 
Enable experimental (unstable) features. 

Version 3.6.x 
Menu Tools > Options > LibreOffice > General 
Enable macro recording (limited) 

Version 4.0.x 
Menu Tools → Options → LibreOffice → Advanced 
Optional (unstable) options 
Enable macro recording 
This below method depending upon version of LibraOffice installed in your computer

Read More...

Stop saving passwords in your browser

Do you save passwords in your browser?

If answer is yes,its time to stop that.Both Firefox and Google chrome are saving passwords in clear text format and anyone who have physical (or remote) access to your computer can see your passwords without any hacking skills.




Type chrome://settings/passwords in Google Chrome browser if you don’t believe me.You can see all your Passwords saved in Chrome, in plain-text format.There’s no master password, no security, not even a prompt that “these passwords are visible”.

In Firefox,  Options > Security tab > Saved passwords > 'show passwords' will display all your passwords and username in a neat list,that too in clear text format.Only added advantage is that you can (and right now should) set a master password, which you'll be asked for if you subsequently try to ,view those passwords. Chrome doesn't offer a master password
 

So if you are a person who leave your office / Personal laptop on your table without locking it,you are exposing all your passwords to a stranger.It will only take couple of seconds to gain access to all your important passwords for banking ,emails or social media.Anyone can do that.No need of any hacking skills

Try yourself
The simplest way to find out is to try it yourself. If you have Google Chrome or Mozilla Firefox installed, set yourself a challenge - how many passwords can you steal from your own computer in, say, one minute?

Solution


So how can you protect your passwords? You can delete them from Chrome. You can set a password on Firefox. More robustly, set up a screen lock on your computer and activate it before you walk away, no matter where you are. Don't let people use your user account - even people you regard as friends - if you're not watching them. You could also use software such as LastPass, which store your passwords and have their own master password. Some software  can also sync with mobile devices.
Read More...