{"action":"created","issue":{"url":"https://api.github.com/repos/darkoperator/Posh-SSH/issues/15","labels_url":"https://api.github.com/repos/darkoperator/Posh-SSH/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/darkoperator/Posh-SSH/issues/15/comments","events_url":"https://api.github.com/repos/darkoperator/Posh-SSH/issues/15/events","html_url":"https://github.com/darkoperator/Posh-SSH/issues/15","id":60706145,"number":15,"title":"Cannot write to the registry key.","user":{"login":"al-heisner","id":11428904,"avatar_url":"https://avatars.githubusercontent.com/u/11428904?v=3","gravatar_id":"","url":"https://api.github.com/users/al-heisner","html_url":"https://github.com/al-heisner","followers_url":"https://api.github.com/users/al-heisner/followers","following_url":"https://api.github.com/users/al-heisner/following{/other_user}","gists_url":"https://api.github.com/users/al-heisner/gists{/gist_id}","starred_url":"https://api.github.com/users/al-heisner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/al-heisner/subscriptions","organizations_url":"https://api.github.com/users/al-heisner/orgs","repos_url":"https://api.github.com/users/al-heisner/repos","events_url":"https://api.github.com/users/al-heisner/events{/privacy}","received_events_url":"https://api.github.com/users/al-heisner/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/darkoperator/Posh-SSH/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-11T18:23:03Z","updated_at":"2015-03-18T23:02:45Z","closed_at":null,"body":"After initial installation, when trying to list or add to trusted hosts, I received errors \"Cannot write to the registry key.\" or \"You cannot call a method on a null-valued expression.\". This appears to be caused by the non-existence of HKCU/Software/PoshSSH key.\r\n\r\nThis seemed to fix it, you may want to add it to the module before the OpenSubKey('Software\\PoshSSH', $true) calls:\r\n\r\nNew-Item -Path HKCU:\\Software -Name PoshSSH –Force\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/darkoperator/Posh-SSH/issues/comments/83219052","html_url":"https://github.com/darkoperator/Posh-SSH/issues/15#issuecomment-83219052","issue_url":"https://api.github.com/repos/darkoperator/Posh-SSH/issues/15","id":83219052,"user":{"login":"darkoperator","id":521246,"avatar_url":"https://avatars.githubusercontent.com/u/521246?v=3","gravatar_id":"","url":"https://api.github.com/users/darkoperator","html_url":"https://github.com/darkoperator","followers_url":"https://api.github.com/users/darkoperator/followers","following_url":"https://api.github.com/users/darkoperator/following{/other_user}","gists_url":"https://api.github.com/users/darkoperator/gists{/gist_id}","starred_url":"https://api.github.com/users/darkoperator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkoperator/subscriptions","organizations_url":"https://api.github.com/users/darkoperator/orgs","repos_url":"https://api.github.com/users/darkoperator/repos","events_url":"https://api.github.com/users/darkoperator/events{/privacy}","received_events_url":"https://api.github.com/users/darkoperator/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T23:02:45Z","updated_at":"2015-03-18T23:02:45Z","body":"Please test release 1.7 pushed out today."}}