Category: Windows OS-Level Issues

FSUTIL Tweaks for NTFS Performance and Reliability
article #1145, updated 2491 days ago

FSUTIL is a general-purpose NTFS tweak tool. Here is a set of changes which appears to be helpful in general towards performance:

fsutil 8dot3name set 1
fsutil behavior set memoryusage 2
fsutil behavior set disablelastaccess 1
fsutil resource setavailable C:\
fsutil resource setlog shrink 10 C:\

In order:

  • Turns off 8dot3name creation. Does not invalidate existing 8dot3names.
  • Increases RAM cache devoted to NTFS.
  • Turns off “last access” timestamp storage for files. Disindicated for some older backup systems.
  • Makes the filesystem more focussed on “availability” and less on “consistency”.

And here are some which increase reliability:

fsutil repair set C: 0x01
fsutil resource setautoreset true C:\
fsutil resource setconsistent C:\

In order again:

  • Turns autorepair on for C: drive.
  • Cleans transactional metadata on next mount
  • Makes the filesystem more focussed on “consistency” and less on “availability”.

Do be aware that “resource setavailable” and “resource setconsistent” are opposites, both do not get set at the same time :-) Also neither of them appear to be valid on system volumes, errors are thrown.

Here is one set which seems to balance reliability and performance boost:

fsutil 8dot3name set 1
fsutil behavior set memoryusage 2
fsutil behavior set disablelastaccess 1
fsutil repair set C: 0x01
fsutil resource setautoreset true C:\
fsutil resource setconsistent C:\
fsutil resource setlog shrink 10 C:\

Categories:      

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

Install .NET 3.5 with WSUS
article #1125, updated 2568 days ago

Another from Matt the Quick:

By default, WSUS does not have .NET 3.5 available to install. This creates issues when .NET 3.5 is needed after a machine has joined the domain. Below is the workaround steps to install .NET 3.5 using the operating system ISO and not Windows Update or WSUS.

  • Mount the ISO of the operating system. The Server 2016 ISO is known to work for this.
  • Open an Administrative Command Prompt and run the following command:

    dism /online /enable-feature /featurename:netfx3 /all /source:D:\sources\sxs /limitaccess

    NOTE: The Source flag will have to be changed to reflect the Sources\sxs folder on your installation media. This is likely going to be the D drive (as in the example above), but it’s possible your results may differ slightly.
  • Reboot machine.

Categories:      

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

.NET 3.5 Install Produces Error Code With WSUS
article #1108, updated 2596 days ago

From the indefatigable Matt Quick:

Sometimes, trying to install .NET 3.5 either via Add/Remove Programs or via the standalone offline installer produces an error code. This is due to WSUS not having the files for .NET 3.5. Use the following workaround to avoid taking the machine off the domain, installing .NET 3.5, then putting it back on the domain:

This worked for me. Windows has to download the 3.5 installation files, but the server is configured not to use Windows Update (common for managed servers), but WSUS. The above article describes how to fix this. In a nutshell:

  1. Start the Local Group Policy Editor or Group Policy Management Console.
  2. Expand Computer Configuration, expand Administrative Templates, and then select System.
  3. Open the Specify settings for optional component installation and component repairGroup Policy setting, and then select Enabled.
  4. Select the Contact Windows Update directly to download repair content instead of Windows Server Update Services (WSUS) check box.

Make sure Windows Updates Service is set to Manual or Automatic to apply this fix.

Categories:      

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

Files piling up in C:\ProgramData\Microsoft\Crypto\RSA\S-1-5-18
article #1100, updated 2610 days ago

When certain antivirus products go a bit haywire, or other unfortunate things happen, hundreds of thousands of small files can pile up in either the location in the title of this article, or here:

C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys

The location in the title seems to be more common in Windows 10, the other more for Windows 7, but check both, and if you have a pileup in either, run this CMD command inside:

forfiles /D -10 /C "cmd /C attrib -s @file & echo @file & del @file"

forfiles is a very nice command that iterates through the files in a folder according to its parameters. /D -10 iterates through all files more than 10 days old. attrib -s takes off the System attribute, which is needed for DEL (delete) to work. The echo is there so you can see that it is doing its job.

Categories:      

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

When Group Policy Templates Are Corrupt
article #1099, updated 2611 days ago

An elegant solution from here:

https://social.technet.microsoft.com/Forums/systemcenter/en-US/e266d1eb-81ca-4084-8b3b-70f7c6904047/problem-with-inetresadmx?forum=winserverGP

Just go here:

https://www.microsoft.com/en-us/download/details.aspx?id=6243

and download the current versions of all of the templates (the above is for 2008R2, here’s to hoping Microsoft makes them available for all server versions), and replace them.

Categories:      

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

Rename Windows user account from CMD
article #1096, updated 2614 days ago

Here’s the command:

wmic useraccount where name='olduser' rename newuser

“olduser” is the old username, “newuser” is the new.

Categories:      

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

Windows Defender mods
article #1091, updated 2621 days ago

Here’s a regedit to disable:

Reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f

and here’s an msiexec remover, quiet; not sure if this still works:

msiexec /uninstall windowsdefender.msi /quiet /log uninstall.log

Categories:      

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

Symbolic Links (symlinks) in Windows
article #371, updated 2628 days ago

In Vista or Windows 7, there is a built-in command, “MKLINK”. Here’s a good reference, suggested by Matt Quick:

http://www.howtogeek.com/howto/windows-vista/using-symlinks-in-windows-vista/

For a long while they were called “junctions”. In Server 2000, Server 2003, or XP, you’ll need this:

http://technet.microsoft.com/en-us/sysinternals/bb896768

The syntax is a bit different for each. And Windows does not support these “junctions” to directories on remote shares. But this can help a lot, for instance, when moving something like a profile folder from local drive to local drive. They are set up at the NTFS filesystem level, just like Unix/Linux.

A great example of usage, is moving a profile folder. It works like this:

  1. Create a new user, local if it’s not a DC.
  2. Reboot the server/PC, to unlock profile files and folders.
  3. Log in as the new user.
  4. Create a new folder for the profile to be moved.
  5. Robocopy the old profile folder’s contents to the new. Make sure you get everything hidden!
  6. Rename the old folder as backup, and create a junction from the new folder to the old folder’s container.
  7. Log in as the new user and test.

Categories:      

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

Use any Windows key with your Windows 7 ISO
article #768, updated 2628 days ago

From the amazing Matt Quick. The “eicfg removal utility” here:

http://code.kliu.org/misc/winisoutils/

will take a Windows 7 ISO of any version, and convert it into one which will install whichever version is appropriate for your OS key. Detailed instructions are here:

https://mattthequick.wordpress.com/2015/01/13/create-all-in-one-windows-7-install-media-by-removing-ei-cfg/

Categories:      

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

Installing the GUI onto Windows Server 2012 Core
article #853, updated 2628 days ago

The indefatigable Matt Quick provides thus:

http://prajwaldesai.com/switching-between-gui-and-server-core-in-windows-server-2012/

Categories: