Difference between revisions of "Windows Command Line"

From MyWiki
Jump to: navigation, search
Line 5: Line 5:
 
<source lang="powershell">
 
<source lang="powershell">
 
Get-Content ForEach-Object { $; Get-WMIObject –computername $ Win32_LogicalDisk -filter "DriveType=3" | ForEach-Object { $.DeviceID; $.FreeSpace/1GB } }
 
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>
 
</source>

Revision as of 14:24, 13 August 2016

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.