Skip to content

Instantly share code, notes, and snippets.

@p0w3rsh3ll
Created August 23, 2017 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save p0w3rsh3ll/77bf3ed0c765a96cb88faa95300c1306 to your computer and use it in GitHub Desktop.
Save p0w3rsh3ll/77bf3ed0c765a96cb88faa95300c1306 to your computer and use it in GitHub Desktop.
Configuration NetCeaseConfig {
Param (
[string[]]$NodeName = 'localhost'
)
Import-DscResource –ModuleName 'PSDesiredStateConfiguration'
Node $NodeName
{
Registry NetCease
{
Key = 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\DefaultSecurity'
ValueName = 'SrvsvcSessionInfo'
Ensure = 'Present'
Force = $true
ValueData = '010004801400000020000000000000002C00000001010000000000051200000001010000000000051200000002008C000600000000001400FF011F0001010000000000050300000000001400FF011F0001010000000000050400000000001400FF011F000101000000000005060000000000180013000F00010200000000000520000000200200000000180013000F00010200000000000520000000230200000000180013000F0001020000000000052000000025020000'
ValueType = 'Binary'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment