wntAccessList Question

Started by krasdude, December 09, 2014, 07:42:42 AM

Previous topic - Next topic

krasdude

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

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

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

"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade