Wednesday, February 22, 2017

Searching for a string in text files

I hate it when I know I used a specific piece of code somewhere, but cannot remember which file had it. So I use this: Get-ChildItem -Path "\\server\folder\" -Recurse | Select-String -Pattern "some string" | Group Path | Select Name

Wednesday, January 18, 2017

Detect and Remove Windows Updates

On occasion there are needs to remove certain updates from a local machine. Here are scripts that I have used to do that.
You can create a simple baseline in SCCM (or other tools) to detect the patch and then uninstall. In this case we are looking to remove KB2553154.

Detection Script:
$GetHotfix = Get-Hotfix | Where-Object {$_.HotFixID -eq 'KB2553154'}
if ($GetHotfix -eq $null) { return $true } else { return $false }

Remediation Script:
wusa /uninstall /kb:2553154 /quiet /norestart

New Direction

This blog is going to take a new direction.  My goal now is to document some of the things I have been doing at work / home so that I then can go back and reference it.  Hopefully others will find benefits in it as well.

Wednesday, July 9, 2008

Sony HDTV Weirdness

We have a Sony Grand Wega KDF42E2000 and about a month ago, I noticed some weird discoloration on the top and bottom of the screen. My wife couldn't see it, but it was bugging me. Now that we have the Wii, the problem is really noticeable. I love the TV and I hope it can get fixed. The current suspect is the optical block. More on it when I can get it fixed.

Here are some photos that show the issue:

Update: The repairman came on Saturday armed with a new optical block. He had me turn it on and show him the problem. He only had to see the top of the screen and instantly had me turn it off so that he could replace the optical block. He was very knowledgeable, and I liked that. Of course I watched him do the repair so next time I can do it on my own. I am very glad that the unit was still under warranty.