Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Configuring Endpoints (Import-Module WebAdministration) problem

$
0
0

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 WebAdmin2
I 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.



Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>