UNSOLVED

ketema

updated

3 months ago

K

ketema

2 Posts

0

3799

August 11th, 2017 16:00

DellBios Provider remote

Greetings,

I am not able to access the DellSMBios drive on a remote machine/s when executing the following command.

Invoke-command {get-psdrive} -computername  

OR put in a simple word, how do I run these ps commands on multiple remote machines via the invoke-command? 

Thank you in advance.

  • Tarun Kr Agrawa

    1 Rookie

    •

    21 Posts

    3033

    0

    Posted August 21st, 2017 04:00

    Hi Ketema,

    Please run the following commands before executing the invoke.

    1. Enable-PSRemoting -force on both system (Client and Remote)

    2. Set-Item wsman:\localhost\client\TrustedHosts *  

    Now, run the invoke command as below and provide password in the pop up box.

    Invoke-command {get-psdrive} -computername   -credential

    For connecting multiple systems, you can write script and put above commands for individual system.

    To avoid pop up for password for each system you can use below command in the script.

    $secpwd=ConvertTo-SecureString -AsPlainText -force

    $mycred=New-Object System.Management.Automation.PSCredential( , $secpwd)

    Invoke-command {get-psdrive} -computername   -credential $mycred

    Thanks

    -Tarun

    #IWork4Dell