View onename
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +aaronparker is my blockchain ID. https://onename.com/aaronparker |
View Enable-OauthSkypeOnline.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Cred = Get-Credential | |
$session = New-CsOnlineSession -Credential $cred -Verbose -OverrideAdminDomain home.stealthpuppy.com | |
Import-PSSession $Session | |
Set-CsOAuthConfiguration -ClientAdalAuthOverride Allowed |
View IvantiApplicationControlMessageBox.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body{ | |
font-family:'Segoe UI','Regular'; | |
background-color:#E6E6E6; | |
color:#000; | |
font-size:11pt; | |
margin:0px; | |
padding:0px; | |
overflow:hidden; | |
} | |
.header,.description,.confirm-btn{ |
View Switch-EmsLicenses.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Connect to Office 365 | |
Connect-MsolService | |
# Get specific user accounts | |
Get-MsolUser -UserPrincipalName "bill.murray@stealthpuppy.com" | |
# Get license SKUs | |
Get-MsolAccountSku | |
# EMS licenses |
View Disable-AzureADUserPasswordExpiration.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install the Azure AD module and log into Azure AD | |
Install-Module AzureADPreview | |
Connect-AzureAD | |
# Get details of the specific account | |
$user = Get-AzureADUser -SearchString "user@domain.com" | |
# View password policy on the acccount | |
$user | Select-Object @{N = "PasswordNeverExpires"; E = {$_.PasswordPolicies -contains "DisablePasswordExpiration"}} |
View Get-AzureBlobItems.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Get-AzureBlobItems { | |
<# | |
.SYNOPSIS | |
Returns an array of items and properties from an Azure blog storage URL. | |
.DESCRIPTION | |
Queries an Azure blog storage URL and returns an array with properties of files in a Container. | |
Requires Public access level of anonymous read access to the blob storage container. | |
Works with PowerShell Core. | |
View Get-DigitalSignatures.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Get digital signatures from files in a target folder. | |
.DESCRIPTION | |
Gets digital signatures from .exe and .dll files from a specified path and sub-folders. | |
Retreives the certificate thumbprint, certificate name, certificate expiry, certificate validity and file path and outputs the results. | |
Output includes files that are not signed. | |
.NOTES |
View Enable-OauthExchangeOnline.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Cred = Get-Credential | |
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $Cred -Authentication Basic -AllowRedirection | |
Import-PSSession $Session | |
Set-OrganizationConfig -OAuth2ClientProfileEnabled $true |
View Expand-GzipArchive.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Expand-GzipArchive { | |
[CmdletBinding(SupportsShouldProcess = $False)] | |
param ( | |
[Parameter(Mandatory = $True, Position = 0)] | |
[ValidateNotNullOrEmpty()] | |
[ValidateScript( { If (Test-Path -Path $_ -PathType "Leaf") { $True } Else { Throw "Cannot find path $_." } })] | |
[System.String] $Path, | |
[Parameter(Mandatory = $False, Position = 1)] | |
[ValidateNotNullOrEmpty()] |
OlderNewer