I have a powershell script that is "Working" but not working. I am using a 64 bit Boot Image and my script is running but I keep getting this error in SMSTS.LOG.
My script works fine if I tell it to write host instead of create variable... What am I missing... Here is my code below.
$GetHardDriveType = Get-PhysicalDisk | Select-Object -ExpandProperty DeviceId | .\ssd_check.ps1 If ($GetHardDriveType -eq "TRUE"){ $tsenv = New-Object -COMObject Microsoft.SMS.TSEnvironment $tsevn.Value("isSSD") = "TRUE" } Else { $tsenv = New-Object -COMObject Microsoft.SMS.TSEnvironment $tsevn.Value("isSSD") = "FALSE" }