Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Find and replace a string in the registry

$
0
0

Hello,

I'm pretty new in PowerShell. I'm looking for a script to allow me find and replace a string in the registry base.

My goal is to find all the refereces to a shared folder (Forx example \\192.168.1.10) and replace them by the server name (\\servername).

I found this script on the net https://blog.stangroome.com/2007/08/02/powershell-registry-find-and-replace/ , but when I try to run it, I get the following error

Thanks.


Viewing all articles
Browse latest Browse all 21975

Trending Articles