Closed denis-peshkov closed 5 years ago
As I understood, problem with the parameter "ToSession", and I have no ideas how to set it like an object that I got after New-PSSession
Each powershell script is executed within its own pipeline so anything created in a powershell script will be cleaned up when that script finishes executing. Also the library itself comes with built in remote support so there’s no need to use session. Your actually trying to create a remote session by connecting to the local machine, rather than connecting directly to the remote machine using the libraries built in aliases.
Could you help me, how to write a script that will:
Please!
I would use an online file storage service like S3 as an intermediary. Upload the zip to the S3 bucket then execute the remote script, which in turn downloads the zip and processes the files.
I even have a Cake addon for it 😄
Cool addon, but it isn't possible to use AWS for me, I need deploy to server in the same network (, Any ideas?
Hi!
I have task to do next powershell script:
Copy-Item .\tslint.json -Destination C:\WebSites\tml2\ -ToSession $session
I did:
But it fails with next error: