All Forums >> [Scripting] >> Windows PowerShell >> Log Files wih Powershell Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
I am trying to figure out how to use Powershell to create a custom log file and set the properties on it. I have not been able to find any info so far on how to set the properties only how to create a log. I tried using the set-itempropety cmdlet but it doest seem to work Anyone have a tutorial on how to set properties with powershell?
I'm guessing you are trying to modify the registry to specify a new event log file. Not sure if that's how you create a new event log, but here's some sample code I used at Techmentor for working with the registry: