Sigcheck (with VirusTotal)

Using the Command Prompt command below you’ll be calling sigcheck to check the specified folder, the -u parameter outputs only the files that are unsigned and also none zero detections, the -e limits the scan to executable images only, just to speed up the process.

sigcheck -u -e c:\windows\system32

This should output a list of files that are unsigned or none zero detected on VirusTotal.com (files that have 1 or more detections) with a link to go check it out.

Another useful option is to use Sigheck to check hashes really quickly, especially if you create a context menu. The below command with the -h parameter will output hashes for the file location specified. There are probably better tools, but this one is from Microsoft so you can trust it.

sigcheck -h C:\file.exe

Then you could add the context menu (via Command Prompt again). This adds the ability to see “Check Hashes” when you right click on any file. Instantly types the above command with the file you selected.

reg add "HKCR\*\shell\Check Hashes\command" /ve /d "cmd /k sigcheck.exe -h "%1""

You can find more parameters and other relevant information in the links below.

Links & References

Googles Advanced Search Tips & Tricks

Google used to have a really nice and easy way to search for images, but with certain resolutions, either higher or lower than. For some reason they removed it, I suspect it came after the changes to Google Images relating to copyright cases that were brought on them (just a random guess).

You can however still refine your search results using Googles Advanced Search, or you can use some added search parameters. As this is a short post, for now, until this is updated I’m just going to provide a link.

Links & References

  • How to get back ‘exact size’ and ‘larger than’ search filters on Google Image
    https://www.androidpolice.com/2020/04/13/get-back-exact-size-larger-than-face-photo-full-color-search-filter-google-images/

Disabling Windows 10 telemetry & other things

Via the Group Policy Editor.

Open up the Group Policy Editor by launching gpedit.msc as an administrator. Go through Computer Configuration > Administrative Templates > Windows Components > Data Collection and Preview Builds > Allow Telemetry

Microsoft has slightly changed some things so they may be worded differently. Such as Windows Defender is now called Microsoft Defender so older guides may not reflect that. Tamper protection needs to be also disabled.

Links & References

Windscreen Repair DIY Tool

I had a small windscreen crack and a really small chip that looked like it could easily be filled with a DIY windscreen repair kit. After purchasing a cheap plastic version that seemed to do the trick, I did regret not paying twice as much and simply buying a metal version, so I thought of posting this and letting others know.

Why? Because plastic can only take so much, compared to metal threads. If you are not willing to go with the Aluminium Kit, then I recommend the budget needle version (linked at the very bottom).

Links

Aluminium Kit

Alternative Kits

Resin

Budget

Like me, maybe you wanted to just give it a go, see yourself never using something like this again. Well I recommend something like this https://amzn.to/3DtAFH3

Other Related Tools/Kits

You may need a drill to access some spots that the resin cannot get into. A simple heat source can also help, before resorting to a drill, as shown in this video. Also you may want to use a polishing kit simply to polish out very thin scratches. Link below.

Using the SFC (System File Checker) and DISM (Deployment Image Servicing and Management) Tools to repair Windows

SFC ( System File Checker)

One way to ensure you Windows files are not missing or corrupted is using a Microsoft tool called SFC ( System File Checker).

Simply open Command Prompt (run as administrator) then type the following command:

sfc /scannow

DISM (Deployment Image Servicing and Management)

DISM (Deployment Image Servicing and Management) is used for creating Windows images for deployment. Next you can use DISM to essentially check and repair Windows using Windows Update. It can also fix update failures. Simply run the this command next:

dism /online /cleanup-image /restorehealth

Links & References

Generate a QR Code using Python

If you’re a newb like me and you want to learn Python (or any programming language) you start off with learning little things like this.

What you’ll need first

Open up Visual Studio Code and select the language, which should be asking you on line 1. After you can go ahead save the file as a start to your desktop. I saved it as QR Code Generator.py

