Windows Performance through VSS Cleanup and Preassociation
article #1004, updated 2357 days ago

These steps can improve Windows performance a whole lot. It works because a vast array of different applications and services in Windows utilize VSS on their backends. All of the below, except for one server-only step sometimes needed, is encapsulated in PowerShell script (3.0 and up) OVSS.ps1 , part of the windows-tools project.

To do the VSS optimization interactively, start an administrative CMD, and then…

Step 1:

vssadmin Delete Shadows /All

If there are orphan shadows, you will be asked whether you want to delete them. If there are and you delete them, you will see immediate performance benefit. Reportedly, Windows autodeletes them only after there are 64 per volume. We prefer to see zero! These build up as a result of bad shutdowns, drive and drive controller issues, and insufficient RAID resources to serve demands.

Step 2:

We now improve any existing preassociation of disk space for VSS. On some machines, this will increase performance very impressively, immediately. In general it keeps them smooth and stable and prevents hesitations. This does not reserve or take up the space, it just “associates” it, makes it ready for use, so that whenever Windows wants to do any of the bajillions of things it does with VSS, things ranging from tiny to enormous, it can skip that step.

It is worthwhile to know that C: on all workstation installs and many server installs, has a minimal preassociation already set up. And we should check to see if it has been done. So the first step is to check it. Do the below:

vssadmin list shadowstorage

If it gives you something like this:

vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
(C) Copyright 2001-2013 Microsoft Corp.

Shadow Copy Storage association
   For volume: (\\?\Volume{84214e3c-0000-0000-0000-100000000000}\)\\?\Volume{84214e3c-0000-0000-0000-100000000000}\
   Shadow Copy Storage volume: (\\?\Volume{84214e3c-0000-0000-0000-100000000000}\)\\?\Volume{84214e3c-0000-0000-0000-100000000000}\
   Used Shadow Copy Storage space: 0 bytes (0%)
   Allocated Shadow Copy Storage space: 0 bytes (0%)
   Maximum Shadow Copy Storage space: 100 MB (20%)

Shadow Copy Storage association
   For volume: (C:)\\?\Volume{84214e3c-0000-0000-0000-501f00000000}\
   Shadow Copy Storage volume: (C:)\\?\Volume{84214e3c-0000-0000-0000-501f00000000}\
   Used Shadow Copy Storage space: 0 bytes (0%)
   Allocated Shadow Copy Storage space: 0 bytes (0%)
   Maximum Shadow Copy Storage space: 373 GB (20%)

where “Maximum Shadow Copy Storage space: “ for each volume is set to 20%, the rest has been done, you are fully optimized. Otherwise, if this is a desktop OS, we resize the existing association for each volume. For volumes without letters, and to pull a list of all VSS-ready volumes, see the note towards the end of this document.

So for the C drive, do the below in administrative CMD:

vssadmin Resize ShadowStorage /For=C: /On=C: /MaxSize=20%

Do repeat for any other active hard drive partitions, D:, E:, et cetera. Don’t worry if you get an error, the next step covers it.

Step 3:

It may well throw an error, saying there is no such association. If this is a workstation OS, vssadmin lacks two commands which we need for any further steps, so in that case we are done. But on any Windows Server OS from 2008R2, if the error was thrown, we do an Add:

vssadmin Add ShadowStorage /For=E: /On=E: /MaxSize=20%

Step 4:

And finally (server only), one more thing which can help if, for instance, C: is almost full but E: has plenty of space:

vssadmin Delete ShadowStorage /For=C: /On=C:
vssadmin Add ShadowStorage /For=C: /On=E: /MaxSize=20%

This maximizes overall performance, and also prevents possible backup failures and other issues due to insufficient disk space on C:.

Note:

On some machines, the volumes do not have letters. For these you will need to use the volume GUID path. In vssadmin list shadowstorage, they look like this:

Shadow Copy Storage association
   For volume: (\\?\Volume{99ac05c7-c06b-11e0-b883-806e6f6e6963}\)\\?\Volume{99a
c05c7-c06b-11e0-b883-806e6f6e6963}\
   Shadow Copy Storage volume: (\\?\Volume{99ac05c7-c06b-11e0-b883-806e6f6e6963}
\)\\?\Volume{99ac05c7-c06b-11e0-b883-806e6f6e6963}\
   Used Shadow Copy Storage space: 0 B (0%)
   Allocated Shadow Copy Storage space: 0 B (0%)
   Maximum Shadow Copy Storage space: 32 MB (32%)

For such a situation, substitute \\?\Volume{99ac05c8-c06b-11e0-b883-806e6f6e6963} (the whole long string) for C: in the above command lines.

PowerShell will give GUI paths for all volumes thusly:

GWMI -namespace root\cimv2 -class win32_volume

References are here:

https://technet.microsoft.com/en-us/library/cc788050.aspx

https://www.storagecraft.com/support/kb/article/289

http://backupchain.com/i/how-to-delete-all-vss-shadows-and-orphaned-shadows

http://www.tech-no.org/?p=898

Categories:      

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

Optimize Service Work Items and Additional/Delayed Worker Threads
article #1084, updated 2357 days ago

OWTAS sets a number of additional critical and delayed worker threads, plus service work items. The changes are autocalculated according to a combination of RAM and OS bit-width (32 vs. 64). Performance will increase, more so with more RAM. Available as VBS and as PowerShell 3 and up. Future development will be in PowerShell, as part of the windows-tools project.

The tool is designed for Windows 10 down through XP. As of 2017-10-10, it is self-elevating if run non-administratively.

Categories:      

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

Laptops for Missionaries
article #1194, updated 2371 days ago

Lately I (Jonathan) have been taking old laptops no longer worthwhile for Microsoft Windows, and setting them up for some friends of mine who travel to the Solomon Islands and Papua New Guinea and other places. They go bearing gifts, digging freshwater wells for people suffering the lack quite a lot; and they go bearing the joy of the Lord.

So far Linux Lite has been the best of several distros for the purpose. It is extremely reliable and hardware agnostic, installs quite rapidly, and has the available breadth of Ubuntu, including helpful language support, while being a very nicely lightweight OS.

Here is my install outline at this writing.

  • 32-bit DVD
  • User / user
  • Welcome:
    • Install updates
    • Install drivers
    • Install language support
      • Indonesian
      • Korean
      • Malay
  • Menu / System / Lite Software
    • Restricted Extras
    • Chromium Web Browser
  • Menu / System / Install/Remove Software
    • Xiphos
  • Xiphos Modules
    • Biblical Texts
      • English
        • ESV2011
        • ISV
        • KJVA
        • WEB
      • Central Sama
      • Chamoru
      • Kpala
      • Pohnpeian
      • Tausug
      • Uma
      • Wikang Tagalog
      • 10th from bottom: Malayam
      • Last
        • KorHKJV
        • KorRV
    • Dictionaries / English
      • AbbottSmithStrongs
      • ISBE
      • StrongsGreek
      • StrongsHebrew
      • WebstersDict
    • Commentaries / English
      • Geneva
      • TSK
  • Xiphos Index, all modules
  • Icons on desktop:
    • Firefox
    • Chromium Browser
    • Xiphos
    • Writer
    • Home Folder

Categories:      

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

The QuickBooks Install Diagnostic Tool
article #1193, updated 2372 days ago

This one reinstalls, repairs, and refreshes a wide variety of bits which QuickBooks uses. Helps with both installs and malfunctions.

community.intuit.com/articles/1501884-fix-common-quickbooks-desktop-installation-errors-with-the-qbinstall-tool

Categories:      

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

Connectwise Automate (formerly Labtech) Docs, esp. for Scripting
article #1192, updated 2372 days ago

Connectwise bought Labtech, and renamed it Automate. The documentation tree has been moved here:

docs.connectwise.com/ConnectWise_Automate

and documentation for scripting now starts here:

docs.connectwise.com/ConnectWise_Automate/ConnectWise_Automate_Documentation/070/240

Categories:      

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

WordPress migration
article #1190, updated 2373 days ago

This tool:

wordpress.org/plugins/duplicator/

did the job very well.

Categories:      

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

Open source LAN-local search
article #1189, updated 2380 days ago

There are several tools fitting this general description, but this writer has only found one turnkey installable. This is Yacy:

yacy.net

Very fast, quite straightforward to set up and configure (though you’ll learn a thing or two if you’ve never thought about search very much!), almost not at all counterintuitive. It can be easily set up as either a LAN-local search server or part of its distributed WWW network.

There is a runner up, Open Search Server:

www.opensearchserver.com

If its documentation were remotely adequate, it might be comparable, but sadly, not.

Categories:      

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

Run Powershell commands in Labtech/Automate CMD
article #1188, updated 2382 days ago

If you place a tilde (~) before the command you enter, no space after, your command will be run within Powershell. For instance:

~dir

Categories:      

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

Initiate (force) Archiving and Retention in Exchange Online / Office 365
article #1187, updated 2387 days ago

Archiving and retention deletions, are only executed once every seven days in Exchange Online, unless a manual execute is performed. This is done thusly:

  1. Connect Windows PowerShell to the Office 365 account.
  2. Start-ManagedFolderAssistant -Identity username

where username is appropriate for the mailbox in study.

Categories:      

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

Windows Update, some settings are managed by your system administrator
article #1186, updated 2389 days ago

If Windows Updates says it’s controlled by system administration and not you, check all three of these:

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\WindowsUpdate
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\WindowsUpdate 
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer

You’ll probably see a DWORD preventing access. Delete it and try again.

Categories: