{"id":19301386,"url":"https://github.com/dmpe/powershell","last_synced_at":"2025-04-19T17:34:14.303Z","repository":{"id":147834671,"uuid":"156451619","full_name":"dmpe/powershell","owner":"dmpe","description":"Various PowerShell and Bash scripts","archived":false,"fork":false,"pushed_at":"2019-11-09T11:43:16.000Z","size":171,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master-new-3","last_synced_at":"2025-03-29T10:51:18.338Z","etag":null,"topics":["git","gitlab","gitlab-ci","gitlab-runner","maven","maven-repository","nexus","nexus-repository","nexus3","powershell","remote-server","shell","user-profiles","winforms"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmpe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-06T21:40:44.000Z","updated_at":"2024-12-22T17:26:58.000Z","dependencies_parsed_at":"2023-05-27T15:45:40.556Z","dependency_job_id":null,"html_url":"https://github.com/dmpe/powershell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmpe%2Fpowershell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmpe%2Fpowershell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmpe%2Fpowershell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmpe%2Fpowershell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmpe","download_url":"https://codeload.github.com/dmpe/powershell/tar.gz/refs/heads/master-new-3","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249750216,"owners_count":21320098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","gitlab","gitlab-ci","gitlab-runner","maven","maven-repository","nexus","nexus-repository","nexus3","powershell","remote-server","shell","user-profiles","winforms"],"created_at":"2024-11-09T23:17:50.298Z","updated_at":"2025-04-19T17:34:14.284Z","avatar_url":"https://github.com/dmpe.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Various PowerShell scripts\n\nThis repository contains various PowerShell scripts that have been developed over the time at my internships and jobs.\n\n## Registering and updating GitLab Runners on Windows Server, automatically\n\n**Problem:** How to update, remotely, GitLab Runners without having access to Windows Server?\n\n**Solution:** The goal is to install, register and setup GitLab Runner on Windows VM in a fashion which allows them to be updated automatically, e.g. through a scheduled pipeline.\nThis has been successfully tested in production and was (at least initially) aimed for large B2B enterprise applications - those which cannot be put inside K8S or anything like that.\n\nThese days, a better approach would be to run RPA software on target machine and code it visually...\n\n## Removal of (remote) user profiles from Windows OS\n\nInspired \u0026 based on a variety of existing source code (see list below), I have developed GUI-based (`WinForms`) application that can simplify deleting user profiles on Windows OS - remotely.\n\n- [X] Capability of creating and reading `ini` files (to the folder where `ps1` is executed)\n- [X] Deleting only those user profiles which have been selected by the admin\n- [X] Deleting all (remote) profiles\n- [X] While internal `PowerShell` console-based logging as well as `WinForms` GUI is in English, a GUI-based logging in the textbox on the right is in German\n\n![delete_user_profiles](images/delete_remote_user_profiles_gui.PNG)\n\n## Move Maven artefacts from Nexus 2 to Nexus 3\n\n**Initial situation:** \nWe have old nexus 2 server, with you having an access to the filesystem, which hosts among others `maven` artefacts. \nThe goal is migrate them to an empty nexus 3 installation, e.g. via API. \nMoreover, when doing that, repositories (proxy \u0026 hosted) have to be extracted from nexus 2 and re-created on nexus 3. \n\n### Sources:\n\n- https://community.spiceworks.com/how_to/124316-delete-user-profiles-with-powershell\n- https://martin77s.wordpress.com/2018/02/14/remove-profiles-from-a-local-or-remote-computer/\n- https://www.reddit.com/r/PowerShell/comments/9enay3/delete_user_profiles_remotely/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmpe%2Fpowershell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmpe%2Fpowershell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmpe%2Fpowershell/lists"}