WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: krasdude on December 09, 2014, 07:42:42 AM

Title: wntAccessList Question
Post by: krasdude 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
Title: Re: wntAccessList Question
Post by: td 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.
Title: Re: wntAccessList Question
Post by: krasdude 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
Title: Re: wntAccessList Question
Post by: td on December 09, 2014, 08:31:04 AM
Been there many times.