Skip to content

Using the powershell script damages the Workstation service #8

@rwasef1830

Description

@rwasef1830

Enabling optimizations with the Powershell script erases the default keys in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters

Such as:
EnablePlainTextPassword
EnableSecuritySignature
RequireSecuritySignature
ServiceDll
ServiceDllUnloadOnStop

Which leads to breaking of the Workstation service on the next reboot and making it unable to start anymore with error code 2 "File not found"

I think the problem is New-Item -Force which is being used.

Here is a .reg file which repairs this damage:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters]
"EnablePlainTextPassword"=dword:00000000
"RequireSecuritySignature"=dword:00000000
"EnableSecuritySignature"=dword:00000001
"ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
  00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\
  77,00,6b,00,73,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,00,00
"ServiceDllUnloadOnStop"=dword:00000001

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions