Register-PSSessionConfiguration - 'Cannot find drive'

Welcome Forums General PowerShell Q&A Register-PSSessionConfiguration - 'Cannot find drive'

This topic contains 4 replies, has 3 voices, and was last updated by

3 years, 11 months ago.

  • Author
  • #26564

    Topics: 9
    Replies: 17
    Points: 0
    Rank: Member

    I am attempting to register a PSSession configuration after creating a new PSSession configuration file. The params I am using are -path, -name, -securitydescriptorsddl, -runascredential. (I am following along with Don's CBT Nuggets demo).

    However I'm running into this error executing the cmdlet:

    dir : Cannot find drive. A drive with the name 'WSMan' does not exist.
    At line:98 char:3
    + dir 'WSMan:\localhost\Plugin\' -Force:$force | ? { $ -like "$filter" } | ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (WSMan:String) [Get-ChildItem], DriveNotFoundException
    + FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand

    New-Item : A parameter cannot be found that matches parameter name 'file'.
    At line:72 char:48
    + new-item -path WSMan:\localhost\Plugin -file "$filepath" -name "$pluginN ...
    + ~~~~~
    + CategoryInfo : InvalidArgument: (:) [New-Item], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.NewItemCommand

    Any suggestions on how to troubleshoot are welcome. Thanks!

  • #26567

    Topics: 13
    Replies: 4872
    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    If Remoting has not been enabled on the local computer, than the Wsman: drive won't exist.

  • #26569

    Topics: 9
    Replies: 17
    Points: 0
    Rank: Member


  • #26588

    Topics: 9
    Replies: 17
    Points: 0
    Rank: Member

    I'm sure I'm just late to the party here, but the custom endpoints feature is awesome! This is going to really influence how our team works. Many thanks to the Powerhell team and this community.

  • #26634

    Topics: 4
    Replies: 262
    Points: 60
    Rank: Member

    Hi Travis,

    It's a biggie for my team at work as well. Will finally be able to offload some of the simple tasks that need admin access to our first line folks.

    Worthwhile having a check of

    If you're interested in the next stage of how constrained endpoints can be implemented.

The topic ‘Register-PSSessionConfiguration - 'Cannot find drive'’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort