Files
PowerShell-PSDscResources/Examples/Sample_User_CreateUser.ps1
T
Simon Heather 2a7b5eef2b Revert "Fix example dir BOM files"
This reverts commit 590a77441f.
2019-04-28 18:49:16 +01:00

17 lines
424 B
PowerShell

Configuration UserExample
{
param (
[System.Management.Automation.PSCredential]
$PasswordCredential
)
Import-DscResource -ModuleName PSDscResources
User UserExample
{
Ensure = 'Present' # To ensure the user account does not exist, set Ensure to "Absent"
UserName = 'SomeUserName'
Password = $PasswordCredential # This needs to be a credential object
}
}