Category Archives: scripts

Quick-Hits: Find currently logged on users

I was recently tasked with locating all servers on our network and query for users that were currently logged onto each server, either through a terminal session or logged on via console session.  This got me thinking of what ways … Continue reading

Posted in powershell, scripts | Tagged , , , | 28 Comments

Retrieving Windows Experience Index via WMI

You may have seen this on your Vista or Windows 7 machine. As you can tell, mine is probably average, but did you know that you can retrieve this locally or remotely via WMI using the Win32_WinSat class? You can … Continue reading

Posted in powershell, scripts | Tagged , , , | Leave a comment

Scanning ports on multiple hosts

Recently we had an issue that called into the use of checking to see if some ports were open and listening on our servers.  Naturally, we could have used a tool such as portqry.exe to gather this information. However, you … Continue reading

Posted in powershell, scripts | Tagged , , , , | 20 Comments

Converting CSV file or files into an Excel workbook

Update 07SEPT2010: Updated script based on an excellent comment to use the Paste() method for converting CSV files into an excel workbook. Thanks Luc! While going through the Technet Powershell Forums and Scripting Guys Forums, I came across a question … Continue reading

Posted in powershell, scripts | Tagged , , | 34 Comments

Convert bytes to highest available unit

Unfortunately, I had something else in mind to post this weekend, but life and some other things prevented me from doing so.  Maybe next weekend… Because I wanted to get at least something out this weekend, I am going to … Continue reading

Posted in powershell, scripts | Tagged , , , | 3 Comments