Mike Hunsinger, who has been addressing Windows Update issues with considerable success over time, recently provided for the following writeup. It is useful when:
- Windows is running slowly or generally unreliably, needs rebooted frequently.
- The Windows Update service spikes CPU usage over 70% when it runs.
- When you check for new updates, it just hangs endlessly on “checking for updates”.
- The last successful update was years ago.
- Clean up the system drive.
- Before Server 2012, use Disk Cleanup (cleanmgr.exe). Be sure to check “service pack backup files” and “windows update”, if the version of Windows you are running gives these as options.
- Server 2012 and after, use DISM (dism.exe). Run this in administrative CMD:
dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
If it reports “The operation could not be completed due to pending operations.”, you have just been told that a server reboot is necessary and you’ll need to do this again afterwards. After it succeeds, do this:
dism.exe /online /Cleanup-Image /SPSuperseded
- Run the following as a .bat file to reset Windows Updates caches and working spaces, rereg some dll’s, It works on all versions of windows, may skip some dll’s depending on the OS version:
echo Simple Script to Reset / Clear Windows Update
attrib -h -r -s %windir%\system32\catroot2
attrib -h -r -s %windir%\system32\catroot2\*.*
net stop wuauserv
net stop CryptSvc
net stop BITS
ren %windir%\system32\catroot2 catroot2.old
ren %windir%\SoftwareDistribution sold.old
ren "%ALLUSERSPROFILE%\application data\Microsoft\Network\downloader" downloader.old
regsvr32 /s wuaueng.dll
regsvr32 /s wuaueng1.dll
regsvr32 /s atl.dll
regsvr32 /s wups.dll
regsvr32 /s wups2.dll
regsvr32 /s wuweb.dll
regsvr32 /s wucltui.dll
net Start BITS
net start CryptSvc
net start wuauserv
echo Task completed successfully...
- Install .net 4.5.1 from here: https://www.microsoft.com/en-us/download/details.aspx?id=40779
- If it says that an =/> version is already installed, run the .net repair tool from here: https://support.microsoft.com/en-us/kb/2698555
- Download the latest version of Windows Update from here: https://support.microsoft.com/en-us/kb/949104
- Next update IE or Edge to the latest version using a redist, here’s the one for EI11, https://support.microsoft.com/en-us/help/18520/download-internet-explorer-11-offline-installer
- Open IE11 or Edge, add update.microsoft.com to trusted sites, popup blocker exceptions, privacy exceptions.
- Finally, try re-running Windows Update. The “Checking for Updates” may run quickly, or it may take 4-6 hours to populate results.
We have had the best results by updating in batches after this, first any critical SP’s or major Platform Updates. Then security, Office and the others as deemed necessary. Once you’ve completed a couple rounds of updates, the difference should start exhibiting itself with regards to the symptoms named.
If your software is all new, let’s say 2013 and after, it probably makes sense to disable 8.3 filename generation, for a nice kick of speed.
To do it once for all drives, just do this:
fsutil behavior set Disable8dot3 1
If you want to do it for one select drive, say E:, first do a registry edit in
you’ll want to change
NtfsDisable8dot3NameCreation to 2. Then you will need to reboot, and in an administrative command prompt:
fsutil behavior set E: 1
and reboot again, and it’s done.
There is a mixture of public reference statements as to whether or not Previous Versions, also called Versioning, is enabled in OneDrive for Business, which is really a second frontend for Sharepoint. Recently a new installation was studied and there was a mix of automatic activations of Versioning for different libraries and lists made, without clear logic behind. Versioning is essential as a backup method for many related uses, so it becomes essential to know how to turn it on automatically for all libraries and lists of an entire Office 365 tenant. And right now, this appears to be the only published way, a contributed script in the Office 365 Gallery:
In order to use it, one first installs:
Then log into the Office 365 tenant as an administrator, and click Sharepoint. You’ll be looking at the page for a URL something like this:
Now run PowerShell as administrator, take the “partofmydomain” chunk of text from your browser, and form the SharePoint admin URL. Don’t browse to it, but you’ll need it shortly:
Now you’ll need the script from the web page referenced at the top of this article, saved to a location to which you can CD in PowerShell. Get to that location in the shell, and run ‘notepad versioning.ps1’, towards the end you’ll see two path lines:
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
The 15’s need to be changed to 16’s to match the current version of the Sharepoint installables above. Once you have this, run:
in PowerShell if you haven’t already, and then:
It will ask you for the URL; give it the one you constructed above. Then it will ask you for admin credentials. Once it has them, it will run through every list and library, and if Versioning can be turned on, it will be.
By default, at least sometimes, Microsoft OneDrive does not have any backup mechanism in place at all. There is a Previous Versions system however which can be turned on and off:
Here’s a great set of steps for these:
The short of it is:
- Bring up the Syncronization Service Manager (“Synchronization Service” in Windows search),
- Click on Connectors,
- Click on “Active Directory Domain Services”,
- Click Run in the right pane, choose Full Synchronization, click OK, and wait for completion to be reported (it’s fairly obvious),
- Click Run in the right pane, choose Full Import, click OK, and wait for completion to be reported,
- Click Windows Azure Active Directory,
- and do the same two Runs as for the other line item.
Prioritizing certain kinds of data, can help a lot in general on Linux. Here’s the FireQOS configuration I just set up on this 802.11g-wireless laptop:
interface $DEVICE world-in input rate $INPUT_SPEED
interface $DEVICE world-out output rate $OUTPUT_SPEED
interface $DEVICE world-in input rate $INPUT_SPEED $LINKTYPE balanced
class priority commit 10%
match tcp port 22,3389,53,444 # SSH, RDP, DNS, SSL VPN
match proto GRE
match tcp syn
match tcp ack
interface $DEVICE world-out output rate $OUTPUT_SPEED $LINKTYPE balanced
class priority commit 10%
match tcp port 22,3389,53,444
match proto GRE
match tcp syn
match tcp ack
Google stores all of your historical Google searches, YouTube video searches and views, and lots of other interesting things. Here’s a new tool to control this.
Here’s a tool. Run this once as administrator on the drive to check, wait 20 seconds and do it again, and if it says you’re good, you are.