nicholasdille / DSCTooling

My #PSDSC tool chain
http://nicholasdille.github.io/psdsc
MIT License
5 stars 3 forks source link

Parameter type for CimSession #21

Closed nicholasdille closed 9 years ago

nicholasdille commented 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?

nicholasdille commented 9 years ago

Must use Microsoft.Management.Infrastructure.CimSession as parameter type