I'm trying to write an application that will filter out standard applications and vendor logs
Here lies my problem
We have multiple versions of Adobe Air installed ie
Adobe Air 13.0.0.111.LOG
Adobe Air 14.0.0.178.LOG
Adobe AIR 18.0.0.180.LOG
etc...
How can I get it so I can just write
*Adobe Air*
And it removes all txt files that end in Adobe Air, or Adobe Flash, Java, Office, etc...
So I put in a PC number into my gui, and it list what applications the person actually has that are non standard
Chrome
Project
Visual Studio
PowerShell Studio
etc...
I prefer to do this in a csv file if possible so I can update these applications on the fly
Where -notlike
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Where -notlike
So just imagine you have a enterprise client. With 100 or so pieces of software that is on every machine. When I want to populate what's on the current PC, I only want to see a few applications that are non standard
Re: Where -notlike
wouldn't I have to have a filter for each app I want to exclude?
Is there no way for it to read from a CSV file?
I don't want to hard code it into the application seeing our images change once every 6 months and if there is something I missed, it'd be much easier than redistributing the application to 110 employees
Is there no way for it to read from a CSV file?
I don't want to hard code it into the application seeing our images change once every 6 months and if there is something I missed, it'd be much easier than redistributing the application to 110 employees
Re: Where -notlike
If you re-read my original post. I need it to filter out 100 or so applications from a CSV file
Re: Where -notlike
Your post said:
How can I get it so I can just write
*Adobe Air*
To filter out many then use "notin" on the file
Get-WmiObject Win32_Product |where{$_.Name -notin (Get-Content filename)}
How can I get it so I can just write
*Adobe Air*
To filter out many then use "notin" on the file
Get-WmiObject Win32_Product |where{$_.Name -notin (Get-Content filename)}