New-PSSession : [My-pc] Connecting to remote server My-pc failed with the following error message : WinRM cannot process the request. The following error with errorcode 0x8009030e occurred while using Negotiate authentication: A specified logon session does not exist. It may already have been terminated. Possible causes are: -The user name or password specified are invalid. -Kerberos is used when no authentication method and no user name are specified. -Kerberos accepts domain user names, but not local user names. -The Service Principal Name (SPN) for the remote computer name and port does not exist. -The client and remote computers are in different domains and there is no trust between the two domains. After checking for the above issues, try the following: -Check the Event Viewer for events related to authentication. -Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport. Note that computers in the TrustedHosts list might not be authenticated. -For more information about WinRM configuration, run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic. Other Possible Cause: -The domain or computer name was not included with the specified credential, for example: DOMAIN\UserName or COMPUTER\UserName. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:3209 char:9 + $CS = New-PSSession -ComputerName "$CompName" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin gTransportException + FullyQualifiedErrorId : 1312,PSSessionOpenFailed Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:346 char:32 + $CompSysObj = Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:420 char:32 + $enclosure = Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Cannot index into a null array. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:422 char:3 + $ChassisNo = $enclosure.ChassisTypes[0] + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : NullArray Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:440 char:33 + $BIOSObject = Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Get-BiosType : Cannot bind argument to parameter 'CS' because it is null. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:468 char:30 + Switch (Get-BiosType -CS $CS) { + ~~~ + CategoryInfo : InvalidData: (:) [Get-BiosType], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-BiosType Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:507 char:32 + $CPU_Object = Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:556 char:33 + $MemoryInfo = Invoke-Command @ICArgs | + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Get-MaxLength : Cannot bind argument to parameter 'TestObj' because it is null. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:560 char:29 + Get-MaxLength -TestObj $MemoryInfo.Manufacturer -MinLen 12 + ~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Get-MaxLength], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MaxLength Format-Table : The Width key has no value. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:578 char:31 + $MemoryInfo = $MemoryInfo | Format-Table -Property $fmtMEM | + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Format-Table], NotSupportedException + FullyQualifiedErrorId : DictionaryKeyMissingValue,Microsoft.PowerShell.Commands.FormatTableCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:650 char:27 + $Video = Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:703 char:26 + $Mons = Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Add-Member : Cannot bind argument to parameter 'InputObject' because it is null. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:708 char:11 + $Mons | Add-Member @AMArgs + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Add-Member], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.AddMemberCo mmand Get-MaxLength : Cannot bind argument to parameter 'TestObj' because it is null. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:757 char:35 + $MNLen = Get-MaxLength -TestObj $Mons.Name -MinLen 12 + ~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Get-MaxLength], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MaxLength Get-MaxLength : Cannot bind argument to parameter 'TestObj' because it is null. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:758 char:35 + $MFLen = Get-MaxLength -TestObj $Mons.Manufacturer -MinLen 12 + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Get-MaxLength], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MaxLength Format-Table : The Width key has no value. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:785 char:18 + $mons | Format-Table -Property $monfmt | Out-String + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Format-Table], NotSupportedException + FullyQualifiedErrorId : DictionaryKeyMissingValue,Microsoft.PowerShell.Commands.FormatTableCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:819 char:35 + $PhyDiskInfo = Invoke-Command @PDIArgs + ~~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Add-Member : Cannot bind argument to parameter 'InputObject' because it is null. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:826 char:20 + $PhyDiskInfo | Add-Member @AMArgs + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Add-Member], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.AddMemberCo mmand Add-Member : Cannot bind argument to parameter 'InputObject' because it is null. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:831 char:20 + $PhyDiskInfo | Add-Member @AMArgs + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Add-Member], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.AddMemberCo mmand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:847 char:35 + $RotateSpeed = Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Cannot index into a null array. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:885 char:23 + $TrimStatus = (&{If([int]$TrimVal[1] -eq 0) + ~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : NullArray Get-MaxLength : Cannot bind argument to parameter 'TestObj' because it is null. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:895 char:28 + Get-MaxLength -TestObj $PhyDiskInfo.Model -MinLen 4 + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Get-MaxLength], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MaxLength Get-MaxLength : Cannot bind argument to parameter 'TestObj' because it is null. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:897 char:28 + Get-MaxLength -TestObj $PhyDiskInfo.SerialNumber -MinLen 13 + ~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Get-MaxLength], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MaxLength Format-Table : The Width key has no value. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:932 char:12 + Format-Table -Property $fmtPhyDisk1 | Out-String + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Format-Table], NotSupportedException + FullyQualifiedErrorId : DictionaryKeyMissingValue,Microsoft.PowerShell.Commands.FormatTableCommand Format-Table : The Width key has no value. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:941 char:12 + Format-Table -Property $fmtPhyDisk2 | Out-String + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Format-Table], NotSupportedException + FullyQualifiedErrorId : DictionaryKeyMissingValue,Microsoft.PowerShell.Commands.FormatTableCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:2577 char:18 + Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1002 char:34 + $Partitions = Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Add-Member : Cannot bind argument to parameter 'InputObject' because it is null. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1006 char:19 + $Partitions | Add-Member @AMArgs + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Add-Member], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.AddMemberCo mmand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1040 char:30 + $CD = Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1075 char:34 + $MappedDrives = Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1138 char:33 + $ShareInfo = Invoke-Command @ICArgs | + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1284 char:31 + $NetInfo = Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Get-MaxLength : Cannot bind argument to parameter 'TestObj' because it is null. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1286 char:39 + $NameLen = Get-MaxLength -TestObj $NetInfo.Name -MinLen 10 + ~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Get-MaxLength], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MaxLength Format-Table : The Width key has no value. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1298 char:12 + Format-Table -Property $fmtNet -wrap | Out-String + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Format-Table], NotSupportedException + FullyQualifiedErrorId : DictionaryKeyMissingValue,Microsoft.PowerShell.Commands.FormatTableCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1317 char:30 + $IPInfo = invoke-command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1379 char:39 + $tboxPrinters.Text = Invoke-Command @ICArgs | + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1392 char:29 + $CurOS = Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:2739 char:30 + Invoke-Command -Session $cs -ScriptBlock $SBCode + ~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1419 char:36 + $LastBootUpTime = Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1439 char:35 + $OSCompacted = Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1465 char:30 + $RO = Invoke-Command @ROArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:2439 char:24 + $av = Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:2689 char:19 + Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Get-MaxLength : Cannot bind argument to parameter 'TestObj' because it is null. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1642 char:36 + $UIDLen = Get-MaxLength -TestObj $uai.Name -MinLen 6 + ~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Get-MaxLength], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MaxLength Get-MaxLength : Cannot bind argument to parameter 'TestObj' because it is null. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1643 char:36 + $WGLen = Get-MaxLength -TestObj $uai.Domain -MinLen 9 + ~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Get-MaxLength], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MaxLength Format-Table : The Width key has no value. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1664 char:19 + $uai = $uai | Format-Table -Property $fmtAcct | Out-String + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Format-Table], NotSupportedException + FullyQualifiedErrorId : DictionaryKeyMissingValue,Microsoft.PowerShell.Commands.FormatTableCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1736 char:33 + $DriverInfo = Invoke-Command @ICArgs | + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Get-MaxLength : Cannot bind argument to parameter 'TestObj' because it is null. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1742 char:28 + Get-MaxLength -TestObj $DriverInfo.DriverVersion -MinLen 14 + ~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Get-MaxLength], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-MaxLength Format-Table : The Width key has no value. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1755 char:19 + $DriverInfo | Format-Table -Property $fmtDRVR | Out-String + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Format-Table], NotSupportedException + FullyQualifiedErrorId : DictionaryKeyMissingValue,Microsoft.PowerShell.Commands.FormatTableCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1935 char:26 + $Prop = Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1953 char:28 + $Prop = Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand You cannot call a method on a null-valued expression. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1957 char:23 + ARIV = ([Bool]$($Prop.HibernateEnabled.Equals(1)))} + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1970 char:18 + Invoke-Command @ICArgs | + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1989 char:28 + $UAC = invoke-command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand You cannot call a method on a null-valued expression. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:1991 char:3 + $ARArgs = @{ARIN = 'Registry: UAC Enabled' + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:2005 char:30 + $ScvsList = Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:2059 char:34 + $colBatStatus = Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Invoke-Command : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:2129 char:31 + $colItems = Invoke-Command @ICArgs + ~~~~~~~ + CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand Remove-PSSession : Cannot bind argument to parameter 'Session' because it is null. At C:\users\**********\utilities\cmspcinfo\CMsPCInfo-PSDev3.ps1:3213 char:29 + Remove-PSSession -Session $CS + ~~~ + CategoryInfo : InvalidData: (:) [Remove-PSSession], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.RemovePSSes sionCommand PS C:\users\**********\utilities\cmspcinfo>