권한체크

Function Test-Role 
{
  Param( [Security.Principal.WindowsBuiltinRole]$Role )

  $CurrentUser = [Security.Principal.WindowsPrincipal]([Security.Principal.WindowsIdentity]::GetCurrent())

  $CurrentUser.IsInRole($Role)
}



최적화

윈도우 디펜드 Off

Check the Windows Defender Configuration and Settings:

1

Get-MpPreference

Turn off Windows Defender Real-Time Protection using PowerShell

1

Set-MpPreference -DisableRealtimeMonitoring $true

Turn onWindows Defender Real-Time Protection using PowerShell

1

Set-MpPreference -DisableRealtimeMonitoring $false

Add a File path exclusion:

1

Set-MpPreference -ExclusionPath "C:\temp", "C:\VMs", "C:\NanoServer"

Add process exclusion

1

Set-MpPreference -ExclusionProcess "vmms.exe", "Vmwp.exe"





  • No labels