{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/PowerShell-Docs/issues/2382","repository_url":"https://api.github.com/repos/PowerShell/PowerShell-Docs","labels_url":"https://api.github.com/repos/PowerShell/PowerShell-Docs/issues/2382/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/PowerShell-Docs/issues/2382/comments","events_url":"https://api.github.com/repos/PowerShell/PowerShell-Docs/issues/2382/events","html_url":"https://github.com/PowerShell/PowerShell-Docs/issues/2382","id":319314670,"number":2382,"title":"Version 6 Cookbook Document References Get-WMIObject","user":{"login":"doctordns","id":3630329,"avatar_url":"https://avatars3.githubusercontent.com/u/3630329?v=4","gravatar_id":"","url":"https://api.github.com/users/doctordns","html_url":"https://github.com/doctordns","followers_url":"https://api.github.com/users/doctordns/followers","following_url":"https://api.github.com/users/doctordns/following{/other_user}","gists_url":"https://api.github.com/users/doctordns/gists{/gist_id}","starred_url":"https://api.github.com/users/doctordns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doctordns/subscriptions","organizations_url":"https://api.github.com/users/doctordns/orgs","repos_url":"https://api.github.com/users/doctordns/repos","events_url":"https://api.github.com/users/doctordns/events{/privacy}","received_events_url":"https://api.github.com/users/doctordns/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-01T20:22:30Z","updated_at":"2018-05-10T14:36:13Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"\r\nIssue Details\r\n-----------------\r\nIf you navigate to: https://docs.microsoft.com/en-us/powershell/scripting/getting-started/cookbooks/collecting-information-about-computers?view=powershell-6, you see PowerShell V6's version of this document. It references Get-WMIObject which is not supported in PowerShell V6.\r\n\r\nVersion(s) of document impacted\r\n------------------------------\r\n- [X ] Impacts 6.1 document\r\n- [ X] Impacts 6.0 document\r\n- [ ] Impacts 5.1 document\r\n- [ ] Impacts 5.0 document\r\n- [ ] Impacts 4.0 document\r\n- [ ] Impacts 3.0 document\r\n\r\nReason(s) for not selecting all version of documents\r\n----------------------------------------------------\r\n- [ ] The documented feature was introduced in the selected version of PowerShell\r\n- [X ] This issue only shows up in selected versions of the document\r\n\r\nOne way to resolve this would be to re-draft the article to use Get-CIMInstance which works. I've just done a quick test and it looks like most of the code is trivial to change. By using the CIM cmdlets rather than then older WMI cmdlets, the system properties are not returned with Get-CimInstance, so that discussion can be dropped. \r\n\r\nAdditionally, the wrapper object for WMI data returned by Get-Ciminstance (Microsoft.Management.Infrastructure.CimInstance) has some interesting properties that could be documented in an update to this document.\r\n\r\nI'll happily do the re-write - and it should be a replacement for this document in ever version (Get-CimInstance was introduced, IIRC, in V3). \r\n\r\nComments?"},"comment":{"url":"https://api.github.com/repos/PowerShell/PowerShell-Docs/issues/comments/388072669","html_url":"https://github.com/PowerShell/PowerShell-Docs/issues/2382#issuecomment-388072669","issue_url":"https://api.github.com/repos/PowerShell/PowerShell-Docs/issues/2382","id":388072669,"user":{"login":"doctordns","id":3630329,"avatar_url":"https://avatars3.githubusercontent.com/u/3630329?v=4","gravatar_id":"","url":"https://api.github.com/users/doctordns","html_url":"https://github.com/doctordns","followers_url":"https://api.github.com/users/doctordns/followers","following_url":"https://api.github.com/users/doctordns/following{/other_user}","gists_url":"https://api.github.com/users/doctordns/gists{/gist_id}","starred_url":"https://api.github.com/users/doctordns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doctordns/subscriptions","organizations_url":"https://api.github.com/users/doctordns/orgs","repos_url":"https://api.github.com/users/doctordns/repos","events_url":"https://api.github.com/users/doctordns/events{/privacy}","received_events_url":"https://api.github.com/users/doctordns/received_events","type":"User","site_admin":false},"created_at":"2018-05-10T14:36:13Z","updated_at":"2018-05-10T14:36:13Z","author_association":"CONTRIBUTOR","body":"I was just making the point that my original issue had been dealt with by someone else. :-)\r\nThe issues around versioning are obviously challenging."}}
{"actor":{"display_login":"doctordns"}}