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
Get-InstalledPSResource -Scope CurrentUser | | |
Group-Object -Property Name | | |
ForEach-Object -Process { | |
$VersionsToRemove = $PSItem.Group | Sort-Object -Property Version -Descending | Select-Object -Skip 1 | |
foreach ($Version in $VersionsToRemove) { | |
Uninstall-PSResource -Verbose -Name $Version.Name -Version $Version.Version -SkipDependencyCheck | |
} | |
} |
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
var storage = { | |
properties: { | |
primaryEndpoints: { | |
dfs: 'https://frooshtinkering.dfs.core/' | |
web: 'https://frooshtinkering.z26.web.core/' | |
blob: 'https://frooshtinkering.blob.core/' | |
queue: 'https://frooshtinkering.queue.core/' | |
table: 'https://frooshtinkering.table.core/' | |
file: 'https://frooshtinkering.file.core/' | |
} |
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
#Requires -Version 5.1 | |
#Requires -RunAsAdministrator | |
Param ( | |
# Woo, Password Based Key Derivation Function number 2 | |
[ValidateSet('PBKDF2', 'SP800_108_CTR_HMAC')] | |
[string] | |
$KdfAlgorithm = 'PBKDF2', | |
# Honestly, SHA512 is the default on Server 2022, but this might also work on older Server versions |
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<TrustFrameworkPolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
xmlns="http://schemas.microsoft.com/online/cpim/schemas/2013/06" | |
PolicySchemaVersion="0.3.0.0" | |
TenantId="__B2CTenantName__" | |
PolicyId="__BaseFileName__" | |
DeploymentMode="__deployment_mode__" | |
PublicPolicyUri="https://__B2CTenantName__/__BaseFileName__"> |
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
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA512 | |
Date: 6 November 2020 | |
OpenPGP Key Transition Statement for Robin Frousheger | |
I have created a new OpenPGP key and will be transitioning away from my | |
old key. The old key has not been compromised but has been set to | |
expire soon. All future correspondence should be encrypted to the new |
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
#Requires -Version 5.1 | |
Set-StrictMode -Version Latest | |
$VerbosePreference = [System.Management.Automation.ActionPreference]::Continue | |
$ErrorActionPreference = [System.Management.Automation.ActionPreference]::Stop | |
$UPnPReceivePort = [uint16] 1900 | |
$UPnPMulticastGroup_v4 = [System.Net.IPAddress]::Parse("239.255.255.250") | |
$UPnPMulticastGroup_v6 = [System.Net.IPAddress]::Parse("[FF02::C]") |
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
#Requires -Version 3 | |
#Requires -Modules LithnetRMA | |
[CmdletBinding()] | |
Param ( | |
# Username of the user to add | |
[Parameter(Mandatory = $true)] | |
[ValidateNotNullOrEmpty()] | |
[string] |
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
# Converted from https://github.com/axcheron/cisco_pwdecrypt/ | |
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingPlainTextForPassword', 'CiscoPassword')] | |
[CmdletBinding(PositionalBinding = $false)] | |
[OutputType([String])] | |
Param ( | |
[Parameter(Mandatory = $true, ValueFromPipeline = $true)] |
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
#Requires -Version 5 | |
[CmdletBinding()] | |
Param ( | |
[Parameter()] | |
[ValidateNotNullOrEmpty()] | |
[string] | |
$MIMBackupPath = "C:\MIMBackup" | |
, | |
[Parameter()] |
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
# | |
# Module manifest for module 'FIMAutomation' | |
# | |
@{ | |
# Script module or binary module file associated with this manifest. | |
RootModule = 'Microsoft.ResourceManagement.Automation.dll' | |
# Version number of this module. | |
ModuleVersion = '1.0' |
NewerOlder