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-PASPlatform | # Get all platforms | |
Where-Object { $PSItem.PlatformId -eq 'WinDomain' } | # Filter specific platform | |
Select-Object -ExpandProperty Details | # Get the platform details | |
Get-PASPlatformPSMConfig | # Get the PSM Config for the Platform | |
Select-Object -ExpandProperty PSMConnectors # Output the connectors |
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
$VaultIP = "192.168.70.10" | |
$VaultUser = "SomeUser" | |
$VaultPW = Read-Host -AsSecureString -Prompt "Password for User $VaultUser`:" | |
$SafeName = "SomeSafe" | |
$FileCategories = @("CPMStatus","RetriesCount","CPMDisabled","LastTask") | |
#Install PoShPACLI | |
Install-Module PoShPACLI -Scope CurrentUser | |
#Import PoShPACLI |
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
(([char[]][int[]]((87..65) | ?{$_ -notmatch '66|67|68|70|71|75|77|81' } | |
)[10,2,4,3,1,-1,-7,-8,-12,-3,-2,-10,1,6,7,0,-2,5,4,12,13,9,9,1,-2,-7, | |
-12,-3,-13,-11,-4,-1,-11,-12] -join'' | |
) -replace [char](90177536/1mb),[char](1kb/32)) -replace '$',',' |