Category Archives: cmd

How to install IIS features on SCCM 2012 Distribution Point with command line

Hi SysAdmins

Did you ever wonder how SCCM 2012 install a DP remotely from the CM console?

DISM.exe (Deployment Image Servicing and Management tool) is a command line tool that you can use to enable or disable Windows features.

In this case we use it to install all the necessary IIS features for a SCCM 2012 DP.

Command line to install IIS on DPs:

Continue reading “How to install IIS features on SCCM 2012 Distribution Point with command line” »

How to Retrieve a Password of an Application Pool User in IIS 6

Today I needed to set a SPN for a IIS application. I discovered that I lost the password of the user account which I need to configure on the application pool.

Luckily, there is a way to retrieve/decrypt the password if it is configured on an existing Application Pool.

This is done by using a Microsoft tool on the IIS server – adsutil.vbs.

Here are 5 simple steps to do this:

Continue reading “How to Retrieve a Password of an Application Pool User in IIS 6” »

The Silent Ping Command

The “Silent Ping” Command is a sort of improvement for the well known ping command.

So, why do we need it?

When you reboot a serve or PC remotely, you can never be sure when it was booted again or when it is online again,

Most people use the ping command with the -t parameter to check if a server is online again.

But what if you could know exactly when a server is up again or even simply monitor a server when it goes offline over the night,

Or if a communication error occurs that cause some kind of service outage.

Continue reading “The Silent Ping Command” »

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” »