Hello everyone,
emu is speaking
the sky are blue, the wind icing and i’m hitting the head on the desk by 2 hours
Stupid script…i have this file
Caption=
CSName=DC01
Description=Security Update
FixComments=
HotFixID=KB5020374
InstallDate=
InstalledBy=NT AUTHORITY\SYSTEM
InstalledOn=11/11/2022
Name=
ServicePackInEffect=
Status=
For Example i need to replace Name= with Name=none (the same for status and service pack)
I’m trying to use this
(Get-Content -Path c:\ps\file.txt) | ForEach-Object {$_ -Replace '=\s','=NONE'} | Out-File c:\ps\file2.txt
The script run but nothing happen
Where a make mistake?
Thank you very much