Tag Archives: Scripts

How to test if a firewall port is open – Powershell

Microsoft Powershell can be uses to a lot of amazing stuff. I have been using powershell for years now, but I am still learning new cool stuff to do with it.

How to Schedule a reboot of Windows Server

If you are looking for the good old AT command on Windows 8, Windows Server 2012 or newer OS, you will notice that the command has been deprecated. Instead you should check out the schtasks.exe command line tool, that also is a pretty powerful tool.

How to get started creating scripts with WMI Code Creator

In this post I will introduce you to a great little tool from Microsoft that can help you getting started creating WMI scripts in C#, Visual Basic or VB script. The tool is free and can help you creating small scripts that can collect data from WMI or execute commands on local or remote computers. Scripting against the WMI namespace you can do a lot of cool stuff like collect information about Operating system or Hardware information. It is also possible to execute commands like reboot or other admin tasks that you might find useful.

Windows Powershell for Newbies

Getting started with PowerShell

PowerShell is Microsoft’s next generation command-line shell that helps IT guys all over the world to automate administrative tasks. If you have been around the IT business as long as I have you have properly made a lot for .bat files and batch programming to simplify and automate IT tasks. You properly also know that in the year 2011 it is quiet limited what you can do with batch programming in Windows operating systems.

wmic scripts

Played around with the wmic command-line tool today

With the WMIC (Windows Management Instrumentation Command-line) command line tool you can access a lot of information about your computer. The command-line tool has been built into Windows since Windows XP. Below you can see a couple of command you can check out to get started with WMIC.
C:\>wmic cpu get name
Returns eg. : Intel(R) Core(TM) i7 CPU         930  @ 2.80GHz

C:\>wmic BIOS get name
Returns eg. : BIOS Date: 03/23/10 15:17:30 Ver: 08.00.15

C:\>wmic cpu get description, maxclockspeed, extclock, manufacturer, revision /format:table > info.txt
Returns a text file named info.txt with CPU information about the PC.

All the above commands have been tested on Windows 7 64 bit

For more information about WMIC see:
http://technet.microsoft.com/en-us/library/bb742610.aspx