To repair Bootloader, you should prepare a Windows 10 installation disc.

Step 1. Boot from Windows 10 installation disc and press any key to continue.

Step 3. Type diskpart in the command prompt.

Step 4. Type the following command and press Enter after each command.

•list disk

•sel disk 0 (where 0 stands for the boot drive)

•list vol (note which volume is the EFI partition, mine is 4)

•sel vol 4

•assign letter=N:

•exit

Step 5. Type N: (the drive letter you just assigned and hit Enter.)

Step 6. After you have assigned a drive letter Using Diskpart, you can format the EFI partition using the following command.

•format N: /FS:FAT32

Step 7. Now, type bcdboot C:\windows /s N: /f UEFI and hit Enter. This command will repair your Bootloader.

Then try the bootrec /fixboot command again, fixboot access denied in Windows 10 could be solved.

## Disable AntiSpyware windows 10/11

REG ADD “hklm\software\policies\microsoft\windows defender” /v DisableAntiSpyware /t REG_DWORD /d 1 /f

## copy files recursively cmd

S:\lim2021fwd>for /r %i in (“P207.mdb”) do xcopy /Y “%i” s:\someplace

If you are using this in a batchfile you should double the % like this:

for /r %%i in (foo???.txt) do xcopy /Y "%%i" g:\someplace

## New Laptops Intel SST Audio

Once done proceed with these steps.
-Press Windows key + X
-Go to Device Manager
-Expand the Sound and Video Game Controller
-Look for Audio driver that was installed
-Right click and Update
-Look for “Browse my computer for driver
-Let me pick drivers available drivers
-Choose HD Audio.

Why do I receive the error “Insufficient system resources exist to complete the requested service”

In Registry Editor, browse to HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters\ and add the following DWORD value:  AsynchronousCreditsSet the Data to be a Decimal value of 1024 The default is 512. This parameter limits the number of concurrent asynchronous SMB commands that are allowed on a single connection. Some file clients such as IIS servers require a large amount of concurrency, with file change notification requests in particular. The value of this entry can be increased to support these clients.

## Windows Ultimate Performance Plan

To enable Ultimate Performance mode in Windows 10, follow these steps:

1. Search for Command Prompt in the Start menu.
2. Right-click the Command Prompt result.
4. In Command Prompt window, type the following command:
5. powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61
6. Press Enter.

## Windows10/11 Losing Mapped Drives (Error59 etc)

### Disable Fast-boot through the Control Panel

1. Press the Windows key on your keyboard, type in Power Options, and then press Enter .
2. From the left menu, select Choose what the power buttons do.
3. Under the Shutdown settings section, uncheck the box next to Turn on fast startup (recommended).
4. Click the Save changes button.

### Turn off the auto-disconnect feature

Windows will drop idle connections after a specified time-out period, I think it is 15 minutes by default, to prevent wasting resources. You can, however, easily re-establish the connection manually.

If you wish to turn off the auto-disconnect feature, type the following in an elevated command prompt and hit Enter.

net config server /autodisconnect:-1

### Turn off auto-tuning network

If it occurs while copying large files over network drives, it could be due to the auto-tuning network.

To turn it off, open an elevated command prompt windows, type the following, and hit Enter:

netsh int tcp set global autotuninglevel=disabled

Go to Device Manager, network adapters and find the ethernet one.

– right click for properties – advanced

Disable Energy efficient ethernet (and or green energy) and Wake on magic packet.

## Registry Settings

These registry values must be created on the SMB gateway, which is specified in the repository settings as “Gateway server”. If the gateway is set to “automatic”, add these registry values to all Windows servers managed by Veeam Backup & Replication.

• NetUseShareAccess
For Veeam B&R 8.0.0.917 or later, the following registry value allows Data Movers to open backup files by a resilient method similar to the Windows net use command.
Key: HKLM\SOFTWARE\Veeam\Veeam Backup and Replication\
DWORD: NetUseShareAccess
Value: 1
Note: If credentials are required, specify Domain\User or Host\User in the repository settings. .\User credentials are not supported with NetUseShareAccess. For example, specify “NAS-01\Admin” instead of “.\Admin”.