Visual Studio Code may offer to download the relevant software, so I’d click yes to that. I did however make sure to PIP (pip is the package installer for Python) was installed after by going to command prompt and typing "pip help" which if you get a response and not an error message then all is well. Also using pip install the module PyQRCode, which is what we’ll use "pip install pyqrcode".

The code

import pyqrcode
from pyqrcode import QRCode

s = "https://savas.co.uk/"

url = pyqrcode.create(s)

url.svg("qr.svg", scale = 8)

The first two lines are importing the module to work with/from. The next line is establishing what “s” string represents. After that you can see we’re bringing the ‘s’ string, which is the actual URL and using “pyqrcode” (from the module) to generate the QR code. The last line is how the QR code will be generated/outputted. In this case as a .svg file, with the size 8.

This should save to the location the file is saved at, so in my case the desktop. If you decide to save it as a .PNG file, then you’ll also need the pypng module.

Links & References

How To Install PIP to Manage Python Packages On Windows
https://phoenixnap.com/kb/install-pip-windows

SearchMyFiles Context Menu addition (for when right clicking within a folder)

As of version 3.16 of SearchMyFiles you can go to Options menu and click the option “Explorer Context Menu” which should add a context menu option to search within for when you right click on a folder.

This is just short of having it easy access, because usually I find myself already in the folder and it is a bit tedious going up and right clicking on the folder that I’d like searched.

Best option here is to add an additional context menu to appear when you just right click while you’re already in there. To do this you’ll need to edit your registry editor, or you can create a regedit script to add it automatically.

Automatic

Download and save this to your desktop:

https://share.savas.co.uk/zexO4/qEyoRIJo48.reg/raw

Run the script, which should automatically create the below registry lines for you.

Manually

Press start and type regedit.msc and hit enter. The Registry Editor should open.

Select all on the address bar, then paste:

Computer\HKEY_CLASSES_ROOT\Directory\Background\shell

On the left folder tree, right click on shell and create “Search Here (SearchMyFiles)” key. On the right side, create a string called “Icon” and set the value data to:

"C:\Program Files (x86)\NirSoft\SearchMyFiles\SearchMyFiles.exe",0

Now right click on the key “Search Here (SearchMyFiles)” you just created and add another key call it “command“. At this point it should look like this:

Now finally, within “command”, edit the default string and set the value data to:

"C:\Program Files (x86)\NirSoft\SearchMyFiles\SearchMyFiles.exe" /SingleBaseFolder "%V"

Should look like this:

You’re done!

What is SearchMyFiles

SearchMyFiles is a nice tool to search in a folder for a specific text, binary or even wildcard. Lets say you have an unorganized list of contact numbers, you’re not sure where the number for a certain person is saved and you have 100’s of sheets or documents. Using SearchMyFiles, you can basically narrow it down if you know the persons name or any string that you can match the result to.

Alternative to Windows Search For Files + Duplicates Search
https://www.nirsoft.net/utils/search_my_files.html#DownloadLinks

Removing/Uninstalling Microsoft Store packages via PowerShell

I accidently started Microsoft Photos and it suddenly decided to download and install Photos Media Engine Add-on in the background. Very odd.

Don’t get me wrong Photos a nice application for looking at your pictures, but I don’t use it and I prefer digiKam for viewing my albums if anything. Also JPEGView is much more powerful when viewing individual images.

Anyway, what convinced me to remove it entirely is constantly switching my defaults and now oddly installing the add-on in the background. Especially one that seems to share possible personal pictures over to the internet without consent, but this is just speculation.

Either way, to remove it you can simply go to Settings > Apps, then find Microsoft Photos and click on advanced options to remove it. If that’s not doing the trick, I prefer PowerShell.

Removing packages using PowerShell

Start PowerShell by right clicking on the Start icon on your taskbar. Click PowerShell (Admin) and type the following cmdlet.

