Just dug around, and it would appear that you are right about being able to use GPO. Is there a way to automate this? If not I’m probably just going to go back to sneakernetting this from a flash drive. We haven’t joined our computer to a domain yet so I can’t really push it that way.
Latest posts made by Alfredo the Pasta
-
RE: Powershell Snapin
-
RE: Powershell Snapin
@joe-schmitt So I tried running that, now the fog log is showing returnerrorcode:1
Avaryan may be right. I’ll have to search for a command line equivalent.
-
RE: Powershell Snapin
Both exceptions are failing to apply.
As far as I’m aware the exemptions are global for the computer.
-
Powershell Snapin
I am trying to deploy to the computers at my workplace a powershell script that adds two folders to the windows firewall exceptions. I have followed the instructions on the wiki, and according to the log that fog spits out on the computer I’m deploying to, the script has run and completed, returning error code:0 (I’m assuming that means no error).
The script I am using is as follows:
@echo off
Add-MpPreference -ExclusionPath C:(The local folder I’m excluding) -force
Add-MpPreference -ExclusionPath \(Network drive I’m excluding) -forceI have manually run this script many a time with no problems. But when I run it through snapin it doesn’t add the exceptions. Am I doing something wrong in my script?