Friday, November 23, 2018

Fix: Windows 8.1/10 Black Screen with Cursor at boot

After upgrading my home laptop systems to Win 10 I began to notice a trend; every couple of times I tried booting the system I would be presented with a black screen and a blinking cursor…but no Windows 10 load.

Fortunately, powering the system off and then back on would allow the Win 10 OS to load OK.

It was an annoyance and signal that something was wrong, but nothing that this workaround wouldn’t address.

Then we upgraded our laptops at work to Windows 10 and started noticing the same behavior.

And our Surface Pro 3 users also occasionally complained about similar behavior.

After careful troubleshooting and searching the Internet, I fixed this particular problem on all our platforms by disabling “Fast Startup” in the power settings.

I’m not 100% why it seems to impact mobile platforms rather than desktops, but I suspect the fact that it involves loading the system from a specially saved/crafted “Fast Startup” hibernation state, if some hardware gets removed or not-detected between power-states – for example USB devices or the dock-station - it might cause the wake-up process to hang.

To fix this particular problem first go into the “classic” Control Panel for Windows, and into the Power Options applet.

On the left-hand side, select “Choose what the power button does”

Near the top of the loaded page to the right, select the “Change settings that are currently unavailable”  (note you may have to confirm a UAC prompt and provide admin-level credentials).

Once you do that, more options will appear below.

Uncheck the “Turn on fast startup (recommended)” checkbox.

Select “Save changes”.

That fixed my laptop issues at home, and by pushing this out to our systems as a standard configuration setting, it fixed the issues at work too.

More technical resources:

Cheers!

--Claus V.

HP C6280 All in one Ink System Failure & other travails

Almost two years ago our HP C6280 “All In One” inkjet printer suddenly decided to toss up a mysterious error code and refused to print.

Swapping out ink cartridges did nothing.

Turning it off and on did nothing.

I was running a two-prong approach to resolution; dig deep in the Googles and research a replacement unit.

Finally I stumbled on this tip.

HP C6280 All in one Ink System Failure – FixYourOwnPrinter

Following the steps of combo-button pushes documented on that page resulted in a restored-to-operation HP C6280.  Since performing those steps I’ve not had that particular error problem come up since!

Here’s a slightly cleaned up version of those steps. YMMV try at your own risk.

Follow the below steps on the front panel of the All-in-One printer: (Note: you may want to read the comments on that page above as well.)

A. Press and Hold the “Print Photos” & “Red Eye Removal” buttons. Release both buttons. Display should say “Enter Special Key Combo”

B. - Press and release in sequence “Red Eye Removal”, “Print Photos”, “Red Eye Removal”
(display says "enter special key combo")

