Forum Discussion
Cole_McDonald
6 years agoProfessor
I don't specifically have a ready made one, but if you make a DS that "AppliesTo" a system.hostname=="oneOfYourCollectors" (make sure it's in the same domain as the resource with the UNC path you want to check). Then something like:
if ( test-path "\\servername\C$\Path\To\File.txt" ) { write-output "1" } else { write-output "0" }
as a powershell script should do the trick.
Related Content
- 2 months ago
- 2 years ago
- 12 months ago