mirror of
https://github.com/freedbygrace/Invoke-OperatingSystemDiskDetection.git
synced 2026-08-20 06:22:16 +00:00
Update Invoke-OperatingSystemDiskDetection.ps1
This commit is contained in:
@@ -320,6 +320,10 @@ Try
|
|||||||
$TSVariableDictionary.'OSDiskNumber' = $OutputObjectProperties.DesiredOperatingSystemDisk.DiskNumber
|
$TSVariableDictionary.'OSDiskNumber' = $OutputObjectProperties.DesiredOperatingSystemDisk.DiskNumber
|
||||||
$TSVariableDictionary.'OSDDiskCount' = $OutputObjectProperties.DiskListCount
|
$TSVariableDictionary.'OSDDiskCount' = $OutputObjectProperties.DiskListCount
|
||||||
|
|
||||||
|
Switch ($TSVariableDictionary.Keys.Count -gt 0)
|
||||||
|
{
|
||||||
|
{($_ -eq $True)}
|
||||||
|
{
|
||||||
ForEach ($TSVariable In $TSVariableDictionary.GetEnumerator())
|
ForEach ($TSVariable In $TSVariableDictionary.GetEnumerator())
|
||||||
{
|
{
|
||||||
$LoggingDetails.LogMessage = "$($GetCurrentDateTimeMessageFormat.Invoke()) - Attempting to the value of task sequence variable `"$($TSVariable.Key)`" to `"$($TSVariable.Value)`". Please Wait..."
|
$LoggingDetails.LogMessage = "$($GetCurrentDateTimeMessageFormat.Invoke()) - Attempting to the value of task sequence variable `"$($TSVariable.Key)`" to `"$($TSVariable.Value)`". Please Wait..."
|
||||||
@@ -334,6 +338,8 @@ Try
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Catch
|
Catch
|
||||||
{
|
{
|
||||||
$ErrorHandlingDefinition.Invoke(2, $True)
|
$ErrorHandlingDefinition.Invoke(2, $True)
|
||||||
|
|||||||
Reference in New Issue
Block a user