{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":32131155,"defaultBranch":"master","name":"mhwcode","ownerLogin":"maphew","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2015-03-13T05:27:22.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/486200?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1697125539.0","currentOid":""},"activityList":{"items":[{"before":"a2b24177725bf82100c89ac78356644c3aa9b168","after":"51b28e4c9edc86155bf8245c882e1115c585afac","ref":"refs/heads/master","pushedAt":"2024-04-04T16:29:35.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"maphew","name":"matt wilkie","path":"/maphew","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/486200?s=80&v=4"},"commit":{"message":"fix: also pass parameters to the exe","shortMessageHtmlLink":"fix: also pass parameters to the exe"}},{"before":"f6058910a63ba5222f61ec359ce6389144a08274","after":"a2b24177725bf82100c89ac78356644c3aa9b168","ref":"refs/heads/master","pushedAt":"2024-04-04T16:03:51.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"maphew","name":"matt wilkie","path":"/maphew","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/486200?s=80&v=4"},"commit":{"message":"install winget using powershell","shortMessageHtmlLink":"install winget using powershell"}},{"before":"1ef8338e20ff24ddbe741af225e556b9d81ec416","after":"f6058910a63ba5222f61ec359ce6389144a08274","ref":"refs/heads/master","pushedAt":"2024-04-04T16:03:03.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"maphew","name":"matt wilkie","path":"/maphew","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/486200?s=80&v=4"},"commit":{"message":"doskey aliases update","shortMessageHtmlLink":"doskey aliases update"}},{"before":"1e2b50add17be14cbc5e813c424ddeb8dacede8e","after":"1ef8338e20ff24ddbe741af225e556b9d81ec416","ref":"refs/heads/master","pushedAt":"2023-10-16T19:15:10.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"maphew","name":"matt wilkie","path":"/maphew","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/486200?s=80&v=4"},"commit":{"message":"Relatively hands off install-micromamba script","shortMessageHtmlLink":"Relatively hands off install-micromamba script"}},{"before":"3dc0779ff0c4086c3c456f4a2e9dd22f0fcbea95","after":"1e2b50add17be14cbc5e813c424ddeb8dacede8e","ref":"refs/heads/master","pushedAt":"2023-10-16T18:19:45.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"maphew","name":"matt wilkie","path":"/maphew","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/486200?s=80&v=4"},"commit":{"message":"add get new version of this aliases_doskey.txt","shortMessageHtmlLink":"add get new version of this aliases_doskey.txt"}},{"before":"f74ab3eba722be77fd5721358526eac8856e8dd4","after":"3dc0779ff0c4086c3c456f4a2e9dd22f0fcbea95","ref":"refs/heads/master","pushedAt":"2023-10-16T18:13:48.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"maphew","name":"matt wilkie","path":"/maphew","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/486200?s=80&v=4"},"commit":{"message":"add example cmd to add to registry AutoRun","shortMessageHtmlLink":"add example cmd to add to registry AutoRun"}},{"before":"9a4a2db9d9ad62f3d1f17d80fef4be5e41fd29a3","after":"f74ab3eba722be77fd5721358526eac8856e8dd4","ref":"refs/heads/master","pushedAt":"2023-10-12T21:05:09.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"maphew","name":"matt wilkie","path":"/maphew","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/486200?s=80&v=4"},"commit":{"message":"report arcgis pro's primary library versions","shortMessageHtmlLink":"report arcgis pro's primary library versions"}},{"before":"c31e7a8fb460de257f80eedeb752808157bdfcee","after":"9a4a2db9d9ad62f3d1f17d80fef4be5e41fd29a3","ref":"refs/heads/master","pushedAt":"2023-10-12T15:45:39.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"maphew","name":"matt wilkie","path":"/maphew","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/486200?s=80&v=4"},"commit":{"message":"Remotely enable Remote Desktop (RDP)\n\n# Remotely enable Remote Desktop (RDP)\r\n\r\nJuly 12, 2018\r\n10:14 AM\r\n\r\nRequires: \r\n\t- SysInternals psexec\r\n\t- admin privileges on remote machine\r\n\r\n```\r\nsetlocal\r\nset .h=ENV-Y999999\r\npsexec \\\\%.h% reg add \"hklm\\system\\currentcontrolset\\control\\terminal server\" ^\r\n /f /v fDenyTSConnections /t REG_DWORD /d 0\r\npsexec \\\\%.h% netsh firewall set service remoteadmin enable\r\npsexec \\\\%.h% netsh firewall set service remotedesktop enable\r\nendlocal\r\n```\r\n\r\nScript assumes current user has remote admin credentials, add -u and -p to adjust if needed. I haven't found the reboot to be necessary in our environment. Most recently tested on Win10 Enterprise x64.\r\n\r\nSources\r\n\t• https://community.spiceworks.com/how_to/35529-enable-rdp-through-cmd-line\r\n\t• https://superuser.com/questions/567838/enable-remote-desktop-or-remote-administration-remotely \r\n\r\n\r\nIMPORTANT: Command executed successfully.\r\nHowever, \"netsh firewall\" is deprecated;\r\nuse \"netsh advfirewall firewall\" instead.\r\nFor more information on using \"netsh advfirewall firewall\" commands\r\ninstead of \"netsh firewall\", see KB article 947709\r\nat https://go.microsoft.com/fwlink/?linkid=121488\r\n\r\n-----------\r\nSomething like below is supposed to be the new way, but I've not been able to get them to work. 5 years later the deprecated method above still works \r\n\r\n```\r\nset .h=ENV-Y12345\r\npsexec \\\\%.h% netsh advfirewall firewall set rule group=\"remote admin\" new enable=Yes\r\npsexec \\\\%.h% netsh advfirewall firewall set rule group=\"remote desktop\" new enable=Yes\r\n```\r\n\r\nPowershell\r\n```\r\nSet-ItemProperty -Path 'HKLM:\\System\\CurrentControlSet\\Control\\Terminal Server' -name \"fDenyTSConnections\" -value 0\r\n\r\nEnable-NetFirewallRule -DisplayGroup \"Remote Desktop\"\r\n```\r\nFrom ","shortMessageHtmlLink":"Remotely enable Remote Desktop (RDP)"}},{"before":"456ce57c25203392c37e77b321b444ebf78ee6d9","after":"c31e7a8fb460de257f80eedeb752808157bdfcee","ref":"refs/heads/master","pushedAt":"2023-09-14T20:38:34.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"maphew","name":"matt wilkie","path":"/maphew","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/486200?s=80&v=4"},"commit":{"message":"Add aliases to CMD that are always available\n\nsparked by discovering that 'micromamba' is something that I consistently can't type without error or slowing down waay too much.","shortMessageHtmlLink":"Add aliases to CMD that are always available"}},{"before":"c68aadea40623bb0d9737a80e90811357cb28227","after":"456ce57c25203392c37e77b321b444ebf78ee6d9","ref":"refs/heads/master","pushedAt":"2023-09-14T18:06:28.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"maphew","name":"matt wilkie","path":"/maphew","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/486200?s=80&v=4"},"commit":{"message":"rename","shortMessageHtmlLink":"rename"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEKAOniAA","startCursor":null,"endCursor":null}},"title":"Activity · maphew/mhwcode"}