title: Enter-PSSession to custom endpoint: Cmdlet not recognized
body: <p>I am trying to setup an Endpoint-Server in my company and am struggling to connect to it. For testing I put a RcLogUtil Module in the Global Module Path <br/>
  <b>C:\windows\system32\WindowsPowershell\v1.0\Modules\RcLogUtil\</b><br/>
  that exports the functions<br/></p>
  
  <pre><code>'Out-LogToEventLog','New-LogMessage'
  </code></pre>
  
  <p>The Plan is to let a specific set of users access only those Logging-Functions.</p>
  
  <p>I create a SessionConfiguration:</p>
  
  <pre><code>New-PSSessionConfigurationFile -Path C:\Scripts\LoggerEp.pssc `
              -SessionType RestrictedRemoteServer `
              -LanguageMode FullLanguage `
              -ExecutionPolicy Unrestricted `
              -ModulesToImport 'RcLogUtil' `
              -VisibleFunctions 'Out-LogToEventLog' `
              -VisibleCmdlets 'Split-Path'
  </code></pre>
  
  <p>Register it:</p>
  
  <pre><code>Register-PSSessionConfiguration -Path C:\Scripts\LoggerEp.pssc `
                              -Name loggerep `
                              -ShowSecurityDescriptorUI 
  </code></pre>
  
  <p>And enter it on my local machine:</p>
  
  <pre><code>[W0216]&gt; Enter-PSSession -ComputerName mka-ps-endpoint -ConfigurationName loggerep
  </code></pre>
  
  <blockquote>
    <p>Enter-PSSession : One or more errors occurred processing the module
    'RcLogUtil' specified in the InitialSessionState object used to create
    this runspace. See the ErrorRecords property for a complete list of
    errors. The first error was: The term 'Split-Path' is not recognized
    as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that
    the path is correct and try again. At line:1 char:1
    + Enter-PSSession -ComputerName mka-ps-endpoint -ConfigurationName loggerep
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OpenError: (:) [Enter-PSSession], RunspaceOpenModuleLoadException
        + FullyQualifiedErrorId : ErrorLoadingModulesOnRunspaceOpen</p>
  </blockquote>
  
  <p>The huge question now is.. why is the Session unable to find Split-Path? Or how do I tell the Endpoint to load that particular cmdlet? 
  I successfully tried the same with SessionType=’Default’ and it worked but with all the powershell clutter around it.
  <br/>
  <br/>
  <br/>
  I would really apreciate any help I can get as I am stuck with this for quite some time now..
  Thanks!</p>