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
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.
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
Been there many times.