Skip to content

Instantly share code, notes, and snippets.

View josamontiel's full-sized avatar
🥑

Joseph A. M. josamontiel

🥑
View GitHub Profile
@josamontiel
josamontiel / inactiveUsers.ps1
Created March 1, 2024 23:15
A powershell script that will find all the inactive users in a directory (users who have not logged in for 90 + days) and outputs the results into a csv file.
# Function to check if Active Directory module is installed
function Check-ADModuleInstalled {
if (Get-Module -ListAvailable -Name ActiveDirectory) {
return $true
} else {
Write-Host "Active Directory module is not installed."
return $false
}
}
@josamontiel
josamontiel / startmeup.sh
Created July 5, 2023 13:58
Start up script
#!/usr/bin/env bash
# script for start up of needed apps and web pages
#.......................................................
open -a "Microsoft Outlook.app"
open -a "Microsoft Teams.app"
# Each link opens in a new tab
open -a "Chromium.app" "$LINK1" "$LINK2" "$LINK3" "$LINK4" "$LINK5"