Tag Archives: Windows

Limit OneDrive and Windows Update bandwidth hogging

Have a really horrible internet connection currently, and whenever Windows Update and OneDrive starts downloading stuff, I can basically not do anything else because they’re hogging all my bandwidth.

BITS

  1. Open Local Group Policy Editor.
  2. Go to Computer Configuration / Administrative Templates / Network / Background Intelligent Transfer Service (BITS).
  3. Enable Limit the maximum network bandwidth for BITS background transfers, and optionally adjust the rate and hours.
  4. Reboot, possibly?

Source: SuperUser.com

QoS Policy

  1. Open Local Group Policy Editor.
  2. Go to User Configuration / Windows Settings / Policy-based QoS.
  3. Right-click and hit Create new policy.
  4. Set DSCP Value to 1 and/or Outbound Throttle Rate to something appropriate.
  5. Set QoS policy to apply to applications with executable name onedrive.exe (or skydrive.exe, check your process list).
  6. Reboot, possibly?

Source: Don’t remember…

Shortcut to Resource Monitor in Windows 8.1

In Windows 7 there was a shortcut to Resource Monitor in the start menu, which meant you could launch it quickly through search. In Windows 8.1 this didn’t seem to be the case for some reason. Might have missed something… but found the shortcut for it on a Windows Server 2012 installation, and it worked just as nicely in Windows 8.1. So, note to self:

%windir%\system32\perfmon.exe /res

So after quickly making a shortcut to that in my menu, I’m once again back to launching it directly rather than through the button in Task Manager.

Change license key of Windows Server

Needed to install two Windows Server 2012 R2 instances today, but didn’t have a valid production license key yet and didn’t seem like there was a way to skip the key in the setup. Found you can remove a license key using a command, so worked around it using a temporary dev key from MSDN for the installation and then removed that key afterwards. For future self-reference, here’s how…

  1. Open elevated command prompt
  2. To remove key
    > slmgr -upk
  3. TO add new one
    > slmgr -ipk NEW-KEY or use regular activation process

Touching files in Windows

In Unix you have the touch command which you can use to update a files timestamp. No such thing in Windows. But instead, apparently, one can do this:

REM Updates the timestamp of the file
copy /b filename.ext +,,

REM Creates a new empty file
echo $null >> filename.ext

If you need it more than seldom there are also some more tricks in the StackOverflow sources below.

Sources:
Windows equivalent of the Linux command ‘touch’?
Equivalent of Linux `touch` to create an empty file with PowerShell?