{"action":"created","issue":{"url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/1069","repository_url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages","labels_url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/1069/labels{/name}","comments_url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/1069/comments","events_url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/1069/events","html_url":"https://github.com/chocolatey/chocolatey-coreteampackages/issues/1069","id":340161038,"node_id":"MDU6SXNzdWUzNDAxNjEwMzg=","number":1069,"title":"(skype) Fix for skype-autostart after update","user":{"login":"psdavid-muc","id":24878226,"node_id":"MDQ6VXNlcjI0ODc4MjI2","avatar_url":"https://avatars3.githubusercontent.com/u/24878226?v=4","gravatar_id":"","url":"https://api.github.com/users/psdavid-muc","html_url":"https://github.com/psdavid-muc","followers_url":"https://api.github.com/users/psdavid-muc/followers","following_url":"https://api.github.com/users/psdavid-muc/following{/other_user}","gists_url":"https://api.github.com/users/psdavid-muc/gists{/gist_id}","starred_url":"https://api.github.com/users/psdavid-muc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psdavid-muc/subscriptions","organizations_url":"https://api.github.com/users/psdavid-muc/orgs","repos_url":"https://api.github.com/users/psdavid-muc/repos","events_url":"https://api.github.com/users/psdavid-muc/events{/privacy}","received_events_url":"https://api.github.com/users/psdavid-muc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-11T09:24:21Z","updated_at":"2018-08-01T13:34:23Z","closed_at":null,"author_association":"NONE","body":"## Expected Behaviour\r\nSkype does not start after installation / update.\r\n\r\n## Current Behaviour\r\nRight now, if you install or update skype using the official skype package, skype will start automatically after installation/update. This is problematic since skype now runs as admin / with administrative privileges. Also, the user will have to re-enter his login-information (which is not necessary if not run as admin).\r\n\r\n## Possible Solution\r\nI've created a custom skype package we're using in our organization:\r\n\r\n```\r\n#stop on all errors\r\n$ErrorActionPreference = 'Stop'\r\n\r\n#set kill skype variable\r\n$stopSkypeProcess = 'Get-Process -Name \"skype\" | Stop-Process -Force'\r\n\r\n$packageArgs = @{\r\n(omitted)\r\n}\r\n\r\nInstall-ChocolateyPackage @packageArgs\r\nStart-ChocolateyProcessAsAdmin -Statements $stopSkypeProcess\r\n```\r\nI don't intend to start skype afterwards since the choco process runs as admin and thus skype will run with admin privileges as well. This might be uncomfortable for the user, but is safer \r\n\r\n\r\n## Steps to Reproduce (for bugs)\r\n<!--- Provide a link to a live example, or an unambiguous set of steps to -->\r\n<!--- reproduce this bug. Include code to reproduce, if relevant -->\r\n1. Have some version of skype installed on your computer\r\n2. Let choco update skype automatically\r\n3. If you've used skype before, your credentials are saved\r\n4. If skype opens automatically after the update and you have to insert your logon information, that might indicate that skype runs as admin/with administrative privileges. Also, check with procmon/taskmgr\r\n\r\n## Context\r\n<!--- How has this issue affected you? What are you trying to accomplish? -->\r\n<!--- Providing context helps us come up with a solution that is most useful in the real world -->\r\nUsually windows users don't have administrative rights (for obvious reasons). Skype should not run with administrative rights for security reasons.\r\n\r\n## Your Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n* Package Version used: (custom) 8.24.0.2, (official) 8.23.0.10\r\n* Operating System and version: Windows 10 Professional x64, v 1709 (Fall Creators Update)\r\n* Chocolatey version: 0.10.8\r\n* Install/uninstall gist: n/a\r\n"},"comment":{"url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/comments/409576336","html_url":"https://github.com/chocolatey/chocolatey-coreteampackages/issues/1069#issuecomment-409576336","issue_url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/1069","id":409576336,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTU3NjMzNg==","user":{"login":"fraenki","id":909706,"node_id":"MDQ6VXNlcjkwOTcwNg==","avatar_url":"https://avatars0.githubusercontent.com/u/909706?v=4","gravatar_id":"","url":"https://api.github.com/users/fraenki","html_url":"https://github.com/fraenki","followers_url":"https://api.github.com/users/fraenki/followers","following_url":"https://api.github.com/users/fraenki/following{/other_user}","gists_url":"https://api.github.com/users/fraenki/gists{/gist_id}","starred_url":"https://api.github.com/users/fraenki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fraenki/subscriptions","organizations_url":"https://api.github.com/users/fraenki/orgs","repos_url":"https://api.github.com/users/fraenki/repos","events_url":"https://api.github.com/users/fraenki/events{/privacy}","received_events_url":"https://api.github.com/users/fraenki/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T13:34:23Z","updated_at":"2018-08-01T13:34:23Z","author_association":"NONE","body":"https://github.com/chocolatey/chocolatey-coreteampackages/issues/1009"}}
{"actor":{"display_login":"fraenki"}}