disable
Enable or Disable UAC from command line
Run Windows command line (cmd) as administrator. Enable UAC reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f Disable UAC reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
Enable or Disable Action Center from cmd
Open command line with administrative permissions and execute the following commands: to Enable|Show Action Center reg delete HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v HideSCAHealth /f to Disable|Hide Action Center reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v HideSCAHealth /t REG_DWORD /d 0×1
Enable or disable user account from command line
Open command line. -> To disable user account type: net user <username> /active:no -> To enable user account type: net user <username> /active:yes Don’t forget to replace .
Disable or Enable Windows Firewall via Command Line
Open command line. To disable windows firewall execute: netsh firewall set opmode disable To enable windows firewall execute: netsh firewall set opmode enable
Lock or UnLock Linux User Account
To lock the account sudo passwd -l username To unlock the account (this command will change the password back to its previous value) sudo passwd -u username
Disable the safe mode
1. Open your php.ini file for editing as root or administrator. 2. Search the file for the line: safe_mode on and change it to safe_mode off 3. Restart you Apache web server. Important! safe_mode feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.
Configuring windows firewall from the command line
To configure Windows firewall from the command line, you have to open the cmd with administrative rights. Default Rule To deny all incoming connections and allow all outgoing connections: netsh advfirewall set allprofiles firewallpolicy blockinbound,allowoutbound Enable or Disable firewall To enable firewall: netsh advfirewall set allprofiles state on or netsh firewall set opmode enable To [...]
Iptables made easy with ufw
UFW is a front-end for iptables and is here to make your life easier! Default Rule To deny all incoming connections: sudo ufw default deny To allow all incoming connections: sudo ufw default allow Enable or Disable ufw To enable ufw: sudo ufw enable To disable ufw: sudo ufw disable Allow or Deny [...]