Skip to content

dmpe/powershell

Repository files navigation

Various PowerShell scripts

This repository contains various PowerShell scripts that have been developed over the time at my internships and jobs.

Registering and updating GitLab Runners on Windows Server, automatically

Problem: How to update, remotely, GitLab Runners without having access to Windows Server?

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. This 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.

These days, a better approach would be to run RPA software on target machine and code it visually...

Removal of (remote) user profiles from Windows OS

Inspired & 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.

  • Capability of creating and reading ini files (to the folder where ps1 is executed)
  • Deleting only those user profiles which have been selected by the admin
  • Deleting all (remote) profiles
  • 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

delete_user_profiles

Move Maven artefacts from Nexus 2 to Nexus 3

Initial situation: We have old nexus 2 server, with you having an access to the filesystem, which hosts among others maven artefacts. The goal is migrate them to an empty nexus 3 installation, e.g. via API. Moreover, when doing that, repositories (proxy & hosted) have to be extracted from nexus 2 and re-created on nexus 3.

Sources: