PowerShell’s switch statement is similar to an if statement though easier to implement when you want to evaluate numerous conditions. You can use the switch statement to automate tasks such as retrieving System event log entries and performing actions based on the type of entry, and or moving and deleting files based on their file names.
Author Archives: brettw
The economy of IT, and ways to improve your survivability.
There has been much talk and more evidence of the currently weakening world economy. Many if not most companies have begun to look at ways of cutting back costs which has and will continue to affect the IT sector. But there are things you can do to improve your odds.
Free CD burner for windows
Maybe I’m wrong, but I don’t think I’m alone in the thinking that the cd burning software included with windows is one of the worst, if not plainly the worst cd composition software available to users today. It is severely lacking in features such as those that would allow you to copy a cd, design an audio cd with any normalization or track control, or even simply create an .iso image file. About the only thing it does do is allow you to burn some piece of data on to the physical media that we call cd’s or dvd’s. That’s why I’m happy to have found CDBurner XP.
PowerShell tutorial. The While Statement
Similarly to the for statement, the while statement is another type of loop that parses through a collection. The while statement also includes a conditional code block and a script block and continues for so long as the conditional code block equal true.
Powershell tutorial. The For Statement
This week’s lesson builds on last weeks tutorial but introduces the For statement. The For statement uses a counting loop that processes and continues through a collection as long as the condition equals true. Similar to If statements, the for statement includes a conditional code block and a script block. However you will see that the conditional code block is far more complex.
Windows PowerShell the if statement
There are several ways to control the flow of code within your powershell scripts. The if, for, and while statements are used to define conditions and the actions to happen when the conditions are met. In this blog I’ll focus specifically on the if statement.
Windows VPS overview
One of our increasingly popular services is a Windows VPS (Virtual Private Server). And we’ve seen the uses for them vary depending on the customer. Some of them wish to migrate their bookkeeping software to a centralized location, so that it can be accessed worldwide. Others are looking to replace their workstations and would like the advantages of an IT person without having the expense. But what are the capabilities of a VPS server, and what are their strengths and weaknesses.
Windows Media Services Problems?
Yesterday I ran into a problem with a Windows Media Server that I found surprisingly little information about. A round of Windows updates came through which were meant to beef up security, but it also seems they were destined to Break Everything! The error message I received when Windows Media Encoder attempted to make a connection to WMS was this;
the server that received the http push request is not a compatible version of windows media services (WMS). This error may indicate the push request was received by IIS instead of WMS. Ensure WMS is started and has the HTTP Server control protocol properly enabled and try again. (0xC00D2F0C)
Toshiba’s newest tiny hard drive
Toshiba has created what I think is probably the coolest Hard Drive to date. This thing is super tiny and holds 250 GB. It’s been designed for the next generation of ultra thin laptops and with measurements being 1.8 inches by 8 millimeters, I think they are well on their way.
PowerShell tutorial 8 part 2
As I mentioned last time, today’s post is in regards to using pipelines with foreach loops. Whenever you define a collection in a foreach statement, you are more or less setting up a pipeline. Take a look at this example;
foreach ($svc in Get-Service | where {$_.status -eq 'running'}) { $svc.name + ": " + $svc.canstop.tostring().toupper() }