AaronZ
Active Member
- Messages
- 35
- Solutions
- 2
- Reaction score
- 7
- Points
- 8
I am working on resolving close to 120 computers that have not been properly onboarded to our Microsoft Defender platform. Per Microsoft Support, I was told to run the following command to fix it.
I put the above code into a PowerShell file, created a package to run powershell.exe with execution policy set to bypass and the file name. This did not work. I now have the PSExec.exe "app" in the package source folders with the PowerShell file.
My question is this: How do I get PSExec to run with the script in the package?
PsExec.exe -s cmd.execd "C:\ProgramData\Microsoft\Windows Defender Advanced Threat Protection\Cyber"del *.* /f /s /qREG DELETE "HKLM\SOFTWARE\Microsoft\Windows Advanced Threat Protection" /v senseGuid /fREG DELETE "HKLM\SOFTWARE\Microsoft\Windows Advanced Threat Protection" /v 7DC0B629-D7F6-4DB3-9BF7-64D5AAF50F1A /fREG DELETE "HKLM\SOFTWARE\Microsoft\Windows Advanced Threat Protection\48A68F11-7A16-4180-B32C-7F974C7BD783" /v 7DC0B629-D7F6-4DB3-9BF7-64D5AAF50F1A /fexitI put the above code into a PowerShell file, created a package to run powershell.exe with execution policy set to bypass and the file name. This did not work. I now have the PSExec.exe "app" in the package source folders with the PowerShell file.
My question is this: How do I get PSExec to run with the script in the package?