Just a note to self… and you’ll need an elevated command prompt to do this…
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
- Open Local Group Policy Editor.
- Go to Computer Configuration / Administrative Templates / Network / Background Intelligent Transfer Service (BITS).
- Enable Limit the maximum network bandwidth for BITS background transfers, and optionally adjust the rate and hours.
- Reboot, possibly?
Source: SuperUser.com
QoS Policy
- Open Local Group Policy Editor.
- Go to User Configuration / Windows Settings / Policy-based QoS.
- Right-click and hit Create new policy.
- Set DSCP Value to 1 and/or Outbound Throttle Rate to something appropriate.
- Set QoS policy to apply to applications with executable name onedrive.exe (or skydrive.exe, check your process list).
- Reboot, possibly?
Source: Don’t remember…
Fixing corrupt Windows files
Shut down Windows through Remote Desktop
Needed to gracefully shut down a Windows 7 virtual machine I was connected to through Remote Desktop today and found there was no Shut Down option in the start menu. Apparently by design, generally a good thing, and luckily easy enough to get around:
- Press Ctrl + Alt + End.
- Use the shut down button there instead.
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:
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…
- Open elevated command prompt
- To remove key
> slmgr -upk
- To add new one
> slmgr -ipk NEW-KEY
or use regular activation process
How to use SourceTree embedded Git/Mercurial on command line
SourceTree comes with its own embedded Git and Mercurial. These are not available outside on regular command lines by default, but seems you can make them so by adding the following two paths to your %PATH%
variable.
%USERPROFILE%\AppData\Local\Atlassian\SourceTree\git_local\bin
%USERPROFILE%\AppData\Local\Atlassian\SourceTree\hg_local