Hello.
I have successfully created an endpoint that imports the webadministration module:
New-PSSessionConfigurationFile –ModulesToImport WebAdministration –LanguageMode ‘FullLanguage’ –SessionType ‘RestrictedRemoteServer’ –Path ‘c:\webadmin.pssc’
I have no problems registering the endpoint. However, when I try to connect to the endpoint using the following command:
Enter-PSSession -ComputerName USSRV001 -ConfigurationName WebAdmin2I receive the following message:
Cannot find drive. A drive with the name 'Function' does not exist.
Cannot find path 'C:\Windows\system32' because it does not exist.
Cannot find path 'C:\Windows\system32' because it does not exist.
Interestingly, when I configure an endpoint that imports the ActiveDirectory module, I have no problem. But when I configure an endpoint that imports the webadministration module, I get the errors listed above.
Does anyone know why I have this error messages?
Thank you.