[Bash] Add users to groups in Linux

The script below is a simple script to create users on Linux and add them to a usergroup. This script is an example for a Linux project we did at Technova College. Not completely monkey-proof but at least there are some checks built-in! !/bin/bash clear echo Welcome...

[PowerShell] Check if file exists

The script below reads an input file from the command line and then checks if it exists. If not found it keeps prompting for a correct filename. FileToRead = Read-Host “Please enter the filename” $Found = “N” Do { if (Test-Path -LiteralPath...

[PowerShell] Check if AD Domain exists

This script checks if an Active Directory domain exists. If found it continues. If not it exits the script. $Domain = Read-Host “Please enter the domain name” try { Get-ADDomain -Identity $Domain | Out-Null Write-Host “[INFO] Domain found....