{"id":49528049,"url":"https://github.com/royashbrook/psagentdeploy","last_synced_at":"2026-05-02T04:04:57.665Z","repository":{"id":37212349,"uuid":"414732461","full_name":"royashbrook/PSAgentDeploy","owner":"royashbrook","description":"deploy script for PSAgentTemplate","archived":false,"fork":false,"pushed_at":"2023-07-06T01:00:29.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-28T17:58:03.422Z","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/royashbrook.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":"2021-10-07T19:30:05.000Z","updated_at":"2024-05-28T17:58:03.423Z","dependencies_parsed_at":"2022-08-30T02:41:18.182Z","dependency_job_id":null,"html_url":"https://github.com/royashbrook/PSAgentDeploy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/royashbrook/PSAgentDeploy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royashbrook%2FPSAgentDeploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royashbrook%2FPSAgentDeploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royashbrook%2FPSAgentDeploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royashbrook%2FPSAgentDeploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/royashbrook","download_url":"https://codeload.github.com/royashbrook/PSAgentDeploy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royashbrook%2FPSAgentDeploy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32522254,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"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":"2026-05-02T04:04:25.004Z","updated_at":"2026-05-02T04:04:57.626Z","avatar_url":"https://github.com/royashbrook.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PSAgentDeploy\ndeploy scripts for PSAgentTemplate\n\n# ssh support\nssh was added to enable deployment from macs. assumes ssh is already configured with keys and commands can be executed with `ssh user@target \"command\"` format. must also add a 'user' to settings.json in the jobs section.\n\nthis process initially was for deployment from a windows machine to another windows machine, but after switching to a mac there were some changes that had to be made. there seemed to be some hoops to jump through to make remote powershell sessions work on a mac, so since the required functionality for this script was simply copying files and running a command to schedule the task, ssh support was added.\n\nto enable this, need to see the following pages:\nhttps://techcommunity.microsoft.com/t5/itops-talk-blog/installing-and-configuring-openssh-on-windows-server-2019/ba-p/309540\n\nthere is a video there to follow as well, but there are the following issues:\n1. On the repair step, make sure you say NO when asked to give the service account read permissions\n2. On the repair step, i was setting up as another id so it asked to remove inheritance and my logged in id as acccess. i said yes. you can watch the video on the link above to see what the icacls output should look like\n3. when copying the authorized keys, since i was coming from a mac, i had to use / instead of \\ in the scp copy path. like below:\nscp ./id_rsa myid@host:C:/Users/myid/.ssh/authorized_keys\n\nsome paths and things had to be slightly modified in the deploy.ps1 since we are just running schtasks via ssh instead of using iex, but these were pretty minor.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froyashbrook%2Fpsagentdeploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froyashbrook%2Fpsagentdeploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froyashbrook%2Fpsagentdeploy/lists"}