{"action":"created","issue":{"url":"https://api.github.com/repos/jdhitsolutions/ISEScriptingGeek/issues/1","labels_url":"https://api.github.com/repos/jdhitsolutions/ISEScriptingGeek/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jdhitsolutions/ISEScriptingGeek/issues/1/comments","events_url":"https://api.github.com/repos/jdhitsolutions/ISEScriptingGeek/issues/1/events","html_url":"https://github.com/jdhitsolutions/ISEScriptingGeek/issues/1","id":108241351,"number":1,"title":"No $HOME is set for Administrator","user":{"login":"PoSh82","id":14829848,"avatar_url":"https://avatars.githubusercontent.com/u/14829848?v=3","gravatar_id":"","url":"https://api.github.com/users/PoSh82","html_url":"https://github.com/PoSh82","followers_url":"https://api.github.com/users/PoSh82/followers","following_url":"https://api.github.com/users/PoSh82/following{/other_user}","gists_url":"https://api.github.com/users/PoSh82/gists{/gist_id}","starred_url":"https://api.github.com/users/PoSh82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PoSh82/subscriptions","organizations_url":"https://api.github.com/users/PoSh82/orgs","repos_url":"https://api.github.com/users/PoSh82/repos","events_url":"https://api.github.com/users/PoSh82/events{/privacy}","received_events_url":"https://api.github.com/users/PoSh82/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-25T00:44:54Z","updated_at":"2015-09-25T08:14:04Z","closed_at":null,"body":"Hi Jeff\r\nI put in $profile for Admin account your ISEScriptingGeek module.\r\nIf I run ISE as Admin, there is no $HOME specified and there is an error message.\r\nI added these 2 lines as a workaround in my $profile for ISE:\r\nRemove-Variable -Force HOME\r\nSet-Variable HOME 'C:\\Users\\Administrator'\r\n\r\nCan you please tell me, why the Admin account has no $HOME specified? \r\n\r\nAnd can you please update the file ISEScriptingGeek.psm1 with these 2 lines at the top:\r\nif($env:USERNAME -eq 'Administrator')\r\n{ Set-Variable HOME 'C:\\Users\\Administrator' }\r\n\r\nThx in advance!\r\n\r\nWindows 8.1 Pro\r\n\r\n$PSVersionTable\r\nName                                    Value                                                                                                 \r\n----                                        -----                                                                                                 \r\nPSVersion                             4.0                                                                                                   \r\nWSManStackVersion              3.0                                                                                                   \r\nSerializationVersion                1.1.0.1                                                                                               \r\nCLRVersion                           4.0.30319.34209                                                                                       \r\nBuildVersion                           6.3.9600.17400                                                                                        \r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}                                                                                  \r\nPSRemotingProtocolVersion   2.2 "},"comment":{"url":"https://api.github.com/repos/jdhitsolutions/ISEScriptingGeek/issues/comments/143156139","html_url":"https://github.com/jdhitsolutions/ISEScriptingGeek/issues/1#issuecomment-143156139","issue_url":"https://api.github.com/repos/jdhitsolutions/ISEScriptingGeek/issues/1","id":143156139,"user":{"login":"PoSh82","id":14829848,"avatar_url":"https://avatars.githubusercontent.com/u/14829848?v=3","gravatar_id":"","url":"https://api.github.com/users/PoSh82","html_url":"https://github.com/PoSh82","followers_url":"https://api.github.com/users/PoSh82/followers","following_url":"https://api.github.com/users/PoSh82/following{/other_user}","gists_url":"https://api.github.com/users/PoSh82/gists{/gist_id}","starred_url":"https://api.github.com/users/PoSh82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PoSh82/subscriptions","organizations_url":"https://api.github.com/users/PoSh82/orgs","repos_url":"https://api.github.com/users/PoSh82/repos","events_url":"https://api.github.com/users/PoSh82/events{/privacy}","received_events_url":"https://api.github.com/users/PoSh82/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T08:14:04Z","updated_at":"2015-09-25T08:14:04Z","body":"Thx for your quick reply.\r\n\r\nMy Windows account has no admin rights and I have to enter the local admin credentials in order to start ISE if I want to run it via: Run As Administrator. Then the UAC prompt is asking for Admin credentials.\r\nSo ISE starts and then there is an error saying that -Path $HOME is an empty value. and if I look whats $HOME then there is nothing. It's not a bug in your Module, I just don't understand why there is no HOME set up automatically for Admin if I run ISE as Administrator with provided creds. This issue is at my notebook at home and at my work office there's no problem with that. But at my work office I have admin rights on the machine and doesn't need to enter Admin creds if I choose Run As Administrator.\r\n"}}