Title: running enable-wsmancredssp causes PowerShell to exit with error · Issue #2599 · PowerShell/PowerShell · GitHub
Open Graph Title: running enable-wsmancredssp causes PowerShell to exit with error · Issue #2599 · PowerShell/PowerShell
X Title: running enable-wsmancredssp causes PowerShell to exit with error · Issue #2599 · PowerShell/PowerShell
Description: Steps to reproduce enable-wsmancredssp -DelegateComputer ServerA.foo.xyz.com -Role Client -Force Expected behavior not to crash Actual behavior Unhandled Exception: System.InvalidCastException: Unable to cast COM object of type 'Microsof...
Open Graph Description: Steps to reproduce enable-wsmancredssp -DelegateComputer ServerA.foo.xyz.com -Role Client -Force Expected behavior not to crash Actual behavior Unhandled Exception: System.InvalidCastException: Una...
X Description: Steps to reproduce enable-wsmancredssp -DelegateComputer ServerA.foo.xyz.com -Role Client -Force Expected behavior not to crash Actual behavior Unhandled Exception: System.InvalidCastException: Una...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2599
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"running enable-wsmancredssp causes PowerShell to exit with error","articleBody":"\r\nSteps to reproduce\r\n------------------\r\nenable-wsmancredssp -DelegateComputer ServerA.foo.xyz.com -Role Client -Force\r\n\r\nExpected behavior\r\n-----------------\r\nnot to crash\r\n\r\nActual behavior\r\n---------------\r\nUnhandled Exception: System.InvalidCastException: Unable to cast COM object of type 'Microsoft.WSMan.Management.GPClass'\r\n to interface type 'Microsoft.WSMan.Management.IGroupPolicyObject'. This operation failed because the QueryInterface cal\r\nl on the COM component for the interface with IID '{EA502723-A23D-11D1-A7D3-0000F87571E3}' failed due to the following e\r\nrror: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).\r\n at Microsoft.WSMan.Management.EnableWSManCredSSPCommand.UpdateCurrentUserRegistrySettings() in C:\\Users\\jimtru\\src\\github\\Forks\\JamesWTruher\\PowerShell-1\\src\\Microsoft.WSMan.Management\\CredSSP.cs:line 733\r\n at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n```powershell\r\n\u003e $PSVersionTable\r\nName Value\r\n---- -----\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nPSVersion 6.0.0-alpha\r\nPSRemotingProtocolVersion 2.3\r\nCLRVersion\r\nWSManStackVersion 3.0\r\nGitCommitId v6.0.0-alpha.11-64-g1851e1a5dcc648dec6170d037109775b3dce0038\r\nBuildVersion 3.0.0.0\r\nSerializationVersion 1.1.0.1\r\nPSEdition Core\r\n```\r\n","author":{"url":"https://github.com/JamesWTruher","@type":"Person","name":"JamesWTruher"},"datePublished":"2016-11-03T20:41:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2599/PowerShell/issues/2599"}
| 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:5f7665bc-97fe-aa5f-0c32-5e40d4e387d2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9CC2:25C9D0:F4E8DA:14C345F:6A58379A |
| html-safe-nonce | 47daca9eaa2a1b34f162a2f50269ea91766841b79413329bf96d9ff332477906 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0MyOjI1QzlEMDpGNEU4REE6MTRDMzQ1Rjo2QTU4Mzc5QSIsInZpc2l0b3JfaWQiOiI0NTY4NTM1NjkwNjc0NDUyMzc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 83fb995eab676ded20ce58c750498e184dc6fbbbab421394e38562ef365f961e |
| hovercard-subject-tag | issue:187184399 |
| 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/2599/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1ba39250a9c23543cca9b218c92104a310945a658b3a787bc2f460273fb8c0c5/PowerShell/PowerShell/issues/2599 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1ba39250a9c23543cca9b218c92104a310945a658b3a787bc2f460273fb8c0c5/PowerShell/PowerShell/issues/2599 |
| og:image:alt | Steps to reproduce enable-wsmancredssp -DelegateComputer ServerA.foo.xyz.com -Role Client -Force Expected behavior not to crash Actual behavior Unhandled Exception: System.InvalidCastException: Una... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JamesWTruher |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width