Tag Archives: wmi

PowerShell and Events: WMI Temporary Event Subscriptions

It’s been a while since my last post in my series on PowerShell and Events (February to be exact), but now that I have some projects caught up, it is time to make a return to wrap up this series … Continue reading

Posted in powershell | Tagged , , , | 4 Comments

Use PowerShell and WMI to Locate Multiple Files on Any Drive in your Domain

A couple of days ago I was browsing my RSS feeds and came across an article that PowerShell MVP Jeffery Hicks wrote regarding the use of finding files using WMI with a function called Get-CimFile. That article is listed below: … Continue reading

Posted in powershell, scripts | Tagged , , , | 9 Comments

Speedy Network Information Query Using PowerShell

Taking a page from my Advanced Event 2 script that I used in my Expert Commentary on Hey, Scripting Guy!, I wanted to put something together to query for basic networking information from both local and remote systems and accomplish … Continue reading

Posted in powershell, scripts | Tagged , , , | 19 Comments

Checking for failing Hard Drives using S.M.A.R.T and PowerShell

I noticed a link to an article on twitter yesterday that talked about how you can use PowerShell to query for a SMART enabled hard drive and detect a possible imminent failure. It was an interesting article and showed me … Continue reading

Posted in powershell, scripts | Tagged , , , | 6 Comments

Use PowerShell to remove local profiles

A couple of days ago at work, I was asked a question concerning whether a specific one-liner of code would work remotely. That one-liner was (Get-WMIObject Win32_UserProfile | ? {$_.localpath –like “*username).Delete()} I told him that, yes, in fact it … Continue reading

Posted in powershell, scripts | Tagged , , | 26 Comments