Windows Technical

Free language switcher and translator

https://github.com/BladeMight/Mahou

==============================

https://www.bleepingcomputer.com/forums/t/677938/sihostexe-and-explorerexe-unknown-hard-error/

 

==========================================

To lock your workstation run a batch file containing:

C:\Windows\System32\rundll32.exe user32.dll,LockWorkStation

 
==================================================
Windows 10
To change the colors of
create a shortcut to:
C:\Windows\System32\rundll32.exe shell32.dll,Control_RunDLL desk.cpl,Advanced,@Advanced
To change the font sizes:
—————————-
To fix start menu problem:
Type the following commands at the CMD prompt and hit on Enter Key:
powershell sfc /scannow dism /online /cleanup-image /restorehealth
7. If the above didn’t resolve the issues. Then perform the below methods.
8. If the above commands both completed and show no remaining issues, run these commands: powershell Get-AppXPackage -AllUsers |Where-Object {$_.InstallLocation -like “*SystemApps*”} | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”} R
  1. Press Windows Key + R on your keyboard.
  2. Key in PowerShell and hit Enter.
  3. Right click on the PowerShell icon on the taskbar and select Run as Administrator.
  4. Now paste the following command in the Administrator: Windows PowerShell window and press Enter key: Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
  5. Wait for PowerShell to execute and complete the command. Ignore the few errors (in red color) that may pop up.
  6. When it finishes, try hitting Start and hopefully it’ll start working.
 
===================================================================

Change the width of scroll bars

: HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics
Change to -500 to double the size
Change to -500 to double the size
——————————————–
 
 
 
To speedup:
Disable these:
and
WIN+R keys together to launch RUN dialog box and type services.msc
Following are some services which can be safely set to MANUAL:

  • Connected User Experiences and Telemetry (To turn off Telemetry and Data Collection)
  • Diagnostic Policy Service
  • Diagnostic Tracking Service (To turn off Telemetry and Data Collection)
  • dmwappushsvc (To turn off Telemetry and Data Collection)
  • Downloaded Maps Manager (If you don’t use Maps app)
  • IP Helper (If you don’t use IPv6 connection)
  • Program Compatibility Assistant Service
  • Remote Registry (You can set it to DISABLED for Security purposes)
  • Secondary Logon
  • Security Center
  • Touch Keyboard and Handwriting Panel Service (If you don’t want to use touch keyboard and handwriting features)
  • Windows Defender Service (If you don’t use Windows Defender program)
  • Windows Error Reporting Service
  • Windows Image Acquisition (WIA) (If you don’t have a scanner)
  • Windows Search (If you don’t use Windows Search feature frequently)
————————————
To get rid of unwanted new services like Cortana
Create and run a     k.bat file with this content:
 
taskkill /f /im SearchUI.exe
taskkill /f /im RuntimeBroker.exe
mkdir %windir%\SystemApps\NoCortana
move %windir%\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy %windir%\SystemApps\NoCortana
————————————————————-
or:
right click on the in task manager.
open their location.
prepare your rename action.
kill the service task manager and immediately rename.
Open Task Manager and have it show More details. Right click on Cortana and select Open file location.
Task Manager
Now find the Cortana folder, right click it, and select Rename. I would recommend just adding “.bak” to the end of the folder name so you can find it easily if you want to restore it back to it’s original status. Rename
If you attempt to rename, it will tell you that the folder is in use. Folder In Use
This is when you want to go back to Task Manager, right click on Cortana, and select End task. End task
Right after the task ends, switch back to the Folder In Use window and click Try Again. The folder should be renamed and the Cortana task will not start again.
 
 
=======================================================

Clone: Cloning Hard Disk Drives SSDs:

I suggest using AOMEI Backupper Standard Free,

it works even if the source is bigger than dist but dist has enough space

Before cloning make sure that disk type of the empty destination disk is the same as the source:

GPT-GPT

MBR-MBR

 

