Scripting Blog

A place to learn about PowerShell and share stories of automation

How Can I Insert a Symbol into a Word Document?

Hey, Scripting Guy! How can I insert a Wingding symbol into a Word document?-- RC Hey, RC. In case you’re wondering, there were two reasons why we decided to answer your question. First, we just liked the phrase insert a Wingding symbol. (No, we don’t know why we liked it, we just did.) Second - and by far most important - this is an ...

How Can I Determine the Uptime for a Server?

Hey, Scripting Guy! How can I determine the uptime for a server?-- LF Hey, LF. This is an easy one. After all, we’re assuming you’re talking about a Windows server, and Windows servers never go down, right? Therefore, the uptime must be forever. Problem solved. Well, OK, we suppose that maybe a Windows server could go down (probably ...

How Can I Search for Two Items in a Text File?

Hey, Scripting Guy! You’ve shown us how to search a text file for a single word or phrase, but how can I search a text file for two phrases? I need to know if a file contains either Windows 2000 or Windows XP.-- JR Hey, JR. You know, it’s hard enough to get the Scripting Guys to do one thing; getting them to do two things would seem to ...