Tag: cmd

Microsoft Servers, Microsoft Windows, Tools

Modify files and directories attributes through cmd

Attrib displays, sets, or removes the read-only, archive, system, and hidden attributes assigned to files or directories. Used without parameters, attrib displays attributes of all files in the current directory. Parameters +r   : Sets the read-only file attribute. -r : Clears the read-only file attribute. +a : Sets the archive file attribute. -a : …

Microsoft Windows

Change Power Button Action using command line

Open a cmd window and run the following command: reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced" /v Start_PowerButtonAction /t REG_DWORD /d 16 /freg add "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced" /v Start_PowerButtonAction /t REG_DWORD /d 16 /f To apply the change, restart explorer.exe or log off and login back.

Microsoft Windows, Windows 7

Enable or Disable UAC from command line

Run Windows command line (cmd) as administrator. Enable UAC reg.exe ADD HKLMSOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem /v EnableLUA /t REG_DWORD /d 1 /freg.exe ADD HKLMSOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem /v EnableLUA /t REG_DWORD /d 1 /f Disable UAC reg.exe ADD HKLMSOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem /v EnableLUA /t REG_DWORD /d 0 /freg.exe ADD HKLMSOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem /v EnableLUA /t REG_DWORD /d 0 /f

Microsoft Windows

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 HKLMSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer /v HideSCAHealth /freg delete HKLMSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer /v HideSCAHealth /f to Disable|Hide Action Center reg add HKLMSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer /v HideSCAHealth /t REG_DWORD /d 0x1reg add HKLMSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer /v HideSCAHealth /t REG_DWORD /d 0x1

Microsoft Windows

Enable remote desktop via command line

To enable remote desktop using command line tool follow these steps: 1. Open command line 2. Type reg add "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /freg add "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f

Firewall, Microsoft Windows

Disable Windows firewall via Command Line

Open command line. To disable windows firewall execute: netsh firewall set opmode disablenetsh firewall set opmode disable or netsh advfirewall set allprofiles state offnetsh advfirewall set allprofiles state off To enable windows firewall execute: netsh firewall set opmode enablenetsh firewall set opmode enable or netsh advfirewall set allprofiles state onnetsh advfirewall set allprofiles state on