Showing archive results for August 2012

Aug 9, 2012
Post comments count0
Post likes count0

Use PowerShell to Create a Color Server Uptime Report

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell to create a color HTML server uptime report.  Hey, Scripting Guy! I hope you do not mind me writing to you—I have a rather unusual request. I like the server uptime report that you created the other day, but when I showed it to my boss, all he said was &ldqu...

Scripting Guy!Windows PowerShellscripting techniques
Aug 8, 2012
Post comments count0
Post likes count0

PowerTip: Creating a Custom Number Display

Doctor Scripto
Doctor Scripto

Summary: Learn how to create a custom number display.Question: How do I display a “calculated value” (megabytes instead of bytes) from a WMI query when piping data into a Format-Table cmdlet?Answer: Create a hash table where you want to display the data, and perform the calculation inside curly brackets, and then assign the re...

Scripting Guy!Windows PowerShellPowerTip
Aug 8, 2012
Post comments count1
Post likes count0

Use PowerShell to Create a Report Displaying Free Disk Space

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell to create a report that displays free disk space on servers.  Hey, Scripting Guy! I know it may be hard to believe in today’s era of multiterabyte disks on laptops, but our servers are constantly running out of disk space. Part of the problem is that they we...

Scripting Guy!Windows PowerShellscripting techniques
Aug 7, 2012
Post comments count0
Post likes count0

PowerTip: Run a PowerShell Script with Space in the Path

Doctor Scripto
Doctor Scripto

Summary: Learn how to run a script with a space in the path. Question: How do I run a script with a space in the path? Answer 1: PS > c:my` foldermyscript.ps1 Answer 2: PS> &(“c:my  foldermyscript.ps1”) Question: What is the easiest way to create an array? Answer 1: $array = “1”,”2”,...

Scripting Guy!Windows PowerShellPowerTip
Aug 7, 2012
Post comments count0
Post likes count0

Use PowerShell to Create an HTML Uptime Report

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to create and display an HTML server uptime report.  Hey, Scripting Guy! I have a rather unusual request. I need to create a server uptime report at work. But my boss wants me to create the report in HTML so the page can display on one of our intranet servers. I ...

Scripting Guy!Windows PowerShellscripting techniques