Invoke-Command with FilePath and ArgumentList


i have written following line of code

invoke-command -filepath 'c:\program files\microsoft data protection manager\dpm\bin\attach-productionserver.ps1' -argumentlist ($dpmservername, $servername, $cred.username, $cred.password)

 

i error

invoke-command : parameter set cannot resolved using specified named parameters.





Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...