mirror of
https://github.com/freedbygrace/Invoke-OperatingSystemDiskDetection.git
synced 2026-08-17 21:37:49 +00:00
Update Invoke-OperatingSystemDiskDetection.ps1
This commit is contained in:
@@ -320,12 +320,18 @@ Try
|
|||||||
$TSVariableDictionary.'OSDiskNumber' = $OutputObjectProperties.DesiredOperatingSystemDisk.DiskNumber
|
$TSVariableDictionary.'OSDiskNumber' = $OutputObjectProperties.DesiredOperatingSystemDisk.DiskNumber
|
||||||
$TSVariableDictionary.'OSDDiskCount' = $OutputObjectProperties.DiskListCount
|
$TSVariableDictionary.'OSDDiskCount' = $OutputObjectProperties.DiskListCount
|
||||||
|
|
||||||
ForEach ($TSVariable In $TSVariableDictionary.GetEnumerator())
|
Switch ($TSVariableDictionary.Keys.Count -gt 0)
|
||||||
{
|
{
|
||||||
$LoggingDetails.LogMessage = "$($GetCurrentDateTimeMessageFormat.Invoke()) - Attempting to the value of task sequence variable `"$($TSVariable.Key)`" to `"$($TSVariable.Value)`". Please Wait..."
|
{($_ -eq $True)}
|
||||||
Write-Verbose -Message ($LoggingDetails.LogMessage) -Verbose
|
{
|
||||||
|
ForEach ($TSVariable In $TSVariableDictionary.GetEnumerator())
|
||||||
|
{
|
||||||
|
$LoggingDetails.LogMessage = "$($GetCurrentDateTimeMessageFormat.Invoke()) - Attempting to the value of task sequence variable `"$($TSVariable.Key)`" to `"$($TSVariable.Value)`". Please Wait..."
|
||||||
|
Write-Verbose -Message ($LoggingDetails.LogMessage) -Verbose
|
||||||
|
|
||||||
$TSEnvironment.Value($TSVariable.Key) = $TSVariable.Value
|
$TSEnvironment.Value($TSVariable.Key) = $TSVariable.Value
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user