{"id":15486231,"url":"https://github.com/fakoua/deno_winrm","last_synced_at":"2026-05-03T04:37:49.090Z","repository":{"id":215551825,"uuid":"739220415","full_name":"fakoua/deno_winrm","owner":"fakoua","description":"deno_winrm is a Deno typescript client for the Windows Remote Management (WinRM) service. It allows you to invoke commands on target Windows machines using Deno.","archived":false,"fork":false,"pushed_at":"2024-01-26T20:12:12.000Z","size":86,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-19T07:06:32.528Z","etag":null,"topics":["deno","winrm","winrm-client","winrm-connector","winrm-service"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/fakoua.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-05T03:44:41.000Z","updated_at":"2024-02-07T16:43:16.000Z","dependencies_parsed_at":"2024-01-12T07:15:02.134Z","dependency_job_id":"7aede2df-a91e-4b39-a723-4a1cf3eafe97","html_url":"https://github.com/fakoua/deno_winrm","commit_stats":null,"previous_names":["fakoua/deno_winrm"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fakoua%2Fdeno_winrm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fakoua%2Fdeno_winrm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fakoua%2Fdeno_winrm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fakoua%2Fdeno_winrm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fakoua","download_url":"https://codeload.github.com/fakoua/deno_winrm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246056657,"owners_count":20716779,"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","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":["deno","winrm","winrm-client","winrm-connector","winrm-service"],"created_at":"2024-10-02T06:07:13.205Z","updated_at":"2026-05-03T04:37:44.063Z","avatar_url":"https://github.com/fakoua.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=fakoua_deno_winrm\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=fakoua_deno_winrm)\n# deno_winrm\ndeno_winrm is a Deno typescript client for the Windows Remote Management (WinRM) service. It allows you to invoke commands on target Windows machines using Deno.\n\n## Examples:\n\n### Without a context\nExecuting a command without a context, executes each command in a separate shell, the run command will get a shell, run the command then close the shell.\n\n```ts\nimport * as winrm from \"https://deno.land/x/deno_winrm/mod.ts\";\n\nconst context = new winrm.WinRMContext({\n  username: \"my_user\",\n  password: \"my_password\",\n}, \"machine_name_or_ip\");\n\nconst result = await context.runCommand(\"ipconfig /all\");\n\nif (result.exitCode === 0) {\n  console.log(result.stdout);\n} else {\n  console.log(result.stderr);\n}\n```\n\n### With context\nExecuting commands with context will run all the commands between openShell/closeShell within the same shell, the user should manually opens and close the shell.\nUsing context is faster and can be used with environment variables.\n\n```ts\nimport * as winrm from \"https://deno.land/x/deno_winrm/mod.ts\";\nconst context = new winrm.WinRMContext({username: \"user\", password: \"P@as$\"}, \"host\")\nawait context.openShell() // \u003c- open a shell\nlet res = await context.runCommand(\"dir\")\nconsole.log(res.stdout)\nres = await context.runCommand(\"date /t\")\nconsole.log(res.stdout)\nawait context.closeShell() // \u003c- close the shell\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffakoua%2Fdeno_winrm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffakoua%2Fdeno_winrm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffakoua%2Fdeno_winrm/lists"}