2

Trying to open my firewall log file through command line and create a shortcut for it because I can't open it without admin privileges and when I right click, "Run as admin" is not showing **as shown here** I did try going through the settings and adding my account for permissions but I believe since it's a dynamic file, it just resets because after awhile, I would have to redo the process and that's why I was trying to make a shortcut. Need someone to assist me in fixing this problem one way or another so I can view log files on my Windows 10 home computer.

Thank you!

added pic: enter image description here

9
  • You’ve explained only part of what you want to do. You haven’t provided any info on what you’ve already tried to make this happen. We have no idea what you want to open these files in. In your title you state an error message but haven’t told us what you do to produce that error. Is that the message you get when you try to open your firewall log? Dec 25, 2017 at 14:56
  • you need to stop the Firewall service before you can open the log file Dec 25, 2017 at 16:00
  • Wonder if it would allow you to first copy the log file elsewhere and then open it from the elsewhere location without stopping the FW service? Thinking of a potential simple workaround solution that may suffice for the immediate need once confirming it works as expected but simple enough to try. Dec 25, 2017 at 21:27
  • @ITSnuggles Having to copy the file over each time is a drag. Is there not a simply, more efficient way of doing this? I believed I've poked at logs before and never had this issue.
    – Simonhawk
    Dec 26, 2017 at 7:59
  • @Appleoddity I didn't show any specific commands, but I did say in the first line that I tried to open it via command line. What gave me this error is using the "start" function (ex: "start C:\path...\Firewall.log"
    – Simonhawk
    Dec 26, 2017 at 8:02

1 Answer 1

1

If you current log on account has admin permission, please try to manually add permission on the log file:

  1. Right click the log file and select Properties – Security.
  2. There will be a message about read permission, just click Advanced – Continue.
  3. Click Add – Select a principal.
  4. Manually enter your user account and click Check Name, once it has been detected, click OK.
  5. Select Full control permission and click OK to save the change.
  6. Click Ok again to save the security change.

Then, re-open the file and you will see all content.

2
  • I already did this. I even said it in the OP. I assume because log files are constantly updating, the permissions have to be reinstated. This is my assumption because after awhile, I have to add permissions again
    – Simonhawk
    Dec 26, 2017 at 7:57
  • @Simonhawk it’s very simply, not a permission issue. Nothing about the error message suggests that. Dec 26, 2017 at 14:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .