update
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
<#Param(
|
||||
[string]
|
||||
$SCTaskNum = "World"
|
||||
)
|
||||
|
||||
Write-Host "Hello, $WorldName!"#>
|
||||
|
||||
|
||||
Connect-ITDvCenter -Credential $Secret:ndgov_svcitdiaasauto -Verbose
|
||||
$NewVMParams = @{
|
||||
Name = "itdzmtest"+(100..999 | Get-Random) + ".nd.gov"
|
||||
ResourcePool = "WINDOWS1"
|
||||
Datastore = "WINDOWS1_FS92_Gen";
|
||||
DiskStorageFormat = "Thin";
|
||||
Template = "Windows Server 2022 Standard 2108.21";
|
||||
Location = Get-Cluster "WINDOWS1" | Get-Datacenter | Get-Folder -Name "_New Builds"
|
||||
}
|
||||
|
||||
New-VM @NewVMParams
|
||||
Disconnect-ITDvCenter
|
||||
|
||||
Reference in New Issue
Block a user