Invoke Power Shell: The method or operation is not implemented

Invoke Power Shell: The method or operation is not implemented
i got this error when i try to use invoke powershell activity

Enter-PSSession -ComputerName ******
Rename-Item -Path ‘***\hello.txt’ -NewName “text.txt”

i try to enter to another machine when i run commend from windows powershell it work fine and make the file renamed

Hi @rpa13

Could you please showcase the following:

  • a screenshot of your workflow (or attach a sample project zip file) with all the configuration of your activity
  • version of the package that you are using

my uipath version 2021.4.4

@loginerror
there is the script i need to invoke
test.txt (125 Bytes)

Hi @rpa13,
Are you using any variables/collection? I see that you are using ‘mycomputer’ as a name which is not a correct name. There needs to be an IP address or at least the DNS name of a computer that exists in the environment. Please also make sure that the remote pc can properly accept the request.

i use no variables i use host name for the pc i want to access
the remote pc can properly accept the request … i run command in pc i want to access remotly Enable-pssession -force to make sure it accept request

Do these commands work outside of UiPath on the same machine?

@nameless yes it work when i write the commend direct in powershell

Try the command below in Invoke Powershell. Make sure to check IsScript
“Invoke-Command -ComputerName xxxxxxxxx -ScriptBlock {Rename-Item -Path C:\Users\xxxx\Desktop\test.txt -NewName C:\Users\xxxxx\Desktop\test_ren.txt}”

image

1 Like

@nameless i try this and it work well thank you very much friend

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.