Forum Discussion
PowerShell implicit remoting without connection to server
I've done some more research, and made some changes to my local computer. I was somehow confused by what I discovered, so I wasn't precise enough in what I wrote above. I hope I have all what's needed now:
The FailoverClusters module is now installed locally in:
%SYSTEMROOT%\system32\WindowsPowerShell\v1.0\Modules.
Get-Module -ListAvailabledoesn't list the FailoverClusters module in the above folder.
Get-Command -Name 'Get-Cluster'initiates an implicit remote session, I can see the progress bar, and the folder:
Env:UserProfile\AppData\Local\Temp\remoteIpMoProxy_FailoverClusters_2.0.0.0_localhost_58329299-5d1e-4b26-8cb5-7dbb1f130650
is created.
(Get-Module -Name 'FailoverClusters').Namereturns:
C:\Users\admin.hinterleitner\AppData\Local\Temp\remoteIpMoProxy_FailoverClusters_2.0.0.0_localhost_58329299-5d1e-4b26-8cb5-7dbb1f130650\remoteIpMoProxy_FailoverClusters_2.0.0.0_localhost_58329299-5d1e-4b26-8cb5-7dbb1f130650.psm1
To me, this looks like PowerShell doesn't use the FailoverClusters module directly, but rather uses the implicit remoting technique to create a proxy module. I find this very confusing. The fact that Get-Module (see above) doesn't list the FailoverClusters module, though it exists in the %SYSTEMROOT%\system32\WindowsPowerShell\v1.0\Modules folder, puzzles me too.
I hope that somebody can explain what PowerShell does here, and if it does the same for other modules as well (and, maybe, why and how at least the FailoverClusters module causes PowerShell to do what it does).