Hi,
I am working on a code where I need to replace certain entries in a csv file. In the Get Content command, I need to use a wildcard for "Server". I tried replacing SERVER with * ,however that did not work. Any idea's, how this can be done.
TSR-SERVICE-MESSAGE ERROR SERVER@@"
Get-Content C:\VPS\TRH_VPS_DB.csv | ForEach-Object { $_ -replace "%CATD_I_066, serviceMessageTrap: errorMessage: TSR-SERVICE-MESSAGE ERROR SERVER@@", "" } | Set-Content C:\VPS\TRH_VPS_DB_1.csvThanks