Difference between revisions of "Windows Command Line"
From MyWiki
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
net use \\192.168.34.1\c$<br> | net use \\192.168.34.1\c$<br> | ||
start \\192.168.34.2\c$<br> | start \\192.168.34.2\c$<br> | ||
+ | check disk space on windows<br> | ||
http://serverfault.com/questions/102745/setting-low-disk-space-alerts-on-windows-server-2008 - disk space alerts<br> | http://serverfault.com/questions/102745/setting-low-disk-space-alerts-on-windows-server-2008 - disk space alerts<br> | ||
+ | <source lang="powershell"> | ||
+ | Get-Content ForEach-Object { $; Get-WMIObject –computername $ Win32_LogicalDisk -filter "DriveType=3" | ForEach-Object { $.DeviceID; $.FreeSpace/1GB } } | ||
+ | </source> | ||
+ | |||
+ | Turn windows defender off | ||
+ | <source lang="text"> | ||
+ | gpedit | ||
+ | |||
+ | If you have Group Policy Editor available (I think Windows 10 always does, but for example under Windows 8 you must have either "Pro" or "Enterprise"), you can open gpedit.msc, and navigate to | ||
+ | |||
+ | Computer Configuration | ||
+ | ->Administrative Templates | ||
+ | ->Windows Components | ||
+ | ->Windows Defender` | ||
+ | Double-click the "Turn off Windows Defender" option, select "Enabled", and apply. | ||
+ | </source> | ||
+ | [[ Changing the default route in Windows ]]<br> |
Latest revision as of 08:44, 27 March 2017
net use \\192.168.34.1\c$
start \\192.168.34.2\c$
check disk space on windows
http://serverfault.com/questions/102745/setting-low-disk-space-alerts-on-windows-server-2008 - disk space alerts
Get-Content ForEach-Object { $; Get-WMIObject –computername $ Win32_LogicalDisk -filter "DriveType=3" | ForEach-Object { $.DeviceID; $.FreeSpace/1GB } }
Turn windows defender off
gpedit If you have Group Policy Editor available (I think Windows 10 always does, but for example under Windows 8 you must have either "Pro" or "Enterprise"), you can open gpedit.msc, and navigate to Computer Configuration ->Administrative Templates ->Windows Components ->Windows Defender` Double-click the "Turn off Windows Defender" option, select "Enabled", and apply.