VBScript: Drive Utilization

Here’s another recent topic from the ScriptingAnswers.com forums which I thought I’d share. The forum members wanted to delete files if the drive utilization exceeded a certain threshold. Using Windows Management Instrumentation (WMI) with VBScript I came up with something like this…

Read More

Clean Temp With PowerShell

You would think that by now Windows and Windows applications would be much better about cleaning up temporary files. But no. It is amazing how many files I still see in my %TEMP% directory. I’ve always operated under the assumption that any file in %TEMP% that was created or earlier than the time I last booted up is fair game for deletion. I finally got around to using PowerShell for this management task.

Read More

WinConnections Orlando ’08 Demos

I had a great time last week in Orlando speaking at WinConnections. I met a lot of terrific people, attendees and fellow speakers alike. I spoke primarily on PowerShell and how you will use it to manage your environment. As promised, I’ve put all me demos from my Wednesday sessions in a zip file.

Read More

Read Remote Registry Function

Hopefully you found my last entry valuable. But I always like to take things a step further, especially when it comes to scripting and automation. So I turned my last script into a function that returns the value of a specified registry key

Read More

Remote Registry Reading the VBScript Way

Last week I blogged about using REG.EXE in a batch file to read a registry key. The batch file I provided works, but the output is limited. You could probably parse it a bit more to get it in some other format. But I’d probably turn to VBScript and WMI if I wanted better output control or if I had more complicated needs.

Read More

Got-PowerShell Revisited

Last week I showed a PowerShell function that used WMI to remotely query a machine to determine if PowerShell was installed. Well, like most things Microsoft there’s often more than one way to accomplish a task. Here is a different version of essentially the same function. This version, however, uses the .NET framework and the Microsoft.Win32.Registry class.

Read More

Search

Enter any query and press enter
Advanced search operators:
+ ⟶ Term must appear
- ⟶ Term must not appear
"" ⟶ Exact string must appear
How do I use these?

Join our mailing list

Enter your email address to subscribe to our mailing lists for Monthly Blog Digests, Product Announcements and more (you can choose which you receive once you sign-up!)

Tags

Categories

Archives

Dashboard