1. Press and release in sequence “Red Eye Removal”, “Print Photos”, “Red Eye Removal”
(display may show a message like “support COxxFN0723BR”

2. Press and release the right arrow button until the display says “System Configuration Menu.

3. Press and release the “OK” button.

4. Display should say “Hardware failure status”. If not there already, Arrow Key over to “Hardware failure status.

5. Press and release the “OK” button.

6. Display should say “Hardware failure status: Clear. Press OK to clear”.

7. Press and release the “OK” Button. Message changes to “Hardware failure status Cleared. Press Cancel to continue”.

8. Press and release the “CANCEL” button as many times as necessary, so that, either the “Welcome to Photosmart Express” screen appears, or, the “Ink System Failure” screen appears. PLEASE DO NOT TRY TO PRINT AT THIS STAGE.

9. Using the Power Button, turn the unit OFF and unplug the power cable from back of the printer and wall outlet.

10. Wait 30 seconds for the power to get discharged and then plug the power cable into the wall outlet first and then into the back of the printer.

11. Turn the unit on. The printer may display message “USE POWER BUTTON TO SHUTDOWN THE PRINTER” followed by “PRESS OK TO CONTINUE”. Press OK.

12. If the printer has already initialized, then go to the next step. If not, the printer will start the “ONE TIME INK INITIALIZATION PROCESS”. Allow this process to complete and do not interrupt. Once the initialization process is complete, the printer will print out a Diagnostic Page.

13. To verify printer functionality print a SELF TEST PAGE.

FYI: The TinyApps bloggist also posted some tips with working with other HP Officejet hardware: Resetting an HP OfficeJet 5740

Then about six months ago the C6280 started experiencing paper-tray feed issues.  I tried a number of things and sometimes could get the paper to barely feed but usually not. I checked/cleaned the rollers, looked for jammed bits of paper, did everything but a full tear-down.

I gave up for a while and started researching new printers again, and put a note on it to not try printing as it wasn’t feeding.

Lavie came in one day while I was away and needed to print. She worked on it as well but also gave up.

Finally one Saturday I really, really needed to print something and didn’t want to run out to find somewhere to print from or pick up a new printer so I made a final attempt at troubleshooting.

When I lifted it up off the small side-table it sat on I noticed a small bit of plastic beneath. Hmmm. Hadn’t seen that before.

It was 1/2 of a geared wheel that seemed to be made out of a black nylon plastic. That couldn’t be good.

With the aid of a flashlight, I inspected the gear mechanisms and drive shafts. After a patient review I eventually found a drive shaft with a matching 1/2 gear piece that engages other gears.  It seems that this drive shaft powers the paper pick-up rollers from the paper-tray. Somehow it had broken in two and this was keeping the paper from picking up.

With nothing else to loose, I use a combo of super-glue gel, long needle-nose pliers, and a ton of patience to re-glue the two gear halves back together while aligned and engaged carefully with the drive gear wheel above it.

I let it set for several days to make sure the glue cured properly and then with fingers-crossed, loaded the paper tray back up and sent an print job through.

It fed and printed just fine…and has held fine many printing jobs later after all these months.

It was a miracle that that 1/2 piece of small broken wheel didn’t get lost or drop into the carpet with all of our earlier troubleshooting.

So if you still have an old HP C6280 here’s proof you can keep it limping along after all this time.

Cheers!

Claus V.

Win 10 Laptop Storage Space-Drain Solved!

A lifetime ago (back in July) I was struggling to understand why my Win 10 workplace laptop’s hard-drive was running out of storage space.

grand stream dreams: QuickPost: PowerShell Scripts and Win 10 Helps

Despite my best efforts the 500 GB HDD had gotten down to about 60 GB – 80 GB of free space despite some pretty severe Windows space-hog/temp-file cleaning work.

That post detailed a number of PowerShell scripts I was using to try to find out the source of the space usage.

Reminder – because this was a work-laptop, my use of the normal third-party storage analysis tools I would rely on was verboten.

After several weeks of running modified versions of many of these scripts I was nowhere closer to finding the issue. I had lots of data, but the results suggested that the file or folder where the space eating usage had happened was off-limits to typical admin-level scripting runs.

Just before giving up and planning for a system reimage, I had an epiphany; Windows 10 comes with a built-in Storage Sense platform to let you understand (at a very high-level) space usage of your local drives in a categorized manner!

How to manage Disk Space & Storage using Windows 10 Settings – The Windows Club

Go into Settings (the gear icon in Win 10), select “System”, on the left side-bar select “Storage”, then click on one of the local system drives at the top you want to explore under the “Storage” section.

Let it run for a moment and it will then give you a report of storage use.

In my case it was immediately apparent that the “System & reserved” section was where the maximum file-usage was occurring; way more than a baseline Win 10 laptop in our enterprise.

You can click on any section and dive deeper into that.

That revealed that I had over 250 GB of files related to “System Restore”.

This was an interesting find as our Group Policy turns off System Restore. A visual check of all the options and settings under “Manage system restore” confirmed these were all disabled…so what was there and how did it get there?

VSSAdmin to the rescue!

I opened an administrator-elevated CMD window and ran the following command:

vssadmin list shadows

That revealed one “orphaned” shadow copy file created quite some time before I actually noticed the space drain.  A check of our operations logs for that timeframe couldn’t find any obvious actions or infrastructure routines that should have created it. So how it was triggered remains a mystery.

With the shadow copy ID known now I next ran this, using the actual ID # I found for that argument variable:

vssadmin delete shadows /Shadow={shadow copy ID}

It ran for quite a while, but then returned back to the blinking prompt cursor.

Another “vssadmin list shadows” confirmed it was gone, and a look at the local drive properties showed my space usage was back to a normal level with lots of free space available again.

Mischief managed!

More resources:

Cheers!

Claus V.

Friday, October 12, 2018

QuickPost: Removing Trend Micro Worry-Free Business Security Agent without the password

Not too long ago one of the ministry departments of the church-house needed a computer set up in their room to help manage things.

We had an older Dell laptop that was a beater, but was a business class device that still retained more than adequate performance.

It took me the better part of a weekend to bring the Win 7 Pro OS back up to a fully patched and updated state and clean a lot of older/abandoned applications off.

One of my last tasks was to remove the long-expired Trend Micro Worry-Free Business Security Agent off the system.

add-remove

Before the uninstaller can complete, you must provide an administrator-set password (as a security feature).  Unfortunately, the admin who set it had long-since left the congregation and no documentation was left as to what it could be.

password

Bother.

Luckily, PowerBiz Solutions “down-under” had a promising tip:

How to uninstall Trend Micro’s Worry Free Business Security client agent without the password - PowerBiz Solutions

Note: The referenced link back to Trend Micro’s solutions page is now “404” but PowerBiz’s post provided a good start: (Update: Archived Trend Mircro solutions page via Wayback Machine – hat-tip to TinyApps bloggist!)

Basically, it involves setting the registry key “Allow Uninstall” to 1.
For WFBS versions 5.x and 6.x, this key is located here – HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\PC-cillinNTCorp\CurrentVersion\Misc
For WFBS versions 7.x, this key can be found here – HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\UniClient\1600\Misc

In my particular case, the version appeared to be 7.x.

version

A quick look in the Registry found the “AllowUninstall” key.

Capture-reg

…which I then changed to the needed “1” value.

Capture-regchange

Once set, I was then able to go back and run the uninstaller without any password prompt.

success

Done

Success and done!

I then followed it up with a Microsoft Security Essentials installation that went on without issue and will provide sufficient real-time protection and current signature updates for AV/AM protection.

Cheers!

--Claus V.

Sunday, July 29, 2018

QuickPost: PowerShell Scripts and Win 10 Helps

Since having a system migrated to Windows 10, I’ve noticed a trend of the hard-drive getting significantly fuller now.  I’ve done all the standard post-migration cleanups. I cleared over 40 GB of old software packages off the system and was feeling pretty good.  The next day all my space-gains were lost and I was back at 100 GB of free space where I started.

I suspect there is some caching activity going on in the background and that it running off a quota that keeps me returning to the magical 100 GB free of a 500 GB drive.

Normally, I’d just run one of these tools to identify the space/file hogs and start cleaning up. I’ve ordered these in my general preference; though I like them all for slightly different things they bring to the table on a space-hunt.

However in this case I cannot use any third-party tools and must stick with using Microsoft OS-based solutions only.

So that led me to find a script I could use in PowerShell.

I’ve divided them into file-size analyzers and folder-size analyzers.

I found it is relatively easy to hunt down singular files on your system in PowerShell that are the largest. However, what happens if you have a bunch-load of very small files? Individually they may never float to the top, however in aggregate, they could add up to a lot of space usage.

I’ve listed these as well in my order of preference.

Note: They all seemed to run fine on my Win 10 systems in PowerShell ISE – though tweaking was needed for each one to target specific folders and/or report outputs – depending on the script.

PowerShell File-Hog Hunters

PowerShell Folder-Hog Hunters

If you do export output to CSV and don’t “pre-format” the bytes output to MB, here is a tip on a custom formatting rule in Excel you can use to make it more readable.

formatting - How can I format bytes a cell in Excel as KB, MB, GB etc? - Stack Overflow

I’ve not loaded Ubuntu on Windows to have a Bash console, but in looking for tools, I came across this that looked pretty neat: ncdu: Identify Large Files on Windows 10 - Trevor Sullivan

Finally, on Win 7 I used a pretty small set of common keyboard shortcut to navigate my way around the system.  In Windows 10, I’m finding a desire to expand my quick-access key combo skills. Here are some good resources:

If I’ve missed a useful script or you have any tips for hunting for space/file hogs using only “on-board” native Windows 10 OS tools, please drop a comment!

I expect I’ll be adding to the list of links in this post too as I uncover more PowerShell scripts that could be useful. As I post this, I think I am overlooking one or two others that I found useful

Cheers!

--Claus V.

Saturday, May 26, 2018

Windows Defender Security Center Health Report detail missing

Right now I am running Windows 10 Home x64 OS build version 1803 (aka April Update).

There are a few nutty things that I have observed over the past few week. Though the update itself went on smoothly with no issues.

Recently I noticed that the Windows Defender Security icon in the system tray has started to display an error indicator.

yrl10gkv.tda

Normally that means I need to run a “Quick Scan”, however in this build, that also brings up the Windows Defender Security Center that has a Health report.

The error was caused by a Device driver with one recommendation showing to clear.

jszxn15f.ghb

Selecting the down-arrow to expand however resulted in nothing seen.

ug1efk2x.52p

Reboots did not clear the issue.

The non-display of items in the Health report page appears to be a fairly common issue with a number of suggested fixes.

There were a number of different ways I could approach tackling this issue, but here is the way I cleared the problem that most people may find more informative.

I pressed the “Windows” key and then the “R” key to bring up the Run box.

I then typed “perfmon /report” and clicked “OK”.  (more here).

imkqfah4.kut

After a minute or two the same Health report was generated but in greater detail via the Resource and Performance Monitor.

Looking in the Warnings/Error section, it was immediately obvious to me that the driver issue was related to the “Virtual CloneDrive” application I have installed.

(Note: I ignored the Photosmart printer error because my printer was offline.)

pnkjpbe3.i0x

I have used Virtual CloneDrive from Elaborate Bytes for a very long time with great results. It allows me to mount a wide range of “image” files such a ISO, BIN, and IMG types (among others) as a virtual drive letter for quick content access. It is free and says it is Win 10 compatible.  However it hasn’t been updated for some time.

I next checked my Device Manager properties and confirmed that the device driver was in error.

wt43h0is.f2s

Rather than go about trying to fix this particular issue, I just uninstalled Virtual CloneDrive from my system. This cleared the error in the Device Manager view.

amyb333v.lj1

Checking the Windows Defender Security Center Health report found the error now cleared.

lmyu5lhm.a53

…and the Windows Defender system icon restored to a normal health state.

f2lkwy1s.k1u

Takeaway: if you want really detailed breakdown of issues found in the Health Report, run a “perfmon /report” session to collect your system state details then get troubleshooting!

Additional notes:

Because I was already using the incredible (and in many ways more fully-featured) Pismo File Mount Audit Package application from Pismo Technic Inc. to mount most of my ISO image files anyway, I just updated that one to the latest version available and didn’t bother to reinstall Virtual CloneDrive.

I also have these applications as well on my system so I’m not missing anything when I need to mount a  particular image file:

Cheers!

--Claus V.

Saturday, March 18, 2017

Enhanced Mitigation Experience Toolkit (EMET) 5.5/5.52 Uninstall Error 2738

I’ve been taking the layered “defense in depth” approach on my home systems for some time.

Including using (concurrently)…

Last night something started to go wrong with the process and the wheels came off the wagon.

Here’s how I got them back on.

I am running the Premium (lifetime subscription) version of Malwarebytes. Some time ago they came out with a new 3.0 version release.  I’ve been reading the reviews throughout the rollout and have waited to do the upgrade. Once nice feature is it now includes the full version of their awesome Anti-Exploit program at no cost to Premium subscribers; something I was using the limited/free version for but couldn’t protect my Chromium-based Vivaldi browser sessions with as the free version didn’t allow setting of custom protections.

As I said, all the bits had been running fine together although – to be fair – Malwarebytes does warn users of EMET during installation that it has compatibility issues and recommends removal of EMET.  If disregarded, the installation will continue fine.

Thursday night, my Malwarebytes 2.0 version final got auto-triggered to offer me the eligible upgrade to the 3.0 version.

I said OK and let it install.  Installation seemed to go fine. No errors.

However last night, I went to launch Microsoft Excel and EMET went crazy and blocked it from running due to a perceived exploit. That hasn’t ever happened before and I was very confident my system hadn’t been actually exploited. I tried both Excel 2007 and 2010 versions that I have and both got the same reaction by EMET. I then tried Word and it also caused EMET alerts and binary blockage. Hmm.

Well, maybe something in the new Malwarebytes 3.0 was causing a compatibility issue with EMET finally.

So I went to uninstall EMET.  Only I had two versions.

Programs and Features_2017-03-18_15-13-08

Not sure how that happened. EMET 5.52 was supposed to allow for in-place upgrade of EMET over a prior version. Didn’t recall getting an error before.

So I went to uninstall EMET 5.5 and got this:

EMET 5.5_2017-03-18_15-13-43

Same result trying to uninstall EMET 5.52

I tried repairs, changes, etc. to both EMET applications. I still had the original MSI installers for them both but even re-downloaded them from Microsoft. None seemed successful.  Note the dates in the “Installed On” column were yesterday’s so something in the processes I did worked, but it wouldn’t let me uninstall them; continuing to present that same “error code is 2738” message.

Since using Excel/Word were critical last night, I worked around the problem up removing all the EMET setting protections for the Microsoft Office suite application binaries. That let me run them without being blocked.

I figured that would be enough, but this afternoon I went to open a PDF with Adobe Reader – and EMET blocked it too from launching due to some kind of perceived exploit.

EMET had to finally go and I had to punch through that error code.

I ended up in a Microsoft forum where others with previous versions of EMET had encountered the same error but it seemed on installations – not uninstall activity.

Technet forums – Security (EMET forum search for “2738”)

Looking through them many seemed to share a common thread with a previous anti-virus product taking over, corrupting, or locking down a VBScript dll process.

Well, perhaps my Malwarebytes and/or CrytoPrevent protections were keeping the vbscript.dll service from being accessed or running?

So I removed my CryptoPrevent protections and disabled my MalwareBytes application.

Nope. Same error.

I did some more digging on a wider net and the more I read about other non-security applications having a
“2738” error on installation, I became convinced it was all related.

So after reading multiple posts I was confident to do the deeper work needed to try to fix this issue.

Using Registry Finder (under an elevated Administrator session) I searched my registry for the string {B54F3741-5B07-11cf-A4B0-00AA004A55E8}.

It came up 12 times, all in the expected locations, except I did have a single odd-string out under the HKEY_CURRENT_USER location. I was pretty sure that was my problem.

[HKEY_CURRENT_USER\Software\Classes\Wow6432Node\CLSID\{B54F3741-5B07-11cf-A4B0-00AA004A55E8}]

All the rest were under HKEY_CLASSES_ROOT, HKEY_LOCAL_MACHINE, or HKEY_USERS.

I exported the registry key first (just in case) then I deleted it.

I then opened up CMD (under an elevated Administrator session) and ran the following commands (note my system is a Windows 7 Home x64 OS):

  • cd %windir%\syswow64<enter>
  • regsvr32 vbscript.dll <enter>

cjj1w2zq.gps

I then went back and attempted to remove EMET 5.5 and it uninstalled with no more error 2738 codes.

I then followed by removing EMET 5.52 and it came off just fine as well with no errors.

I wrapped things up by re-applying my default CryptoPrevent and MalwareBytes protections states again.

Done.

Again, the trick was to remove the Registry entry just under the HKCU location where it was found present, then re-register the vbscript.dll component properly.

Later while preparing for this post I did find this EMET-related forum post that basically walks one through the same steps for an earlier version of EMET on a x32 bit based version of Windows 7. If you try to follow that and have an x64 bit version of Windows, you will need to adjust accordingly.

EMET 3.0.0 Installation fails on Win7 Pro 32Bit - Error Code 2738 – Microsoft TechNet

Additional resources and guides for addressing the Error Code 2738 problem:

The key to understanding why this works (and where the problem lies is explained nicely in Heath’s above post:

As some people have found, re-registering the runtime libraries vbscript.dll and jscript.dll will fix the errors, but that isn’t always the solution.

As a security measure, Windows Installer will not load script engines registered in HKEY_CURRENT_USER. As a user-writable store, a normal user could get an elevated install to run their library masking as a script engine if the custom action was not explicitly attributed with msidbCustomActionTypeNoImpersonate (0x0800). This is an elevation of privileges attack; thus, Windows Installer returns error message 2738 or 2739 for custom actions type 6 and type 5, respectively, and returns Windows error 1603, ERROR_INSTALL_FAILURE.

Because – somehow – vbscript.dll did get itself registered under my HKEY_CURRENT_USER location, the EMET MSI uninstaller script could not execute. Only by pulling it out, then re-registering it in the correct location automatically, would the removal process complete.

Final thoughts.

I only removed EMET from this particular system as it exhibited the crazy mitigation interceptions for Microsoft Office immediately after upgrading to MalwareBytes 3.0 Premium.

On my other Windows 7 Ultimate system, I am still running EMET (5.52 only) along with the protections noted in the top of this post. The only difference is that I’m using the free version of Malwarebytes 2.0 on it (without real-time protections). So until an issue appears, I’m keeping EMET on that system.

Lavie still is running Windows 8.1 on her laptop with a similar configuration. Lesson learned is that I will first remove EMET before upgrading her MBAM Premium version from 2.0 to 3.0.

Cheers!

--Claus Valca