Running a command as Admin

Or how to run a command with elevated privileges on Windows.

Tried to run a chkdsk this morning via a Windows account that wasn’t in the Administrators group and found out that I couldn’t do so. This was when I chanced, by searching t’internet, upon the Control (Ctrl), Shift and Enter magic key combination, never heard of this! Using these keys, instead of just Enter, runs the selected command with Admin privileges, fab!

Exact filename searching on Windows 10

Trying to find a file by filename and file type and getting matches that include the filename and type as well? Windows 10 search seems to have taken a step backwards by being “helpful” in searching file contents and filenames, or types, when you use the search box.

Then you need to use the “name” keyword in the quick search box. The name option has two ways of being used:

name: web.config” This does what you don’t want! i.e. it returns files that contain the words “web” and “config”, but it doesn’t return files that have file contents including those words.

name:= web.config” This command will return only matches for “web.config” nothing else.

Windows 10 restarts after shutdown

Currently have an issue where most of the time shutting down the PC just performs a restart, annoying to say the least, been going on since late 2018.
I’m currently trying out this solution to see if it can be resolved.

6-Dec-19: A couple of test shutdowns later and it seems to be working, one to monitor.

Windows – using a local account with the free Windows 10 upgrade?

If so then, for the future, to enable you re-install Windows 10 you will need, before the free offer expires, to register your devices and their Digital Licences with your Microsoft Account.

If you already log into Windows 10 using your Microsoft Account then this has already happened and fresh installs will use that information when it comes to activating your Windows installation.
But if you haven’t then you need to do so ASAP, the free upgrade ends on the 29th July, 2016.

So if you use a local account to login then you need to go to Settings -> Update & security -> Activation and sign in with your Microsoft Account to associate that device and the Digital Licence

If you then want to auto login to Windows, without entering your password, then do the following:

  1. Press the Windows key & R, to bring up the run dialogue
  2. Enter netplwiz, and press enter
  3. Uncheck the “Users must enter a user name and password to use this computer” check box
  4. Click on “Apply”
  5. Enter your Windows account password, ignore the local user name displayed and do not enter the old password
  6. Reboot the PC, and all should be done

Removing the hyberfil.sys in Windows 7/10

Turned off Windows hibernation mode but the file is still left behind? The following link shows how to remove the very large file.
Link to the article on Help Desk Geek here.

Link: https://helpdeskgeek.com/windows-10/what-is-hiberfil-sys-and-how-to-delete-it-in-windows-10/

TL;DR open an adminstator console and run the following command:

powercfg -h off