{"id":15192179,"url":"https://github.com/powershell/remotely","last_synced_at":"2025-10-02T06:32:36.784Z","repository":{"id":65985533,"uuid":"35299655","full_name":"PowerShell/Remotely","owner":"PowerShell","description":"Enable remote execution of scripts.  Works with Pester.","archived":true,"fork":false,"pushed_at":"2017-11-27T23:12:39.000Z","size":34,"stargazers_count":75,"open_issues_count":11,"forks_count":26,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-01-21T12:35:56.142Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PowerShell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-08T20:11:51.000Z","updated_at":"2024-09-17T18:02:00.000Z","dependencies_parsed_at":"2023-02-19T18:31:19.600Z","dependency_job_id":null,"html_url":"https://github.com/PowerShell/Remotely","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PowerShell/Remotely","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2FRemotely","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2FRemotely/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2FRemotely/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2FRemotely/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PowerShell","download_url":"https://codeload.github.com/PowerShell/Remotely/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2FRemotely/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277968828,"owners_count":25907418,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-02T02:00:08.890Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-27T21:06:09.815Z","updated_at":"2025-10-02T06:32:36.536Z","avatar_url":"https://github.com/PowerShell.png","language":"PowerShell","readme":"Synopsis\n============\nExecutes a script block against a remote runspace. Remotely can be used with Pester for executing script blocks on a remote system.\n\nDescription\n======================\nThe contents on the Remotely block are executed on a remote runspace. The connection information of the runspace is supplied in a CSV file of the format:\n\n```\nComputerName,Username,Password\nComputerName1,Username1,Password1\nComputerName2,Username2,Password2\n```\n\nThe filename must be `machineConfig.csv`.\n\nThe CSV file is expected to be placed next to this file. \n\nIf the CSV file is not found or username is not specified, the machine name is ignored and runspace to localhost\nis created for executing the script block.\n\nIf the password has a ',' then it needs to be escaped by using quotes like: \n\n```\nComputerName,Username,Password\nComputerName1,Username1,Password1\nComputerName2,Username2,\"Some,other,password\"\n```\n\nTo get access to the streams, use GetVerbose, GetDebugOutput, GetError, GetProgressOutput,\nGetWarning on the resultant object.\n\nExample\n============\nUsage in Pester:\n\n```powershell\nDescribe \"Add-Numbers\" {\n    It \"adds positive numbers\" {\n        Remotely { 2 + 3 } | Should Be 5\n    }\n\n    It \"gets verbose message\" {\n        $sum = Remotely { Write-Verbose -Verbose \"Test Message\" }\n        $sum.GetVerbose() | Should Be \"Test Message\"\n    }\n\n    It \"can pass parameters to remote block\" {\n        $num = 10\n        $process = Remotely { param($number) $number + 1 } -ArgumentList $num\n        $process | Should Be 11\n    }\n}\n```\n\nLinks\n============\n* https://github.com/PowerShell/Remotely\n* https://github.com/pester/Pester\n\nRunning Tests\n=============\nPester-based tests are located in ```\u003cbranch\u003e/Remotely.Tests.ps1```\n\n* Ensure Pester is installed on the machine\n* Run tests:\n    .\\Remotely.Tests.ps1\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowershell%2Fremotely","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpowershell%2Fremotely","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowershell%2Fremotely/lists"}