Results for a Powershell command

Comments

3 comments

  • Colby Bouma

    I recommend setting up a File Scanner for that: https://documentation.pdq.com/PDQInventory/19.0.40.0/file_scanner_settings.htm

    2
    Comment actions Permalink
  • James Stack

    I appreciate the quick response but that solution would still require me to open each device to find the status of the folder.

    1
    Comment actions Permalink
  • Colby Bouma

    You can create Collections to see which computers do and do not have the file.

    If you want to stay in Deploy, you can make your PowerShell script throw a non-zero exit code if the file is missing.

    if ( -Not ( Test-Path "C:\Path\To\TheFile.txt" ) ) {
    Exit 10
    }
    1
    Comment actions Permalink

Please sign in to leave a comment.