Enable or Disable Windows Firewall from Command Prompt

There may come a time when you need to write a script or remotely connect to a PC and run a command to enable or disable the Windows firewall. For most IT environments, using Group Policy is the easiest way to configure the Windows Firewall on client computers.

It’s also the easiest way to add port exceptions for services such as HTTP, file sharing, software applications, and more. However, it’s also good to know how to configure the Windows Firewall from the command prompt just in case you have computers and servers that are not in Active Directory.

Manage Windows Firewall from Command Prompt

First, to see whether the Windows Firewall is enabled on a server or computer, type this command at the command prompt:

netsh advfirewall show allprofiles

Make sure you open an administrator command prompt (click on Start, type in CMD and then right-click on Command Prompt and choose Run as Administrator). You should get something similar to what is shown below:

Continue reading

Some useful commands at Windows

Sometimes you need to use the command prompt to open some programs or window. Below is a list of commands you can use under Microsoft Windows prearranged depending of their functionality:

Control Panel

  • CONTROL: opens the control panel window
  • CONTROL ADMINTOOLS: opens the administrative tools
  • CONTROL KEYBOARD: opens keyboard properties
  • CONTROL COLOUR: opens display properties. (Appearance tab )
  • CONTROL FOLDERS: opens folder options
  • CONTROL FONTS: opens font policy management Continue reading

How to use shell commands for daily administration tasks

List Directory Contents with permissions

[ahmed@Linux ~] $ ll
[ahmed@Linux ~] $ ls –al

List Directory contents with their estimated space usage in human readable format

[ahmed@Linux ~] $ du -ach --mac-depth=1 /home/oracle

Clear Shell Screen

[ahmed@Linux ~] $ clear

Top memory process

[ahmed@Linux ~] $ top
(Press shift + m by sorting memory descending)

Continue reading