Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Configuration MyDSC
- {
- param
- (
- [Parameter()]$Password
- )
- Node localhost
- {
- User MyUser
- {
- UserName = 'testman'
- Ensure = 'Present'
- Password = $Password
- }
- }
- }
- $configData = 'a'
- $configData = @{
- AllNodes = @(
- @{
- NodeName = 'localhost';
- PSDscAllowPlainTextPassword = $true
- }
- )
- }
- MyDSC -Password (Get-Credential -UserName 'testman' -Message 'Enter New Password') -ConfigurationData $configData
- Start-DscConfiguration -ComputerName localhost -Wait -Force -Verbose -path .MyDSC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement