Creating Audit script to validate newly built sql server- as it's popular now- in PS. Do not have much experience with PS- learning on the fly- moving slowly but steadily. Stuck with validating Max N of Error Log files- that is 6 per default and it supposed to be changed to 30. In TSQL we can read registry (xp_instance_regread) but cannot find how to do this in "pure" PS (would like to avoid running TSQL from inside PS). Any advice (or script) be greatly appreciated.