Lofty Worm
asked on
Why is my Powershell command not working?
I want to search all the files, and replace a text with another piece of text;
PS C:\temp> dir *.rdp |foreach -process {(Get-Content $_.file) -replace ".edu", '.edu /admin' |set-content $_.file}
Get-Content : Cannot bind argument to parameter 'Path' because it is null.
At line:1 char:42
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank YOU :)