• SessTimeout
This increases the amount of time the Windows SMB client will wait for a response from an SMB server before it aborts the connection. The default timeout is one minute.
Note: Reboot Required
Key: HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters\
DWORD: SessTimeout
Value: 600
Note:This is a value in seconds. Try a value of 600 decimal (10 minutes).

• TcpMaxDataRetransmissions
This increases the number of times the Windows TCP implementation will retransmit a data segment before it aborts the connection.
Note: Reboot Required
Key: HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
DWORD: TcpMaxDataRetransmissions
Value: 10 (Default: 5)
Prerequisites:    Ensure the the target machine has PowerShell Remoting Enabled (as it's Disabled by default)PS C:\Users\kimconnect\Desktop\Notes> Enable-PSRemoting -ForceWinRM has been updated to receive requests.WinRM service type changed successfully.WinRM service started.WinRM has been updated for remote management.WinRM firewall exception enabled.
Alternative method:a. Get PSExec: https://docs.microsoft.com/en-us/sysinternals/downloads/psexec > extract copy contents into %windir% or "C:\Windows"b. Run this command:psexec \\hdqfswp001 reg add “HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters” /v SessTimeout /t REG_DWORD /d 3600 /f

Add this registry key to increase File Session Timeout:$serverName="FILESERVER01"Invoke-Command -ComputerName$serverName -ScriptBlock {reg add “HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters” /v SessTimeout /t REG_DWORD /d 3600 /f }

#### To Reset TCP / IP Stack in Windows 10.

1. Click the Start button in the bottom left corner of the screen.

2. Type Command Prompt in the Search bar. Then right-click on the Command Prompt icon, and select Run as administrator.

3. If prompted, select Yes to allow changes to be made to computer.

4. Type in netsh int ip reset, and press Enter.

## posix rename extention recursively

find . -name “*.jp” | while read i; do mv “$i” “${i%.jp}.jpg”; done

## Automount VHD Windows10

Note: This method utilizes PowerShell commands which work only when the Hyper-V feature is enabled. You need to activate Hyper-V on your PC to proceed.

## To Automatically Mount VHD or VHDX File on Startup in Windows 10,

2. Click the Task Scheduler icon.
4. In Create Task dialog, fill in the Name box some meaningful text like “Automount of my VHD Drive”.
5. Set the options as follows:
– Configure for Windows 10.
– Run whether user is logged on or not
– Run with highest privileges box
6. Switch to the Triggers tab and click on the New… button.
7. Set the Begin the task option to At startup.
8. Select to the Actions tab, and click on the New button.
9. In the Program/script text box type powershell.exe.
10. Type the following in the Add arguments text box: Mount-VHD -Path "Full\path\to\your\VHD or VHDX\file". Change the Full\path\to\your\VHD or VHDX\file portion  to the actual full path of the VHD/VHDX file you want to have automatically mounted at startup.
11. Switch to the Conditions tab and disable the option Start the task only if the computer is on AC power.
12. Click on the OK button to create the task.

You are done!

### Notes:

• If your VHD file is encrypted with BitLocker, you may need to add a delay to make a credential prompt appear after you sign in to Windows. Enable the Delay task for option on the New Trigger page, or edit the existing trigger. 30 Seconds should be enough.
• You can disable this task to temporarily stop mounting your VHD/VHDX file at startup. You can re-enable it when needed.

That’s it.

## Solve Windows 10 does not automount USB Drives anymore

My Windows 10 machine started behaving weirdly and did not mount any USB Drives / Harddrives and such anymore. I had to open the Disk Management Tool and mount them manually, which is quite inconvenient. So I was looking up the error and came across the nearly perfect solution at http://woshub.com/windows-doesnt-assign-letters-to-external-and-usb-flash-drives/ . However, I did change it a bit so that the VDS is changed to automatically start on boot via the CLI :).

Oh, and yes, you need to do this from an admin cmd 😉

First thing to check if something is wrong, is if your VDS (Virtual Disk Service) works. If not, set it to start on boot and start the service:

sc query vds
sc config vds start= auto
sc start vds
sc query vds

If automounting still not works, it could be deactivated. Start diskpart, watch the status of automount and if it is disabled, activate it.

diskpart
DISKPART> automount
DISKPART> automount enable
DISKPART> exit