Title: Allow -JobName and -HostName parameters in Invoke-Command · Issue #11443 · PowerShell/PowerShell · GitHub
Open Graph Title: Allow -JobName and -HostName parameters in Invoke-Command · Issue #11443 · PowerShell/PowerShell
X Title: Allow -JobName and -HostName parameters in Invoke-Command · Issue #11443 · PowerShell/PowerShell
Description: Summary of the new feature/enhancement I feel like this leans on the bug category... but I suppose it is a feature... Today, you can't use -HostName and -JobName together in the same call to Invoke-Command. PS > Invoke-Command -ScriptBlo...
Open Graph Description: Summary of the new feature/enhancement I feel like this leans on the bug category... but I suppose it is a feature... Today, you can't use -HostName and -JobName together in the same call to Invoke...
X Description: Summary of the new feature/enhancement I feel like this leans on the bug category... but I suppose it is a feature... Today, you can't use -HostName and -JobName together in the same call to In...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11443
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow -JobName and -HostName parameters in Invoke-Command","articleBody":"# Summary of the new feature/enhancement\r\n\r\nI feel like this leans on the bug category... but I suppose it is a feature...\r\n\r\nToday, you can't use `-HostName` and `-JobName` together in the same call to `Invoke-Command`.\r\n\r\n```\r\nPS > Invoke-Command -ScriptBlock { gci } -AsJob -HostName localhost -JobName foo\r\nInvoke-Command: Parameter set cannot be resolved using the specified named parameters. One or more parameters issued cannot be used together or an insufficient number of parameters were provided.\r\n```\r\n\r\nOnce I get rid of `-JobName` it works:\r\n\r\n```\r\nPS > Invoke-Command -ScriptBlock { gci } -AsJob -HostName localhost\r\n\r\nId Name PSJobTypeName State HasMoreData Location Command\r\n-- ---- ------------- ----- ----------- -------- -------\r\n5 Job5 RemoteJob Running True localhost gci\r\n```\r\n\r\n# Proposed technical implementation details (optional)\r\n\r\nCould this be as easy as allowing `JobName` parameter with this parameter set?","author":{"url":"https://github.com/TylerLeonhardt","@type":"Person","name":"TylerLeonhardt"},"datePublished":"2019-12-27T23:12:39Z","url":"https://github.com/PowerShell/PowerShell/issues/11443"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d14d6916-3b44-6bd4-45f8-168af4a79088 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E610:1BB1CE:1F6701:2AB4E8:6AFD5062 |
| html-safe-nonce | ec91a3634d0471c3d9cf7ab88c34e6f375d38f0e0c1b34298a0b7ff85596041b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjEwOjFCQjFDRToxRjY3MDE6MkFCNEU4OjZBRkQ1MDYyIiwidmlzaXRvcl9pZCI6IjY5NDE3NjQxODU1NjI2MzIyOTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 17202c1fd35356d60adf1acf7a6aaa88f65132f1b5cff252fefcd68424918d5e |
| hovercard-subject-tag | issue:543016407 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/11443/issue_layout |
| twitter:image | https://opengraph.githubassets.com/59f8295eb5f080665c88aaa5dd9280274522e90930a213fd42d3be14b52fa40e/PowerShell/PowerShell/issues/11443 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/59f8295eb5f080665c88aaa5dd9280274522e90930a213fd42d3be14b52fa40e/PowerShell/PowerShell/issues/11443 |
| og:image:alt | Summary of the new feature/enhancement I feel like this leans on the bug category... but I suppose it is a feature... Today, you can't use -HostName and -JobName together in the same call to Invoke... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TylerLeonhardt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width