Enable Administrative Shares (C$, etc)

  1. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
  2. On the Edit menu, point to New, and then click DWORD (32-bit) Value.
  3. Type LocalAccountTokenFilterPolicy to name the new entry, and then press Enter.
  4. Right-click LocalAccountTokenFilterPolicy, and then click Modify.
  5. In the Value data box, type 1, and then click OK.
  6. No reboot necessary.

From an administrative command prompt, you can simply run this instead:


reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1

Fixing Windows IPv6

Update 8-13-2023: You may or may not need some or all of these commands anymore.

Below is a set of commands you can try running to help resolve issues with multiple random temporary addresses, and seemingly all of IPv6 stops working randomly. I use DHCP6 on my home network and this has helped to resolve a lot of connectivity issues for me. I don’t seem to lose IPv6 connectivity anymore.

The interface does seem to still get more than one address, which is frustrating, but probably due to router advetisements on my firewall. It only seems to use the primary one it gets from DHCP however, which is good. I have tried doing netsh int ipv6 set interface “<interface>” routerdiscovery=disabled store=persistent but, it does not persist after a reboot, and netsh int ipv6 show interface “<interface>” shows that it is enabled again. I imagine there is some registry edit that can be done, or adding it to task scheduler but, until it becomes an issue I am find that the below works for me.

I don’t know why Microsoft has made this so hard. All of my Linux and FreeBSD machines can acquire and maintain an IPv6 address forever. A singular address.

You’ll need to run these in an Administrator command prompt. You can access that by right-clicking your Start button and choosing either Command Prompt (Admin) or Windows Powershell (Admin). If you only have Powershell, once it opens, type cmd and press enter to go into a command prompt shell. Alternatively, press your Windows key or click the start button, and type cmd and press CTRL-SHIFT-ENTER once you see Command Prompt in the list (you will only need to type cmd, the start menu will select Command Prompt after a moment in ‘Best Match‘ at the top of the search results.)

netsh int ipv6 set privacy state=disabled store=active
netsh int ipv6 set privacy state=disabled store=persistent
netsh int ipv6 set global randomizeidentifiers=disabled store=active
netsh int ipv6 set global randomizeidentifiers=disabled store=persistent

Afterwards, I find going into Control Panel, (small icons) Network and Sharing Center, Change Adapter Settings, and right-click on your interface and Disable it, then Enable it with another right-click. Or you can reboot.

Windows Server 2019 – Stuck on Private Network Profile

Sometimes, randomly, Windows Server will switch to a Private Network Profile after a reboot, or just sporadically. Usually restarting the NlaSvc service will resolve this, but I have found if it keeps happening on reboot, this will also help resolve this issue.

In order to fix this, all I needed to change was the dependencies for NlaSvc (Network Location Awareness Service). From an Administrative command prompt I ran the following:

sc config NlaSvc depend=NSI/RpcSs/TcpIp/Dhcp/EventLog/DNS/NTDS

After rebooting, my profile finally showed as a Domain network instead of a Private Network.

Windows Server 2019 is available as a free 180 day evaluation: https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2019

PHP 7, MySQL 8 & WordPress on IIS

2/16/2021 – I still plan to update this more, just been busy with a new job!

This is a work in progress – pictures will be added, stories will be written, coffees will be spilled.

  • Use MySQL Workbench to create a user with a Standard Password, and create a Schema, then give your user permissions on the Schema.
  • Open PHP Manager in IIS Manager after installing so it can make some changes to php.ini..enable the extra modules in there as well.
  • You probably want to reboot after updating your PATHs and things just so IIS can find everything
  • I know this is vague…just trying to get it started.
    If this helps you in the mean time, great!
  • Dependencies for ImageMagick and other things…
  • IIS Installation
    • Control Panel – Programs & Features – Add/Remove Windows Components
      • [X] Internet Information Services
        • Web Management Tools -> [X] IIS Management Console
        • World Wide Web Services -> Application Development Features -> [X] CGI
        • Common HTTP Features
          • All except Directory Browsing (unless wanted), WebDAV Publishing
        • Health and Diagnostics
          • [X] HTTP Logging, Request Monitor
          • [X] Performance Features (both Dynamic + Static)
        • Security
          • [X] Basic, IP, Request Filtering, URL Authorization, (if needed) Windows Auth