Remove Deployments from Computers

Comments

1 comment

  • Kathleen Firth

    Thank you! For anyone else using this, there's one tiny typo for the database path:

    "$env:PROGRAMDATA\Admin Arsendal\PDQ Inventory\Database.db

    For easy copypasting:

    <?xml version="1.0" encoding="utf-8"?>
    <AdminArsenal.Export Code="PDQInventory" Name="PDQ Inventory" Version="12.4.0.5" MinimumVersion="11.0">
    <CustomTool>
    <CommandLine>"DELETE FROM PDQDeployments WHERE ComputerId IN (SELECT ComputerId FROM computers WHERE EndTime &lt; OSInstallDate);" | sqlite3.exe "$env:PROGRAMDATA\Admin Arsenal\PDQ Inventory\Database.db"</CommandLine>
    <DefaultIconKey></DefaultIconKey>
    <IsSystemWide value="true" />
    <LibraryToolId value="null" />
    <Modified value="null" />
    <ShellOpenMode>LeaveShellOpen</ShellOpenMode>
    <ShellType>PowerShell</ShellType>
    <IconKey>Icon-PowerShell</IconKey>
    <KeyGesture></KeyGesture>
    <Title>Remove Deployment &gt; OS Install</Title>
    <Description></Description>
    </CustomTool>
    </AdminArsenal.Export>

     

    0
    Comment actions Permalink

Please sign in to leave a comment.