Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion psPAS/Functions/Authentication/Remove-PASFIDO2Device.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ Function Remove-PASFIDO2Device {
)

BEGIN {


Assert-VersionRequirement -SelfHosted
Assert-VersionRequirement -RequiredVersion 14.6

}#begin
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# .ExternalHelp psPAS-help.xml
Function Remove-PASPTASecurityConfigurationProperty {
[CmdletBinding(SupportsShouldProcess = $true)]
param(
[parameter(
Mandatory = $true,
ValueFromPipelinebyPropertyName = $true
)]
[ValidateSet('PrivilegedUsersList', 'PrivilegedDomainGroupsList', 'ActiveDormantUserAlgorithmEnabled',
'ActiveDormantUserEventScore', 'ActiveDormantUserDays', 'ExcessiveAccessUserAlgorithmEnabled', 'ExcessiveAccessUserScoreRange',
'FailedVaultLogonAttemptsAlgorithmEnabled', 'FailedVaultLogonAttemptsScoreOptions', 'FailedVaultLogonAttemptsThreshold',
'FailedVaultLogonAttemptsTimeframe', 'IrregularDaysUserAlgorithmEnabled', 'IrregularDaysUserScoreRange', 'IrregularHoursUserAlgorithmEnabled',
'IrregularHoursUserExcludedUsernames', 'IrregularHoursUserScoreRange', 'IrregularIpUserAlgorithmEnabled', 'IrregularIpUserExcludedSourceIpsList',
'IrregularIpUserScoreRange', 'SCTAlgorithmEnabled', 'SCTEventScore', 'SCTExcludedAccountsList', 'SCTPasswordRetrievalTimeWindow',
'InteractiveLogonWithServiceAccountAlgorithmEnabled', 'InteractiveLogonWithServiceAccountEventScore', 'ServiceAccountIncludeList',
'SPCAlgorithmEnabled', 'SPCEventScore', 'SPCPassChangeByCPMTimeWindow', 'UPAAlgorithmEnabled', 'UPAEventScore', 'UPAExcludedAccountsList' ) ]

[string]$propertyKey,
[parameter(
Mandatory = $true,
ValueFromPipelinebyPropertyName = $true
)]
[string]$id
)

BEGIN {
Assert-VersionRequirement -SelfHosted
Assert-VersionRequirement -RequiredVersion 14.2
}#begin

PROCESS {

#Create request URL
$URI = "$($psPASSession.BaseURI)/API/pta/API/configuration/properties/$($propertyKey | Get-EscapedString)/$($id | Get-EscapedString)"

if ($PSCmdlet.ShouldProcess($id, 'Delete PTA Security Configuration Property')) {

#send request to web service
Invoke-PASRestMethod -Uri $URI -Method DELETE

}

}#process

END { }#end

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# .ExternalHelp psPAS-help.xml
Function Reset-PASPTASecurityConfigurationCategory {
[CmdletBinding(SupportsShouldProcess = $true)]
param(
[parameter(
Mandatory = $true,
ValueFromPipelinebyPropertyName = $true
)]
[ValidateSet('ActiveDormantUser', 'PrivilegedUsersAndGroups', 'IrregularIpUser', 'SuspectedCredentialsTheft', 'InteractiveLogonWithServiceAccount',
'IrregularHoursUser', 'UnmanagedPrivilegedAccess', 'SuspiciousActivityInPSMSession', 'IrregularDaysUser', 'FailedVaultLogonAttempts', 'ExcessiveAccessUser')]
[string]$categoryKey
)

BEGIN {
Assert-VersionRequirement -SelfHosted
Assert-VersionRequirement -RequiredVersion 14.2
}#begin

PROCESS {

#Create request URL
$URI = "$($psPASSession.BaseURI)/API/pta/API/configuration/properties/$($categoryKey | Get-EscapedString)/default"

if ($PSCmdlet.ShouldProcess($categoryKey, 'Reset PTA Security Configuration Category')) {

#send request to web service
Invoke-PASRestMethod -Uri $URI -Method PUT

}

}#process

END { }#end

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# .ExternalHelp psPAS-help.xml
Function Remove-PASPTASecurityConfigurationProperty {
[CmdletBinding(SupportsShouldProcess = $true)]
param(
[parameter(
Mandatory = $true,
ValueFromPipelinebyPropertyName = $true
)]
[ValidateSet('PrivilegedUsersList', 'PrivilegedDomainGroupsList', 'ActiveDormantUserAlgorithmEnabled',
'ActiveDormantUserEventScore', 'ActiveDormantUserDays', 'ExcessiveAccessUserAlgorithmEnabled', 'ExcessiveAccessUserScoreRange',
'FailedVaultLogonAttemptsAlgorithmEnabled', 'FailedVaultLogonAttemptsScoreOptions', 'FailedVaultLogonAttemptsThreshold',
'FailedVaultLogonAttemptsTimeframe', 'IrregularDaysUserAlgorithmEnabled', 'IrregularDaysUserScoreRange', 'IrregularHoursUserAlgorithmEnabled',
'IrregularHoursUserExcludedUsernames', 'IrregularHoursUserScoreRange', 'IrregularIpUserAlgorithmEnabled', 'IrregularIpUserExcludedSourceIpsList',
'IrregularIpUserScoreRange', 'SCTAlgorithmEnabled', 'SCTEventScore', 'SCTExcludedAccountsList', 'SCTPasswordRetrievalTimeWindow',
'InteractiveLogonWithServiceAccountAlgorithmEnabled', 'InteractiveLogonWithServiceAccountEventScore', 'ServiceAccountIncludeList',
'SPCAlgorithmEnabled', 'SPCEventScore', 'SPCPassChangeByCPMTimeWindow', 'UPAAlgorithmEnabled', 'UPAEventScore', 'UPAExcludedAccountsList' ) ]

[string]$propertyKey
)

BEGIN {
Assert-VersionRequirement -SelfHosted
Assert-VersionRequirement -RequiredVersion 14.2
}#begin

PROCESS {

#Create request URL
$URI = "$($psPASSession.BaseURI)/API/pta/API/configuration/properties/$($propertyKey | Get-EscapedString)/default"

if ($PSCmdlet.ShouldProcess($categoryKey, 'Reset PTA Security Configuration Category')) {

#send request to web service
Invoke-PASRestMethod -Uri $URI -Method PUT

}

}#process

END { }#end

}
6 changes: 5 additions & 1 deletion psPAS/psPAS.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,11 @@
'Remove-PASFIDO2Device',
'Get-PASMasterPolicy',
'Set-PASMasterPolicy',
'Get-PASDependentAccount'
'Get-PASDependentAccount',
'Sync-PASDependentAccount',
'Remove-PASPTASecurityConfigurationProperty',
'Reset-PASPTASecurityConfigurationProperty',
'Reset-PASPTASecurityConfigurationCategory'

)

Expand Down