Examples/Resources/xComputer/4-RenameComputerInWorkgroup.ps1
<#
.EXAMPLE This example will set the machine name to 'Server01' while remaining in the workgroup. #> Configuration Example { param ( [Parameter()] [System.String[]] $NodeName = 'localhost' ) Import-DscResource -Module xComputerManagement Node $NodeName { xComputer NewName { Name = 'Server01' } } } |