I have exported a list of installed application from a lot of computers. Problem is, that i would like to remove all Windows updates, etc that are in a list..
List is build like :
Server1, Security9), Adobe,7zip,app1,Secur..7)
Server2, Security2), Adobe,7zip,app1,Secur..3),Office
Server2, Adobe,7zip,app1,Secur..3),Office,bdm
Basically, i can not replace Security..)
If i try $str = $str -replace 'Security[^)]',',', i get output
Server1, 9), Adobe,7zip,app1,..7)
I would like to get output similar like Server1, ,Adobe,7zip,app1)