PowerShell: DriveUtilization

The other day I posted a VBS function for getting drive utilization. It seems only fair to give PowerShell a chance to play. 1: Function Get-Utilization { 2: Param([string]$computername=$env:computername, 3: [string]$ID="C:" 4: ) 5: 6: #suppress errors messages 7: $errorActionPreference="silentlycontinue"…
Read More

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…
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…
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…
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…
Read More

RSS SAPIEN Info Center

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