Skip to content

Instantly share code, notes, and snippets.

Darren Robinson darrenjrobinson

Block or report user

Report or block darrenjrobinson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Getting started with a Local PowerShell Jupyter Notebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@darrenjrobinson
darrenjrobinson / Audit Azure AD Registered Applications.ps1
Last active Feb 22, 2020
Enumerate Azure AD Registered Apps for expiring credentials and sign-in activity. Associated blogpost https://blog.darrenjrobinson.com/auditing-azure-ad-registered-applications/
View Audit Azure AD Registered Applications.ps1
# Creds
$tenantID = 'yourAADTenantID'
$clientID = 'aadAppID'
$clientSecret = (ConvertTo-SecureString 'aadAppSecret' -AsPlainText -Force)
$accessToken = Get-MsalToken -clientID $clientID -clientSecret $clientSecret -tenantID $tenantID | Select-Object -Property AccessToken
# MS Graph Apps URI
$aadAppsURI = 'https://graph.microsoft.com/v1.0/applications'
# Get Expiring Creds in x Days
$expiryCheck = 60
View Query Azure Log Analytics.ps1
$TenantId = 'yourAzureTenantID'
$loggingClientID = 'AzureADLoggingAppClientID'
$loggingSecret = 'AzureADLoggingAppClientSecret'
$logAnalyticsWorkspace = 'yourLogAnalyticsWorkspaceID'
$customLogName = "ourAppCustomLogs_CL"
# Get Access Token for Log Analytics to allow KQL Queries to get last ingested events in Custom Logs
$loginURL = "https://login.microsoftonline.com/$TenantId/oauth2/token"
$resource = "https://api.loganalytics.io"
$authbody = @{grant_type = "client_credentials"; resource = $resource; client_id = $loggingClientID; client_secret = $loggingSecret }
View UniversalDashboard-StockchartExample.ps1
import-module UniversalDashboard.Community
import-Module UniversalDashboard.UDFinancialChart
Get-UDDashboard | Stop-UDDashboard
$Theme = New-UDTheme -Name "darrenjrobinson" -Definition @{
'.dropdown-content' = @{
'min-width' = '450px'
}
'.btn-floating' = @{
View SailPoint IdentityNow Email Templates Configuration Report.ps1
# Document IdentityNow Email Templates Configuration
import-module SailPointIdentityNow
Get-IdentityNowOrg
Set-IdentityNowOrg -orgName 'yourOrgName'
$orgName = (Get-IdentityNowOrg).'Organisation Name'
$utime = [int][double]::Parse((Get-Date -UFormat %s))
# Get All Notification Templates
$getEmailTemplate = Invoke-IdentityNowRequest -uri "https://$($orgName).api.identitynow.com/cc/api/emailTemplate/list?_dc=$($utime)&filter=%7Bproperty%3A%20%22name%22%2C%20operation%3A%20%22EQ%22%2C%20value%3A%22Pending%20Access%20Request%20Cancelled%22%7D" -method get -headers Headersv3_JSON
View SailPoint IdentityNow Security Configuration Report.ps1
import-module SailPointIdentityNow
Get-IdentityNowOrg
Set-IdentityNowOrg -orgName 'yourOrgName'
# Document IdentityNow Security Configuration
$orgName = (Get-IdentityNowOrg).'Organisation Name'
# Output Path and Image
$reportImagePath = "C:\Reports\SailPoint IdentityNow 240px.png"
View AST-AX-3y.csv
Open High Close Low Volume Date
1.61 1.615 1.61 1.595 5272329 09-01-2017
1.61 1.61 1.59 1.585 4594488 10-01-2017
1.585 1.6 1.59 1.58 3310098 11-01-2017
1.6 1.605 1.585 1.58 2315660 12-01-2017
1.59 1.59 1.585 1.575 2214042 13-01-2017
1.59 1.597 1.59 1.58 3339078 16-01-2017
1.585 1.59 1.585 1.565 4616138 17-01-2017
1.59 1.59 1.56 1.56 7222720 18-01-2017
1.56 1.58 1.57 1.55 6027051 19-01-2017
View IdentityNow Source Config Documenter.ps1
# Document IdentityNow Source Configuration
# Get Source from SailPoint IdentityNow Module Config
$orgName = (Get-IdentityNowOrg).'Organisation Name'
$IDNSources = Get-IdentityNowSource
# Report SailPoint Logo Image
$reportImagePath = "C:\Reports\IdentityNow Source Reports\SailPoint IdentityNow 240px.png"
# Report Output Folder
$ReportOutputPath = "C:\Reports\IdentityNow Source Reports"
if ($IDNSources) {
@darrenjrobinson
darrenjrobinson / Set SailPointIdentityNow PowerShell Module Credentials.ps1
Last active Oct 21, 2019
Configure SailPointIdentityNow PowerShell Module Credentials v2 and v3 for use with the SailPoint IdentityNow PowerShell Module. Associated blogpost https://blog.darrenjrobinson.com/generate-sailpoint-identitynow-v2-v3-api-credentials/
View Set SailPointIdentityNow PowerShell Module Credentials.ps1
Import-Module SailPointIdentityNow
$orgName = "YOUR_ORG"
Set-IdentityNowOrg -orgName $orgName
# IdentityNow Admin User
$adminUSR = "YOUR_ADMIN_USER"
$adminPWD = 'YOUR_ADMIN_USER_PASSWORD'
$adminCreds = [pscredential]::new($adminUSR, ($adminPWD | ConvertTo-SecureString -AsPlainText -Force))
View Get IdentityNow VA Clusters.ps1
# IdentityNow Orgname
$orgName = "yourOrgName"
# IdentityNow Admin User
$adminUSR = [string]"YourAdminAccount".ToLower()
$adminPWDClear = 'yourAdminPassword'
# Generate the password hash
# Requires Get-Hash from PowerShell Community Extensions (PSCX) Module
# https://www.powershellgallery.com/packages/Pscx/3.2.2
You can’t perform that action at this time.