Unlike Macrium reflect that stops at the first readdisk error it can be used on a computer where the source and destination are connected as peripherals and copies everything including OS
The professional version is expensive ($50) but might be the sames as others when on sale I saw one as:
AOMEI Backupper Professional + Free Lifetime Upgrade – Lifetime Free Upgrades at CAD 53

https://www.ubackup.com/standard-upgrade.html

WinToHDD pro is USD30
 
Easeus partition master can be bought at CAD30 when on sale
 
Clonezilla is a partition and disk imaging/cloning program that boots the computer to linux then many options are available.

no bootable device can be found after disk cloning
 

 Create EFI System Partition (ESP) to Make a GPT bootable disk

Unified Extensible Firmware Interface UEFI boots from an EFI system partition on GPT disk. 
 
– Boot the computer using the Windows  installation media.
– bring up the command prompt.
– Run the following commands at the command prompt.

diskpart
list disk
select disk 0 Note: Select the disk where you want to add the EFI System partition.
list partition

 
Only IF YOU NEED SPACE TO CREATE AND EFI PARTITION
select partition 1     Note: Select the  partition (# number) or your data partition you want to shrink
shrink desired=900    Note: Shrinks the selected volume to desiredsize in megabytes
only if efi partition does not exist on the cloned destination
create partition efi size=100
format quick fs=fat32

assign letter=k

list partition
list volume Note: Note the volume letter where the Windows OS is installed.
exit

bcdboot D:\windows /s k:
Note: Replace “D” with the volume letter of the Windows OS partition, k: is your efi partition

BCDBoot copies the boot files from the Windows partition to the EFI System partition and creates the BCD store in the same partition.

Boot Configuration Data (BCD) is a firmware-independent database for boot-time configuration data. It is used by Microsoft’s new Windows Boot Manager and replaces the boot. ini that was used by NTLDR.
For UEFI boot, the file is located at /EFI/Microsoft/Boot/BCD on the EFI System Partition.
 
 
=================================================

AutoHotkey

This application allows you to create hotkeys for both keyboard and mouse. In addition, you can also remap keys if you want to.

AutoHotkey is an open-source scripting language for Windows
Here is the example I created to search selected text in Farsi dic and wikipedia

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

 

^#f:: ; CTRL+win+f hotkey
;Send, {Ctrl down}c{Ctrl up} ; Copies the selected text. ^c could be used as well, but this method is more secure.
;clipboard := clipboard
;MsgBox, %clipboard%
clipboard := “” ; Start off empty to allow ClipWait to detect when the text has arrived.
Send {Ctrl down}c{Ctrl up}
ClipWait ; Wait for the clipboard to contain text.
;MsgBox Control-C copied the following contents to the clipboard:`n`n%clipboard%
Run https://abadis.ir/?lntype=entofa&word=%clipboard%
return

^#w:: ; CTRL+win+w hotkey
;Send, {Ctrl down}c{Ctrl up} ; Copies the selected text. ^c could be used as well, but this method is more secure.
;clipboard := clipboard
;MsgBox, %clipboard%
clipboard := “” ; Start off empty to allow ClipWait to detect when the text has arrived.
Send {Ctrl down}c{Ctrl up}
ClipWait ; Wait for the clipboard to contain text.
;MsgBox Control-C copied the following contents to the clipboard:`n`n%clipboard%
Run https://en.wikipedia.org/wiki/%clipboard%
return

 

^#t:: ; CTRL+win+w hotkey
;Send, {Ctrl down}c{Ctrl up} ; Copies the selected text. ^c could be used as well, but this method is more secure.
;clipboard := clipboard
;MsgBox, %clipboard%
clipboard := “” ; Start off empty to allow ClipWait to detect when the text has arrived.
Send {Ctrl down}c{Ctrl up}
ClipWait ; Wait for the clipboard to contain text.
;MsgBox Control-C copied the following contents to the clipboard:`n`n%clipboard%
Run https://translate.google.com/?hl=fa&sl=auto&tl=fa&text=%clipboard%&op=translate
return

 

===========================================================================