Category Archives: Scripting

How to Add Hebrew to Powershell or Command (CMD) Console

Hi SysAdmins

Did you ever ran into a situation where you need to add a foreign language to the powershell or Command console? let’s say for script output purpose.

It seems that the process of adding Non-Latin characters is not widely documented.

In this example I will demonstrate how to add Hebrew writing to Powershell. This will also affect the Command (CMD) console.

Continue reading How to Add Hebrew to Powershell or Command (CMD) Console

How to find the system uptime in Windows XP/2003/Vista/2008

Hi SysAdmins

It is very useful to know how many days are your system up and online. Especialy in windows OS.

There are several ways to find the system uptime in Windows XP and above:

Using Systeminfo command:

This command-line utility shows the time that the system was booted and its running time.

Continue reading How to find the system uptime in Windows XP/2003/Vista/2008

Killing a stuck Windows Service

Hi

I guess all of us met the phenomenon when a service refuses to stop and stuck on “Stopping” status.

well, there is a remedy to this by following this short procedure:

1. Identify the PID of the rogue service. open cmd and type: sc queryex

you will receive a long list of available services. you can also type sc queryex > c:\ServiceList.txt to send the output to a text file.

Continue reading Killing a stuck Windows Service

How to get a remote servers’ TCP/IP configuration: IP, DNS, GW via PowerShell

Hi

When you need to know the DNS configurations of a remote machine without logging in to that machine.  Using a script that can do the job on remote computers is the answer.

There are some very good Ebooks online that can teach you how to do this.

This nice Powershell script will do the work. The source I found on this web site and changed it for my needs.

Continue reading How to get a remote servers’ TCP/IP configuration: IP, DNS, GW via PowerShell