New
#11
- - - Updated - - -
Thanks for your attention anyway!jhugor,
It's difficult to see in your posted screenshots but it looks to me as though the quotation marks have been turned into curvy quotation marks [which the Cmd window & Powershell do not recognise].
This can often happen if you've pasted the code into a Word processor such as Word before saving it in order to run it.
Copy H's code from this page straight into a Notepad file instead. That will not corrupt the quotation marks.
No, sorry. I was looking at the first diagram. I can see them much more clearly in the second picture and they are not corrupted.
All the best,
Denis
- - - Updated - - -
attachjhugor,
Knowing nothing about firewalls or using PowerShell with them, I wonder if it is a language problem.
I suggest running this command in an Admin Command prompt window
PowerShell Get-NetFirewallRule >"D:\Desktop\AllRulesForReview.txt"
and post the results [which will be unnecessarily long purely to avoid using a better command that might cause errors].
Do replace my D:\Desktop with the path to a folder of your own.
My quotation marks are only there in case the path you write contains any spaces or special characters such as ampersands [&].
I'm suggesting this test in case your Firewall rules use Portuguese equivalents of Network Discovery, File and printer sharing, ...
Denis
AllRulesForReview.txt
thanks
- - - Updated - - -
Tell me if I am getting this wrong, but it looks to me like you are running the individual commands manually rather than running the commands from the batch file as is.
The intent is to run the batch file as is as an administrator. You could add a line at the start to make it a little more readable like this:
@echo off
Just make that the very first line.
I just tried it, and at least for me, it is working fine.
I did as you said! thank you again