Skip to content

Instantly share code, notes, and snippets.

@dsolodow
Last active March 10, 2020 02:55
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 dsolodow/4a9f02da6f8ac5d9bfecf990358a2184 to your computer and use it in GitHub Desktop.
Save dsolodow/4a9f02da6f8ac5d9bfecf990358a2184 to your computer and use it in GitHub Desktop.
$dplog = Get-ItemPropertyValue -Path 'HKLM:\SOFTWARE\Microsoft\SMS\DP\Logging\@GLOBAL' -name LogDirectory
New-SmbShare -Path $dplog -Name DP_LOG
icacls $dplog /grant "domain users:(oi)rx"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment