I'm trying to create a new object in powershell and I get the follow
error:
"New-Object : Cannot find type [Reflection2.Session]: make sure the
assembly containing this type is loaded."
Here is the power shell code that I'm running that is returning the
error:
$confObj = New-Object "Reflection2.Session"
$confObj.Visible = $true
The following code DOES work when I create a vbs script:
Set confObj = CreateObject("Reflection2.Session")
confObj.Visible = True
If a assembly needs to be loaded, how do I find out which file to
load?
Thanks in advance!!


