Created
July 24, 2013 07:18
-
-
Save JamesDawson/6068625 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$cred = Get-Credential | |
configuration DscSecurity | |
{ | |
node LAB-WEB01 | |
{ | |
Script UserInfo | |
{ | |
GetScript = { return $null } | |
TestScript = { | |
Write-Verbose ("ENV username: '{0}'" -f $env:USERNAME) | |
Write-Verbose ("Windows Identity: '{0}'" -f [System.Security.Principal.WindowsIdentity]::GetCurrent().Name) | |
Write-Verbose ("Thread Principal: '{0}'" -f [System.Threading.Thread]::CurrentPrincipal.Identity.Name) | |
return $false | |
} | |
SetScript = { Write-Verbose ("Empty SetScript") } | |
Credential = $cred | |
} | |
} | |
} | |
DscSecurity |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment