Solve Windows 10 does not automount USB Drives anymore

My Windows 10 machine started behaving weirdly and did not mount any USB Drives / Harddrives and such anymore. I had to open the Disk Management Tool and mount them manually, which is quite inconvenient. So I was looking up the error and came across the nearly perfect solution at http://woshub.com/windows-doesnt-assign-letters-to-external-and-usb-flash-drives/ . However, I did change it a bit so that the VDS is changed to automatically start on boot via the CLI :).

Oh, and yes, you need to do this from an admin cmd 😉

First thing to check if something is wrong, is if your VDS (Virtual Disk Service) works. If not, set it to start on boot and start the service:

sc query vds
sc config vds start= auto
sc start vds
sc query vds

If automounting still not works, it could be deactivated. Start diskpart, watch the status of automount and if it is disabled, activate it.

diskpart
DISKPART> automount
DISKPART> automount enable
DISKPART> exit

windows 10 enterprise ubuntu shares

  • You can enable the legacy SMB client to access network devices using SMBv1 protocol via the Control Panel (Control Panel -> Programs and Features -> Turn Windows features on or off -> SMB 1.0 / CIFS File Sharing Support -> SMB 1.0 / CIFS Client). In addition, you can access the features installation dialog by running the optionalfeatures.exe command.
  • If you use anonymous access to connect NAS or other computers, you need to enable the insecure guest logon policy. In Windows 1803/1709 it blocks access to shared network folders over the SMB 2.0 protocol under an anonymous (guest) account. To do this, in the Windows 10 Local Policy Editor (gpedit.msc), enable the Enable insecure guest logons policy in the GPO section: Computer Configuration -> Administrative templates -> Network -> Lanman Workstation.

900gb Ext HDD->HDD copy test

Dell Inspiron 15 3567
12GB DDR4 2400mhz/2 x Seagate 1TB Expansion
Source : Seagate 1TB -> Usb3.1 port leftside
863 GB (926,755,439,240 bytes)
1,233,950 Files, 6,376 Folders
Destination : Seagate 1TB -> Usb2 port rightside

Ubuntu 19.10 Lenovo amd a9 s145-15ast

Screen flicker:

sudoedit /etc/default/grub

Find the line beginning GRUB_CMDLINE_LINUX_DEFAULT and add the text amdgpu.dc=0 between the double quotes (""). Leave any other parameters as they are. For example, you may end up with a line like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amdgpu.dc=0"

Save the file and exit, and then run

sudo update-grub

to write the configuration, and reboot.

ubuntu 19 speed up local samba access

sudo nano /etc/nsswitch.conf

hosts:          files wins dns mdns4_minimal [NOTFOUND=return]

sudo nano /etc/avahi/avahi-daemon.conf

use-ipv6=no

disable ipv6 in wifi/eth0 interfaces

sudo ufw disable
sudo sysctl vm.swappiness=10

sudo su
echo "#disable ipv6" >> /etc/sysctl.conf
echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.conf

sudo nano /etc/samba/smb.conf

add
netbios name = linuxlap1
name resolve order = lmhosts wins bcast host

php server load on windows/linux

Function to get current CPU load as percentage value under Windows and Linux.

Note: Function is getServerLoad(). It will return a decimal value as percentage of current CPU load or NULL if something went wrong (e. g. insufficient access rights).

<?php

    header("Content-Type: text/plain");

    function _getServerLoadLinuxData()
    {
        if (is_readable("/proc/stat"))
        {
            $stats = @file_get_contents("/proc/stat");

            if ($stats !== false)
            {
                // Remove double spaces to make it easier to extract values with explode()
                $stats = preg_replace("/[[:blank:]]+/", " ", $stats);

                // Separate lines
                $stats = str_replace(array("\r\n", "\n\r", "\r"), "\n", $stats);
                $stats = explode("\n", $stats);

                // Separate values and find line for main CPU load
                foreach ($stats as $statLine)
                {
                    $statLineData = explode(" ", trim($statLine));

                    // Found!
                    if
                    (
                        (count($statLineData) >= 5) &&
                        ($statLineData[0] == "cpu")
                    )
                    {
                        return array(
                            $statLineData[1],
                            $statLineData[2],
                            $statLineData[3],
                            $statLineData[4],
                        );
                    }
                }
            }
        }

        return null;
    }

    // Returns server load in percent (just number, without percent sign)
    function getServerLoad()
    {
        $load = null;

        if (stristr(PHP_OS, "win"))
        {
            $cmd = "wmic cpu get loadpercentage /all";
            @exec($cmd, $output);

            if ($output)
            {
                foreach ($output as $line)
                {
                    if ($line && preg_match("/^[0-9]+\$/", $line))
                    {
                        $load = $line;
                        break;
                    }
                }
            }
        }
        else
        {
            if (is_readable("/proc/stat"))
            {
                // Collect 2 samples - each with 1 second period
                // See: https://de.wikipedia.org/wiki/Load#Der_Load_Average_auf_Unix-Systemen
                $statData1 = _getServerLoadLinuxData();
                sleep(1);
                $statData2 = _getServerLoadLinuxData();

                if
                (
                    (!is_null($statData1)) &&
                    (!is_null($statData2))
                )
                {
                    // Get difference
                    $statData2[0] -= $statData1[0];
                    $statData2[1] -= $statData1[1];
                    $statData2[2] -= $statData1[2];
                    $statData2[3] -= $statData1[3];

                    // Sum up the 4 values for User, Nice, System and Idle and calculate
                    // the percentage of idle time (which is part of the 4 values!)
                    $cpuTime = $statData2[0] + $statData2[1] + $statData2[2] + $statData2[3];

                    // Invert percentage to get CPU time, not idle time
                    $load = 100 - ($statData2[3] * 100 / $cpuTime);
                }
            }
        }

        return $load;
    }

    //----------------------------

    $cpuLoad = getServerLoad();
    if (is_null($cpuLoad)) {
        echo "CPU load not estimateable (maybe too old Windows or missing rights at Linux or Windows)";
    }
    else {
        echo $cpuLoad . "%";
    }

?>

Disabling Windows 10 Consumer Experience

Windows 10 Consumer Experience adds tiles to the Start Menu for things like Candy Crush, Solitaire, and other non-business applications. There’s a simple way to disable this. Note that this does not remove any of the built-in apps like Calendar, Mail, or even Xbox.

Group Policy

The best and most practical way to disable this would be Group Policy. There’s a setting called “Turn off Microsoft consumer experiences” located at Computer Configuration > Administrative Templates > Windows Components > Cloud Content”. If you enable this policy, the extra stuff will go away.

Maximum unique TCP connections allowed by license in Windows 10

Problem:
Receiving the “TCP/IP has reached the security limit imposed on the number of concurrent TCP connect attempts” error in event viewer for Event ID 4226? A limit was first imposed back in XP SP2, with a concurrent connection limit of ten different connections per one second. 

(Number of half open connections)

Although most users won’t notice a difference in network activity if it’s increased, there is a registry value that can be set to zero to disable the maximum number of connections allowed.

This would be helpful for anyone using a download manager or torrent program that allows many simultaneous connections at once.

Solution:


Open “regedit” and navigate to“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters.”

add a dword32 “EnableConnectionRateLimiting”set to “0” hex