Scripting Blog

A place to learn about PowerShell and share stories of automation

Hey, Scripting Guy! What’s Going on in the Service Host Process?

Hey, Scripting Guy! I think I might have a problem on my server. When I go into Task Manager, all the processes that are eating up the most CPU time and the most memory are the stupid svchost.exe process. I know this is the Service Host process and that it is being used by multiple services, but how can I know what is really going on in ...

Hey, Scripting Guy! How Can I Troubleshoot Drive-Mapping Issues?

Hey, Scripting Guy! We have this problem at work. Users seem to always be losing their mapped drives. It is a real mess, and we spend a couple hours every morning trying to help the users remap their drives. We have more than 160 logon scripts, and it seems that one logon script maps a drive, and then another remaps the drive somewhere else...

Hey, Scripting Guy! How Do I Calculate Server Uptime?

Hey, Scripting Guy! I loved your idea about tracking what time my server came up and subtracting it from the current time. I bow at your feet! But guess what? My pointy-headed boss says that does not mean jack squat (or words to that effect). He said to really prove server uptime, I need to track the amount of time the server was down ...

Hey, Scripting Guy! How Long Has My Server Been Up?

Hey, Scripting Guy! Everyone at work has the idea that our network is unreliable. However, I know that our servers are seldom down. How can I prove to them that I know my stuff?-- HB Hi HB, You are really asking two questions. The first I can help you with. However, the veracity of your correctness claim is up to you. Your initial inquiry ...

Hey, Scripting Guy! How Can I Find Files’ Metadata?

Hey Scripting Guy! I have a folder of media files, documents, etc., and I would like to see the metadata that is associated with each file. Can I do this with Windows PowerShell?-- EJ Hi EJ, I suspect that you are more interested in "data about data." Various applications store additional descriptive information that is used in different ...

Feedback usabilla icon