Forum Discussion
PowerShell implicit remoting without connection to server
Sorry to have bothered someone here. Research should be done correctly.
I guess I have finally found the answer to most of my questions.
The reason for PowerShell to use implicit remoting seems to be that the Compatibility feature is used as described in https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_windows_powershell_compatibility.
My interpretation:
If CompatiblePSEditions is not present in the module manifest, PowerShell Compatibility feature is used; the module is not listed with Get-Module -Listavailable.
If CompatiblePSEditions is either @('Desktop', 'Core') or @('Core'), the module is natively compatible with PowerShell.
If CompatiblePSEditions is @('Desktop'), the module is incompatible with PowerShell and not listed with Get-Module -Listavailable.
Hi ahinterl​,
What you're describing isn't related to the PowerShell edition given you mentioned you don't have the failover clustering module installed locally. You were correct a few posts above when you said it relates to remoting.
If you run Get-PSSession, you should see one or more, where one of those is allowing you to resolve the remote FailoverCluster commands.
The directory structure you've outlined two posts up is indicative that Import-PSSession was run to import the commands across from the remote host to your local client.
As to how the PowerShell session came about, it'd either be because you have left a remote session open in your current session or potentially have the relevant *-PSSession commandlets in one of the PowerShell start-up profiles:
Edited:
I've re-read your follow-up posts and I'm unclear on if you do have the FailoverClusters module installed locally or not.
If you run the following command in PowerShell (not to be confused with Windows PowerShell) and you do see that FailoverClusters is installed, then your earlier comments around compatibility-drive implicit remoting is correct.
However, if FailoverClusters is still missing after running this command, then it has nothing to do with compatibility and will be related to the *-PSSession commandlets as mentioned above.
Get-Module -ListAvailable -All -Name "FailoverClusters";
Cheers,
Lain