none
power shell command to for "enable-psremoting -force" on a remote machine

    Question

  • hi,

    i want to use the "enable-psremoting -force" via powershell on a remote machine.

    I've tried with the following

    Invoke-command -ComputerName $compName -Credential $compCred -ScriptBlock {enable-psremoting -force}

    but that doesnt work.

    is that generally possible? Which cmdlet is needed?

    greetings

    Thursday, June 21, 2012 2:15 PM

Answers