If I ssh from the Solaris server to the US server, the ssh connection is very fast, for example, file deletion may complete very soon.
But why is PowerShell migration so slow after entering a remote session and then deleting the item, it takes more than 10 seconds to complete.
Enter-PSSession -computerName test
remove-item 'C:\20010101.xls'
the next command will also run for more than 5 seconds.
[Environment]::UserDomainName + "\" + [Environment]::UserName+" on"+[Environment]::MachineName
One of the reasons I use remote access is because connecting to the remote desktop is slow because it needs to transfer a large amount of data from the server to the local one. And for remote use, I hope that this is only text transfer, which represents very little data, so I expect it to be much faster than a remote connection to the desktop. But the fact is that he is also very slow.
Any way to improve performance or find out where most of the time is going?
source
share