You have a server with Windows Server 2016. The server Windows updates are being downloaded and installed automatically. This may affect your customers’ usage. You want to disable it so that you can install Windows updates when you find most appropriate.
Solution:
Open Command Prompt (Admin).
Type sconfig and press Enter.
Press 5 (Windows Update Settings:), then press Enter.
Press D (to select DownloadOnly option), then press Enter.
Click OK button.
Press 13 (Restart Server), then press Enter.
Click Yes button to restart your server.
To disable automatic reboots in inactive hours, you can try the steps below.
1. Click Start and type Task Scheduler. 2. Expand Task Scheduler Library >> Microsoft >> Windows . 3. Click UpdateOchestrator. 4. Right-click on Reboot and select Disable.
You want to enable Windows auto login to save time used to wait for login screen and type your password every day.
You want to temporarily disable Windows auto login when you are going to be far way from your laptop for a long time.
Solution:
Open Command Prompt (Admin) and execute the commands below to enable auto login.
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1 /f
:: /v - Value name.
:: /t - Type of registry entry.
:: /d - Data.
:: /f - No prompting for confirmation.
:: REG ADD does not work in .BAT file.
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d YourUsername /f
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d YourPassword /f
pause
Execute the commands below to disable auto login.
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /t REG_SZ /d 0 /f
:: /v - Value name.
:: /t - Type of registry entry.
:: /d - Data.
:: /f - No prompting for confirmation.
:: REG ADD does not work in .BAT file.
pause
This command give full permissions against D:\inetpub\wwwroot\mysite.com and all sub-directories and files, and against D:\mysite_data and all sub-directories and files to mysite.com user.
2. Alternatively you can execute the command below.
This command give full permissions against D:\inetpub\wwwroot\mysite.com and all sub-directories and files, and against D:\mysite_data and all sub-directories and files to IIS_IUSRS group.
You want to ensure that only the Nginx process can access WordPress files.
Procedure:
View current file owner and group:
ls -l /var/html
The root folder should be owned by www-data user. www-data is the user that web servers like Apache and Nginx on Ubuntu use by default for their normal operation.
2. Change file owner and group to www-data if necessary:
sudo chown -R www-data:www-data /var/html
3. Set minimum permissions for folders:
cd /var/html
sudo find . -type d -exec chmod 755 {} \; # directory permissions rwxr-xr-x
4. Set minimum permissions for files:
cd /var/html
sudo find . -type f -exec chmod 644 {} \; # file permissions rw-r--r--
You have tried uninstalling and reinstalling it but the problem still persists.
Quick Solution:
Go to Windows Settings > Sound > Advanced Sound Options .
Make sure Firefox is not muted or set to low volume.
Advanced Solution:
Create a Firefox account and synchronize (make a backup of) your current settings.
Uninstall Firefox using Windows Apps and features.
Go to %APPDATA%\Mozilla and delete Firefox folder.
Open regedit.exe, search for Firefox, and delete all the keys and values that can be found. This process will take some time. Just ignore any errors that may occur when some keys or values cannot be deleted.
You want to ensure that your server is not compromised by a program.
Solution:
1. Open cmd.exe and execute commands below. Note the program file name and one of its ports that you want to investigate further.
netstat -a -b
2. Execute the command below. Note the PID associated with the port that you are interested in.
netstat -ano -p tcp
3. Execute commands below. “1544” is the PID that you are interested in.
netstat -ano -p tcp |find "1544"
4. Open https://mxtoolbox.com/TCPLookup.aspx, and enter [your external IP:port], and click TCP Lookup button to check if a port is open from your server.
5. Go to your Firewall and block the port if it should not be open to the Internet.
You were applying Windows updates to a Windows server and got an error with code 0x8007000d or 0x80073701. You tried restarting your server several times but it seemed that the problem still persisted.
0x80073701 = ERROR_SXS_ASSEMBLY_MISSING which means there are some system files are missing, which caused the update installation failure.
Solution:
1. Restart your server.
2. Open Command Prompt (Admin).
3. Execute the commands below.
net stop wuauserv
net stop bits
:: Removes all files from the directory
del /q C:\Windows\SoftwareDistribution\*
:: Recursively removes all nested directories
for /d %x in (C:\Windows\SoftwareDistribution\*) do @rd /s /q "%x"
net start bits
net start wuauserv
control update
4. Close the Command Prompt (Admin).
5. Install Windows updates.
6. Click Retry button if you encounter an error.
Software development and software engineering research