kennysarmy Posted February 11, 2020 Posted February 11, 2020 Is there anyway, remotely, with the PC turned on to check if software which is no longer in the scope and should have been removed at boot has actually been removed? Asking, as if I have to ensure software A has been removed before I push out software B - how can I actually check it's gone?
Rob_D Posted February 11, 2020 Posted February 11, 2020 If you've got it enabled, you could browse to "\\computername\C$\Program Files" (or whatever the install directory is) and find out if the program's files are gone or not.
Norphy Posted February 11, 2020 Posted February 11, 2020 PowerShell script? If the software is pushed out by an MSI, you can check the remote machine's WMI for the MSI code. Example: get-wmiobject -ComputerName My-PC -class Win32_Product -filter 'IdentifyingNumber="{01DBDFEA-A641-4F43-B709-70D76FFC24E1}"' That gets back the NetSupport DNA Client
clareq Posted February 11, 2020 Posted February 11, 2020 Could you install software B via a script that looks for the executable of software A, and only installs if it doesn't find it? Something like: If exist GoTo end Command to install software B :end
mavhc Posted February 11, 2020 Posted February 11, 2020 You're not using the Upgrades tab to say "uninstall that before installing this"?
kennysarmy Posted February 11, 2020 Author Posted February 11, 2020 You're not using the Upgrades tab to say "uninstall that before installing this"? No. I've pushed out some software, removed the link between the OU and the policy and the software 'should' uninstall at next reboot. Before I link in the new software to the OU I wondered if I had all the PC's in the room turned on could I quickly check to ensure the software had been removed. I tried the line : get-wmiobject -ComputerName -class Win32_Product -filter 'IdentifyingNumber="{172825C8-3E26-4DAB-984D-732430E471DE}"' But nothing is returned...
alexsanger Posted February 11, 2020 Posted February 11, 2020 Would this get you somewhere close to what you need? https://gallery.technet.microsoft.com/scriptcenter/Get-RemoteProgram-Get-list-de9fd2b4
mavhc Posted February 11, 2020 Posted February 11, 2020 No. I've pushed out some software, removed the link between the OU and the policy and the software 'should' uninstall at next reboot. Before I link in the new software to the OU I wondered if I had all the PC's in the room turned on could I quickly check to ensure the software had been removed. I tried the line : get-wmiobject -ComputerName -class Win32_Product -filter 'IdentifyingNumber="{172825C8-3E26-4DAB-984D-732430E471DE}"' But nothing is returned... You can add the software from the other GPO as a thing to remove first still
kennysarmy Posted February 11, 2020 Author Posted February 11, 2020 Would this get you somewhere close to what you need? https://gallery.technet.microsoft.com/scriptcenter/Get-RemoteProgram-Get-list-de9fd2b4 Yes that seems to work well for a single remote PC. Need to find a way to point the script at a text file of remote computer names and output the results to a single txt file
kennysarmy Posted February 11, 2020 Author Posted February 11, 2020 Getting there: Get-RemoteProgram -ComputerName (Get-Content -Path D:\scripts\remotesoftware\pclist.txt) -Property installdate -IncludeProgram *abtutor*
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now