Skip to content

Instantly share code, notes, and snippets.

View J-DubApps's full-sized avatar

Julian West J-DubApps

View GitHub Profile
@J-DubApps
J-DubApps / 3rdP-Links.md
Created December 11, 2024 01:14
My personal list of 3rd Party M365 / Azure Tenant Mgmt Portals (integrated services, outside svcs, etc)
@J-DubApps
J-DubApps / MS-Portal-Links.md
Last active December 11, 2024 00:07
Microsoft Portal Admin Links - sourced (modified) from msportals.io site
@J-DubApps
J-DubApps / PS-links.md
Last active December 11, 2024 01:16
PowerShell links for administering Office 365
@J-DubApps
J-DubApps / Get-Members-Audit.ps1
Last active August 31, 2023 18:51
Creates an Array of usernames from Domain Admins group, then loops through each known DC to narrow down their last logon.
#Requires -Version 5.1
#Requires -PSEdition Desktop
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
<#
.SYNOPSIS
Provides a report on all current members of an AD group, and each member's logon in the on-prem AD.
.DESCRIPTION
Creates an Array of usernames from Domain Admins group, then loops through each known DC to narrow down their
last logon. Example group used is "Domain Admins".
@J-DubApps
J-DubApps / Set-TLS-Secure.ps1
Last active August 31, 2023 18:42
Disables insecure TLS/SSL Cipher protocols on Windows servers and prevents server from disclosing private IP addres
#Requires -Version 5.1
#Requires -PSEdition Desktop
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
<#
.SYNOPSIS
Disables insecure TLS/SSL Cipher protocols on Windows servers.
.DESCRIPTION
Loops through "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\" Server Secure Channel entries
and disables TLS 1.0, 1.1, and SSLv2 & 3.

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@J-DubApps
J-DubApps / Test-AzureCloudShell.ps1
Last active June 15, 2022 14:55
Checks if running PS Session within Azure Cloud Shell
#Requires -Version 5.1
<#
Name: Test-AzureCloudShell.ps1
31 May 2022
.NOTES
Author: Julian West
Creative GNU General Public License, version 3 (GPLv3);
________________________________________________
/ \
| _________________________________________ |
@J-DubApps
J-DubApps / InGroup_Whoami.ps1
Last active June 15, 2022 14:57
Check if the current user is in a specified group using output from the built-in whoami.exe utility.
<#
Name: InGroup_Whoami.ps1
05 April 2022
.NOTES
Author: Julian West
Creative GNU General Public License, version 3 (GPLv3);
_______________________________________________
/ \
| _________________________________________ |
| | | |
@J-DubApps
J-DubApps / InGroup.ps1
Last active June 15, 2022 14:58
PS Function to check group membership of the current user using .NET WindowsIdentity Class
function InGroup {
<#
Name: InGroup.ps1
05 April 2022
.NOTES
Author: Julian West
Creative GNU General Public License, version 3 (GPLv3);
________________________________________________
/ \
| _________________________________________ |
Param($RegPath, $Property)
Try {
$Item = Get-ItemProperty -Path $RegPath -Name $Property -ErrorAction Stop
$ItemProperty = $Item | Select -ExpandProperty $Property
Return $ItemProperty
}
Catch {
Return $null
}