DellBios Provider remote - Dell Client PowerShell Provider - Client and Mobile Solutions - Dell Community

DellBios Provider remote

Client and Mobile Solutions

Client and Mobile Solutions
Learn how to Deploy, Manage, Secure, and Virtualize Enterprise Client and Mobility solutions from experts and peers.

DellBios Provider remote

This question is not answered


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

Invoke-command {get-psdrive} -computername <remotecomputername> 

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.

All Replies
  • 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 <remote computer name>  -credential <username>

    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 <password> -AsPlainText -force

    $mycred=New-Object System.Management.Automation.PSCredential(<user name>, $secpwd)

    Invoke-command {get-psdrive} -computername <remote computer name>  -credential $mycred