viewpoint-particle

Author Topic: wntAccessList Question  (Read 2676 times)

krasdude

  • Newbie
  • *
  • Posts: 21
wntAccessList Question
« on: December 09, 2014, 07:42:42 am »
Anyone have any idea why wntAccessList fails when trying to access c:\windows\system32\winevt?

I can clearly see it (figure 1 in attached Word docx)

Program error message (figure 2 in attached Word docx)

The account being used is an admin, I have tried through Studio (started with Run As Admin), Run as Admin on a compiled script, running same script from cmd prompt started with Run As (though if I do cacls in the said cmd prompt, it works)

Any ideas?

Thanks

Michael

td

  • Tech Support
  • *****
  • Posts: 3490
    • WinBatch
Re: wntAccessList Question
« Reply #1 on: December 09, 2014, 08:05:52 am »
It's called file redirection.  You can read more about it in the Tech Database.  The short answer is you need to use 'C:\Windows\Sysnative\winevt' instead of 'C:\Windows\System32\winevt' to access the 'system32' directory using 32-bit WinBatch on a 64-bit system.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

krasdude

  • Newbie
  • *
  • Posts: 21
Re: wntAccessList Question
« Reply #2 on: December 09, 2014, 08:11:36 am »
Thanks .. I should have known that but I have been so wrapped up in this script, can't see the trees in the forest.  Thanks

td

  • Tech Support
  • *****
  • Posts: 3490
    • WinBatch
Re: wntAccessList Question
« Reply #3 on: December 09, 2014, 08:31:04 am »
Been there many times.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade