An open API service indexing awesome lists of open source software.

https://github.com/dmpe/powershell

Various PowerShell and Bash scripts
https://github.com/dmpe/powershell

git gitlab gitlab-ci gitlab-runner maven maven-repository nexus nexus-repository nexus3 powershell remote-server shell user-profiles winforms

Last synced: about 1 month ago
JSON representation

Various PowerShell and Bash scripts

Awesome Lists containing this project

README

        

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

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

![delete_user_profiles](images/delete_remote_user_profiles_gui.PNG)

## 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:

- https://community.spiceworks.com/how_to/124316-delete-user-profiles-with-powershell
- https://martin77s.wordpress.com/2018/02/14/remove-profiles-from-a-local-or-remote-computer/
- https://www.reddit.com/r/PowerShell/comments/9enay3/delete_user_profiles_remotely/