Windows

Windows grep command alternative

grep is a linux console command to print lines matching a line, but Windows does not have the grep command. In Windows you have to use the findstr command in a console window. Example C:\>dir |findstr Windows 13.09.2011 10:41 Windows The findstr command is default case sensitive just like in linux. findstr options C:\>findstr -?…

Read More
Scripting

List installed Windows Updates using WMIC

I have recently been trying to find a way to export a list of some, but not all installed Windows Updates and patches on a Windows 2008 server. WMIC is a Windows command that has been available in Windows for a long time and has become a tool that can perform many kinds of actions…

Read More
Network

NetBackup 7.x port usage

If you are unsure what ports Symantec NetBackup 7.x master or media Windows server uses, just open the following file %SYSTEMROOT%\system32\drivers\etc\services The content in this file could be like this if you have not made any changes to the default configuration bpcd 13782/tcp bprd 13720/tcp vnetd 13724/tcp vopied 13783/tcp bpdbm 13721/tcp bpjobd 13723/tcp bpjava-msvc 13722/tcp…

Read More
Windows

Clear Read-Only flag on Disk in Windows 7 using Diskpart

This is a short HOWTO clear the read-only/readonly flag/attribute on a disk in Windows 7 using the diskpart command from a Windows Command Prompt. Warning! Be sure to do this on the right disk since the diskpart command can do serious damage if you run it on the wrong disk. Open a command window by…

Read More
Windows

Shudown Windows 2003 Server from command prompt

You can shutdown a Windows 2003 Server using the tsshutdn.exe command from a command prompt. This example restarts the server without any delay tsshutdn.exe 0 /reboot /delay:0 There are several options available to this command. This command might work on other Windows releases though not tested.

Read More