New
#10
Thanks for the reply @Brink, it is appreciated.
The question was mainly for interest than anything else. I just wanted to know where the data source should be in order to directly query it to see if there was any data to output. Anyway, I have sorted it now by outputting the data to a%Temp%
file and querying that file to see if it has any data or it is empty.
Thanks again, and have a great weekend.
Code:$File = "$env:UserProfile\Desktop\ExploitProtectionSettings.xml" if ((Test-Path $File) -eq $false) { "$File not found." }