Set-WSManQuickConfig - Cannot find specified file

Welcome Forums General PowerShell Q&A Set-WSManQuickConfig - Cannot find specified file

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

1 year, 11 months ago.

  • Author
  • #26812

    Points: 0
    Rank: Member

    OS: Windows Server 2008 R2
    I wanted to Enable-PSRemoting but stuck with error with Set-WSManQuickConfig command.

    After typing Set-WSManQuickConfig in PS Console I get the following error:

    Set-WSManQuickConfig : Cannot find specified file.
    At line:1 char:21
    + Set-WSManQuickConfig <<<< + CategoryInfo : InvalidOperation: (:) [Set-WSManQuickConfig], InvalidOperationExce + FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.SetWSManQuickConfigCommand Firewall is turned off I've search web for answer to no avail. I hope someone here could help me.

  • #26822

    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    Ensure you're running the shell as Admin, and try Enable-PSRemoting.

  • #26843

    Points: 0
    Rank: Member

    Hi and thanks for answering,

    I'm running powershell as administrator and when I type Enable-PSRemoting I get error like before:

    WinRM Quick Configuration
    Running command "Set-WSManQuickConfig" to enable this machine for remote management through Wi
    This includes:
    1. Starting or restarting (if already started) the WinRM service
    2. Setting the WinRM service type to auto start
    3. Creating a listener to accept requests on any IP address
    4. Enabling firewall exception for WS-Management traffic (for http only).

    Do you want to continue?
    [Y] Yes [A] Yes to All [N] No [L] No to All Suspend [?] Help (default is "Y"): Y
    Set-WSManQuickConfig : Cannot find specified file.
    At line:50 char:33
    + Set-WSManQuickConfig < <<< -force + CategoryInfo : InvalidOperation: (:) [Set-WSManQuickConfig], InvalidOperationEx + FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.SetWSManQuickConfigCommand

    Maybe I'm missing some component on system? I don't know how can I verify this further.

The topic ‘Set-WSManQuickConfig - Cannot find specified file’ is closed to new replies.

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