Installing PEAR packages in XAMPP Windows

First open command prompt administrator because the script will try to write c:\windows\pear.ini

Next run this commands in xampp\php folder:
pear config-set doc_dir \xampp\php\docs\PEAR
pear config-set cfg_dir \xampp\php\cfg
pear config-set data_dir \xampp\php\data\PEAR
pear config-set test_dir \xampp\php\tests
pear config-set www_dir \xampp\php\www

Then you can install any packages using this command:
pear install <package-name>

example: pear install mail

Note: if you are using php 7.2, you might get error “PHP Fatal error: Cannot use result of built-in function in write context in \xampp\php\pear\Archive\Tar.php on line xxx”, read this to fix it: https://www.dotkernel.com/php-troubleshooting/fix-installing-pear-packages-with-php-7-2/

Source:
– http://stackoverflow.com/questions/62658/getting-pear-to-work-on-xampp-apache-mysql-stack-on-windows

Access denied to Administrative (Admin) shares in Windows 8, 8.1, 10

3 ways to fix:
1. Map Admin Shares with the built-in administrator account
2. LocalAccountTokenFilterPolicy – UAC remote restrictions

To get rid of the Access Denied message, follow this procedure:

  1. Launch the Registry editor by typing regedit.exe in the Start Screen.
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System.
  3. Create a new entry by right-clicking System and then selecting DWORD (32-bit) Value.
  4. Choose LocalAccountTokenFilterPolicy as name for the new entry.
  5. Set the value of LocalAccountTokenFilterPolicy to 1 by right-clicking the new entry.

3. Disable UAC Admin Approval mode

Note: Disabling UAC Admin Approval mode will also disable the Windows Store app.

  1. Launch Control Panel, type admin… in the search box, and then click Administrative Tools.
  2. Open the Local Security Policy application.
  3. Navigate to Local Policies > Security Options.
  4. Disable the policy User Account Control: Run all administrators in Admin Approval Mode.

 

Note: For Windows 11
If you want to configure auto-login, then you need to disable the “only allow Windows Hello sign-in” option using the following steps:

  1. Click Start, Settings, and click Accounts.
  2. Click on Sign-in options
  3. Turn off the radio button under the Require Windows Hello sign-in for Microsoft accounts section.
    The description “For improved security, only allow Windows Hello sign-in for Microsoft accounts on this device (Recommended)” is self-explanatory.
NOTE: The Require Windows Hello sign-in for Microsoft accounts option would be missing if no Microsoft accounts are configured on the computer.

Registry Editing
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device

Value name:
DevicePasswordLessBuildVersion

Data:
0
means Require Windows Hello sign-in is disabled
2
means Require Windows Hello sign-in is enabled

Deleting DevicePasswordLessBuildVersion or setting it to 0 would enable the “Users must enter a user name and password to use this computer” checkbox.

After disabling the above setting, close and reopen the User Accounts dialog by running netplwiz.exe or control userpasswords2

 

source:
– https://4sysops.com/archives/access-denied-to-administrative-admin-shares-in-windows-8/
– https://www.winhelponline.com/blog/users-must-enter-a-user-name-and-password-to-use-this-computer-missing-windows-10/