Skip to main content
6 events
when toggle format what by license comment
Dec 24, 2022 at 20:33 comment added Blaisem Why does validate take a scriptblock as input? The documentation says it needs to be of type ValidationEventHandler.
Nov 11, 2020 at 20:48 comment added fourpastmidnight For others viewing this, it does work on PSv4 (running on a Windows Server 2012 R2 box). And by extension, this will work in PSv5 and PSv5.1, too. Not sure about PS Core, I haven't tried.
Jan 9, 2018 at 22:41 comment added wangzq Thanks; I have updated my answer with an updated version that is written as a function that can be included in a module and supports pipeline.
Jan 9, 2018 at 22:40 history edited wangzq CC BY-SA 3.0
added 288 characters in body
Jan 9, 2018 at 14:08 comment added Adassko Your answer is great, short and effective :) you just miss $schemaReader.Dispose() which causes schema file lock
May 17, 2013 at 22:01 history answered wangzq CC BY-SA 3.0