get-appxpackage *Microsoft.Windows.Photos* | remove-appxpackage

You can also remove other Microsoft Store Apps this way. For example type the command below which will list all the apps installed:

get-appxpackage

Can also narrow it down to certain keywords, such as all the apps that contain “gaming” within the Name field:

get-appxpackage *gaming*

Then copy the “Name” field exactly as written and replace Microsoft.Windows.Photos from the above example. Making sure to include the *’s.

Removing Xbox/Microsoft Gaming packages

Like mentioned above, if you search *gaming* or *xbox* you’ll find some bloatware that you can remove. I like to remove these.

get-appxpackage *Microsoft.GamingServices* | remove-appxpackage
get-appxpackage *Microsoft.GamingApp* | remove-appxpackage

Removing People Bar feature packages

get-appxpackage *Microsoft.People* | remove-appxpackage
get-appxpackage *Microsoft.Windows.PeopleExperienceHost* | remove-appxpackage

Removing Windows Search package

If like me, you use an alternative search software (Everything by voidtools) you may want to get rid of the Window Search features just to avoid wasting resources and indexing. There is more to it than this so I suggest looking into how to completely turn off indexing also as I did all of that before running this cmdlet so I cannot confirm if this does all of that just yet.

get-appxpackage *Microsoft.Windows.Search* | remove-appxpackage

If you get any permission errors

If you get a 0x80073CFA error and a message saying “This app is part of Windows and cannot be uninstalled on a per-user basis…” well you can stop there as these apps may genuinely be integrated enough to cause issues if you uninstall or you can bypass it and remove it or you can look at other ways, such as using Group Policy to disable or turn them off. These blocks were introduced by Microsoft’s recent Windows 10 updates. See links below for links (some methods may be out of date).

Windows App Cert Kit

If you go to start, and type and run ‘Windows App Cert Kit’ you are able to validate every app installed, sometimes this is useful to also see what apps are actually installed in a more visual way.

Links & References

PowerToys – PowerRename

Have you ever needed to rename or modify a large number of files, say even change the dating format? I have. I used to create a batch file for this, which was a little tricky and sometimes would lead to mistakes. To avoid that, you can use PowerToys, PowerRename utility.

After you install PowerToys, you’ll automatically see the context menu PowerRename after right clicking files in a folder.

What I wanted to further add is there are more than just renaming files as per the GUI. Using the link below, look under Examples of regular expressions and you’ll find various ways you can add text to the start, end or in-between certain text strings.

PowerToys PowerRename utility for Windows | Microsoft Docs
https://docs.microsoft.com/en-us/windows/powertoys/powerrename#examples-of-regular-expressions

For example I started working on a project that I created various documents, after I noticed I needed to title the documents based on sections, however I had something like twenty files to rename. I needed to add a keyword just before the main title of the file name. Using the ^ expression, I avoided renaming twenty or so files. There is plenty more useful strings/expressions if needed.

Windows Audit Mode, Out-Of-Box Experience (OOBE)

So you have a system that you would like to reformat and install a fresh version of Windows 10/11, but it’s for someone else and you would like them to create the first user. That’s where Windows Audit Mode comes in handy.

Basically you are able to pause the personalization of the installation and get right to the desktop to do whatever you want, such as updating, activating and installing specific programs, say for example an office suite.

How?

Using your usual method of freshly installing Windows, just as it asks you to setup the system (exactly on region selection step) press CTRL+SHIFT+F3 and it should boot directly to desktop. It should also add a dialog box to allow you to select to shutdown once you’re all done.

This method is also part of the way of creating a Windows image that can be used to install on multiple machines, but that warrants a different post.

References:

Boot Windows to Audit Mode or OOBE | Microsoft Docs
https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/boot-windows-to-audit-mode-or-oobe?view=windows-11

Customize Windows in Audit Mode | Microsoft Docs
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-7/dd799305(v=ws.10)?redirectedfrom=MSDN