Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Script/Batch to remove a value from REG_MULTI_SZ

$
0
0

I am looking to do something that one would think is so simple, but am having trouble finding my answer.

The REG_MULTI_SZ Key

HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\NullSessionPipes

I simply want to script/automation to remove a single entry, specifically the BROWSER entry.

Red Query command returns
reg query HKLM\System\CurrentControlSet\Services\lanmanserver\parameters\ /v Nullsessionpipes
    Nullsessionpipes    REG_MULTI_SZ    COMNAP\0COMNODE\0SQL\QUERY\0LLSRPC\0BROWSER\0netlogon\0samr\0\0

I have not been able to get a Reg Delete command to successfully work for this.

I am aware of the GPO option Computer Configuration\Preferences\Windows Settings\Registry for this - but we have over 2000 systems across our org. and these values are different from system to system.
We essentially want to remove the BROWSER entry from the NullSessionPipes REG_MULTI_SZ Key from all our systems.

Any help would be much appreciated.

Thanks in advance.


Viewing all articles
Browse latest Browse all 15028

Trending Articles