Closed nicholasdille closed 9 years ago
New-CimSession returns an object of type Microsoft.Management.Infrastructure.CimSession
But the following fails: Add-Type -AssemblyName Microsoft.Management.Infrastructure.CimSession
How do I ascertain that a function parameter is of type CimSession?
Must use Microsoft.Management.Infrastructure.CimSession as parameter type
New-CimSession returns an object of type Microsoft.Management.Infrastructure.CimSession
But the following fails: Add-Type -AssemblyName Microsoft.Management.Infrastructure.CimSession
How do I ascertain that a function parameter is of type CimSession?