Powershell Script / Bash

Balayuvaraj M 56 Reputation points
2021-12-23T12:24:56.33+00:00

Need a script to get iDRAC for multiple computer

When I try to get using PSEXEC or PSEXEC64 //computername racadm getniccfg command, got error with exit code 2 or 3

Need a powershell script or bash script to get IP details for the multiple remote servers

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 36,401 Reputation points
    2021-12-23T14:33:30.77+00:00

    got error

    What error did you get?

    If psexec can't find the executable it should say that.

    C:\>psexec \\localhost racadm.exe
    
    PsExec v2.2 - Execute processes remotely
    Copyright (C) 2001-2016 Mark Russinovich
    Sysinternals - www.sysinternals.com
    
    PsExec could not start racadm.exe on localhost:
    The system cannot find the file specified.
    

    If the folder where racadm is installed is not in the system path, then you have to include the full path.

    psexec \\computername "C\Program Files\Dell\WhateverFolder\racadm.exe" getniccfg
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.