Category Archives: scripts

Using PowerShell to Query Web Site Information

In my last post, I showed you how to use the Test-Connection cmdlet to test your internet access.  In this post, I can show you how to use Net.WebRequest or the Net.WebClient to send a request to website and verify … Continue reading

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

Quick Hits: Test Internet Access

A while back I was having all sorts of internet connection issues with my ISP.  The connection would drop and I would have to play the “click refresh” game with my browser and wait until the magical moment when I … Continue reading

Posted in powershell, scripts | Tagged , , | 10 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

Setting IIS log locations with PowerShell

In my previous post, I showed you how to query for the location of IIS log files using ADSI and connecting to remote systems.  In this post, I will show you some code that will allow you to set the … Continue reading

Posted in powershell, scripts | Tagged , , , | Leave a comment

Locating IIS Logs with PowerShell

It has been a while since I last posted here at my blog. Work, holidays that required travelling across a state, getting married and a honeymoon in Cozumel, Mexico have kept me plenty busy during the last month and a … Continue reading

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