Created
August 26, 2015 11:14
-
-
Save vhusker/a4ac6c93444aaac25d78 to your computer and use it in GitHub Desktop.
Resource Key error Parameters
This file contains 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
Configuration BuildHyperVHost{ | |
Param( | |
[string]$ComputerName, | |
[string]$HostIPAddress, | |
[string]$DeploymentFilesPath, | |
[string]$BaseVHDFile, | |
[string]$DestinationDrive | |
) | |
Import-DSCResource -ModuleName @{ModuleName="xComputerManagement";ModuleVersion="1.3.0"} | |
node localhost{ | |
File CopyDeploymentFiles{ | |
Type = "Directory" | |
Recurse = $True | |
SourcePath = $DeploymentFilesPath | |
DestinationPath = "C:\DeploymentFiles" | |
Ensure = "Present" | |
Force = $True | |
} | |
xComputer RenameComputer{ | |
Name = $ComputerName | |
} | |
} | |
} | |
BuildHyperVHost -OutputPath C:\Temp | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment