Skip to content
Open
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
*.[Ll]og
release*
.vs/

.claude/*
.calude
thycotic.secretserver.sln
# ignoring doc works for now
/docs/_site

Expand Down
2 changes: 1 addition & 1 deletion src/Thycotic.SecretServer.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'Thycotic.SecretServer.psm1'

# Version number of this module.
ModuleVersion = '0.61.8'
ModuleVersion = '0.62.0'

# Supported PSEditions
CompatiblePSEditions = 'Desktop', 'Core'
Expand Down
45 changes: 36 additions & 9 deletions src/functions/configurations/Get-TssConfiguration.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,42 @@ function Get-TssConfiguration {

if ($restResponse) {
switch ($Type) {
'All' { [Thycotic.PowerShell.Configuration.General]$restResponse }
'Application' { [Thycotic.PowerShell.Configuration.ApplicationSettings]$restResponse.applicationSettings }
'Email' { [Thycotic.PowerShell.Configuration.EmailSettings]$restResponse.emailSettings }
'Folders' { [Thycotic.PowerShell.Configuration.Folders]$restResponse.folders }
'Launcher' { [Thycotic.PowerShell.Configuration.LauncherSettings]$restResponse.launcherSettings }
'LocalUserPasswords' { [Thycotic.PowerShell.Configuration.LocalUserPasswords]$restResponse.localUserPasswords }
'PermissionOptions' { [Thycotic.PowerShell.Configuration.PermissionOptions]$restResponse.permissionOptions }
'UserExperience' { [Thycotic.PowerShell.Configuration.UserExperience]$restResponse.userExperience }
'UserInterface' { [Thycotic.PowerShell.Configuration.UserInterface]$restResponse.userInterface }
'All' {
$typeProps = [Thycotic.PowerShell.Configuration.General].GetProperties().Name
[Thycotic.PowerShell.Configuration.General]($restResponse | Select-Object -Property $typeProps)
}
'Application' {
$typeProps = [Thycotic.PowerShell.Configuration.ApplicationSettings].GetProperties().Name
[Thycotic.PowerShell.Configuration.ApplicationSettings]($restResponse.applicationSettings | Select-Object -Property $typeProps)
}
'Email' {
$typeProps = [Thycotic.PowerShell.Configuration.EmailSettings].GetProperties().Name
[Thycotic.PowerShell.Configuration.EmailSettings]($restResponse.emailSettings | Select-Object -Property $typeProps)
}
'Folders' {
$typeProps = [Thycotic.PowerShell.Configuration.Folders].GetProperties().Name
[Thycotic.PowerShell.Configuration.Folders]($restResponse.folders | Select-Object -Property $typeProps)
}
'Launcher' {
$typeProps = [Thycotic.PowerShell.Configuration.LauncherSettings].GetProperties().Name
[Thycotic.PowerShell.Configuration.LauncherSettings]($restResponse.launcherSettings | Select-Object -Property $typeProps)
}
'LocalUserPasswords' {
$typeProps = [Thycotic.PowerShell.Configuration.LocalUserPasswords].GetProperties().Name
[Thycotic.PowerShell.Configuration.LocalUserPasswords]($restResponse.localUserPasswords | Select-Object -Property $typeProps)
}
'PermissionOptions' {
$typeProps = [Thycotic.PowerShell.Configuration.PermissionOptions].GetProperties().Name
[Thycotic.PowerShell.Configuration.PermissionOptions]($restResponse.permissionOptions | Select-Object -Property $typeProps)
}
'UserExperience' {
$typeProps = [Thycotic.PowerShell.Configuration.UserExperience].GetProperties().Name
[Thycotic.PowerShell.Configuration.UserExperience]($restResponse.userExperience | Select-Object -Property $typeProps)
}
'UserInterface' {
$typeProps = [Thycotic.PowerShell.Configuration.UserInterface].GetProperties().Name
[Thycotic.PowerShell.Configuration.UserInterface]($restResponse.userInterface | Select-Object -Property $typeProps)
}
}
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ function Get-TssConfigurationAutoExport {
}

if ($restResponse) {
[Thycotic.PowerShell.Configuration.AutomaticExport]$restResponse
$typeProps = [Thycotic.PowerShell.Configuration.AutomaticExport].GetProperties().Name
[Thycotic.PowerShell.Configuration.AutomaticExport]($restResponse | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
3 changes: 2 additions & 1 deletion src/functions/configurations/Get-TssConfigurationBackup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ function Get-TssConfigurationBackup {
}

if ($restResponse) {
[Thycotic.PowerShell.Configuration.Backup]$restResponse
$typeProps = [Thycotic.PowerShell.Configuration.Backup].GetProperties().Name
[Thycotic.PowerShell.Configuration.Backup]($restResponse | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ function Get-TssConfigurationLocalUserPassword {
}

if ($restResponse) {
[Thycotic.PowerShell.Configuration.LocalUserPasswords]$restResponse
$typeProps = [Thycotic.PowerShell.Configuration.LocalUserPasswords].GetProperties().Name
[Thycotic.PowerShell.Configuration.LocalUserPasswords]($restResponse | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
3 changes: 2 additions & 1 deletion src/functions/configurations/Get-TssConfigurationLogin.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ function Get-TssConfigurationLogin {
}

if ($restResponse) {
[Thycotic.PowerShell.Configuration.Login]$restResponse
$typeProps = [Thycotic.PowerShell.Configuration.Login].GetProperties().Name
[Thycotic.PowerShell.Configuration.Login]($restResponse | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
3 changes: 2 additions & 1 deletion src/functions/configurations/Get-TssConfigurationRpc.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ function Get-TssConfigurationRpc {
}

if ($restResponse) {
[Thycotic.PowerShell.Configuration.Rpc]$restResponse
$typeProps = [Thycotic.PowerShell.Configuration.Rpc].GetProperties().Name
[Thycotic.PowerShell.Configuration.Rpc]($restResponse | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
3 changes: 2 additions & 1 deletion src/functions/configurations/Get-TssConfigurationSaml.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ function Get-TssConfigurationSaml {
}

if ($restResponse) {
[Thycotic.PowerShell.Configuration.Saml]$restResponse
$typeProps = [Thycotic.PowerShell.Configuration.Saml].GetProperties().Name
[Thycotic.PowerShell.Configuration.Saml]($restResponse | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ function Get-TssConfigurationSearchIndex {
}

if ($restResponse.records) {
[Thycotic.PowerShell.Configuration.SearchIndexer]$restResponse.records
$typeProps = [Thycotic.PowerShell.Configuration.SearchIndexer].GetProperties().Name
[Thycotic.PowerShell.Configuration.SearchIndexer]($restResponse.records | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ function Get-TssConfigurationSecurity {
}

if ($restResponse) {
[Thycotic.PowerShell.Configuration.Security]$restResponse
$typeProps = [Thycotic.PowerShell.Configuration.Security].GetProperties().Name
[Thycotic.PowerShell.Configuration.Security]($restResponse | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ function Get-TssConfigurationSiteConnector {
}

if ($restResponse) {
[Thycotic.PowerShell.Configuration.SiteConnector[]]$restResponse
$typeProps = [Thycotic.PowerShell.Configuration.SiteConnector].GetProperties().Name
[Thycotic.PowerShell.Configuration.SiteConnector[]]($restResponse | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
3 changes: 2 additions & 1 deletion src/functions/configurations/Search-TssAutoExportStorage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ function Search-TssAutoExportStorage {
Write-Warning "No AutomaticStorage found"
}
if ($restResponse.records) {
[Thycotic.PowerShell.Configuration.AutomaticExportItem[]]$restResponse.records
$typeProps = [Thycotic.PowerShell.Configuration.AutomaticExportItem].GetProperties().Name
[Thycotic.PowerShell.Configuration.AutomaticExportItem[]]($restResponse.records | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ function Search-TssConfigurationAudit {
Write-Warning "No ConfigurationAudit found"
}
if ($restResponse.records) {
[Thycotic.PowerShell.Configuration.Audit[]]$restResponse.records
$typeProps = [Thycotic.PowerShell.Configuration.Audit].GetProperties().Name
[Thycotic.PowerShell.Configuration.Audit[]]($restResponse.records | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ function Search-TssConfigurationBackupLog {
}

if ($restResponse.records) {
[Thycotic.PowerShell.Configuration.DbBackupLog[]]$restResponse.records
$typeProps = [Thycotic.PowerShell.Configuration.DbBackupLog].GetProperties().Name
[Thycotic.PowerShell.Configuration.DbBackupLog[]]($restResponse.records | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
3 changes: 2 additions & 1 deletion src/functions/diagnostics/Get-TssDiagnostic.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ function Get-TssDiagnostic {
}

if ($restResponse) {
[Thycotic.PowerShell.Diagnostics.Diagnostic]$restResponse
$typeProps = [Thycotic.PowerShell.Diagnostics.Diagnostic].GetProperties().Name
[Thycotic.PowerShell.Diagnostics.Diagnostic]($restResponse | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ function Get-TssDiagnosticBackgroundProcess {
}

if ($restResponse) {
[Thycotic.PowerShell.Diagnostics.BackgroundProcess[]]$restResponse
$typeProps = [Thycotic.PowerShell.Diagnostics.BackgroundProcess].GetProperties().Name
[Thycotic.PowerShell.Diagnostics.BackgroundProcess[]]($restResponse | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
3 changes: 2 additions & 1 deletion src/functions/diagnostics/Search-TssSystemLog.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ function Search-TssSystemLog {
Write-Warning "No messages found in the System Log"
}
if ($restResponse.records) {
[Thycotic.PowerShell.Diagnostics.SystemLog[]]$restResponse.records
$typeProps = [Thycotic.PowerShell.Diagnostics.SystemLog].GetProperties().Name
[Thycotic.PowerShell.Diagnostics.SystemLog[]]($restResponse.records | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ function Get-TssDirectoryServiceDomain {
}

if ($restResponse) {
[Thycotic.PowerShell.DirectoryServices.Domain[]]$restResponse
$typeProps = [Thycotic.PowerShell.DirectoryServices.Domain].GetProperties().Name
[Thycotic.PowerShell.DirectoryServices.Domain[]]($restResponse | Select-Object -Property $typeProps)
}
}
} else {
Expand Down
3 changes: 2 additions & 1 deletion src/functions/directory-services/New-TssDirectoryService.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ function New-TssDirectoryService {
}

if ($restResponse) {
[Thycotic.PowerShell.DirectoryServices.Domain]$restResponse
$typeProps = [Thycotic.PowerShell.DirectoryServices.Domain].GetProperties().Name
[Thycotic.PowerShell.DirectoryServices.Domain]($restResponse | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ function Search-TssDirectoryServiceDomain {
Write-Warning 'No Directory Domain found'
}
if ($restResponse.records) {
[Thycotic.PowerShell.DirectoryServices.DomainSummary[]]$restResponse.records
$typeProps = [Thycotic.PowerShell.DirectoryServices.DomainSummary].GetProperties().Name
[Thycotic.PowerShell.DirectoryServices.DomainSummary[]]($restResponse.records | Select-Object -Property $typeProps)
}
} else {
Write-Warning 'No valid session found'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ function Search-TssDirectoryServiceGroup {
Write-Warning "No Directory Service Group found"
}
if ($restResponse.groups) {
[Thycotic.PowerShell.DirectoryServices.Group[]]$restResponse.groups
$typeProps = [Thycotic.PowerShell.DirectoryServices.Group].GetProperties().Name
[Thycotic.PowerShell.DirectoryServices.Group[]]($restResponse.groups | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ function Search-TssDirectoryServiceGroupMember {
Write-Warning "No DirectoryServiceGroupMember found"
}
if ($restResponse.members) {
[Thycotic.PowerShell.DirectoryServices.GroupMember[]]$restResponse.members
$typeProps = [Thycotic.PowerShell.DirectoryServices.GroupMember].GetProperties().Name
[Thycotic.PowerShell.DirectoryServices.GroupMember[]]($restResponse.members | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ function Get-TssDistributedEngineConfiguration {
}

if ($restResponse) {
[Thycotic.PowerShell.DistributedEngines.Configuration]$restResponse
$typeProps = [Thycotic.PowerShell.DistributedEngines.Configuration].GetProperties().Name
[Thycotic.PowerShell.DistributedEngines.Configuration]($restResponse | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ function Get-TssDistributedEngineSite {
}

if ($restResponse) {
[Thycotic.PowerShell.DistributedEngines.Site]$restResponse
$typeProps = [Thycotic.PowerShell.DistributedEngines.Site].GetProperties().Name
[Thycotic.PowerShell.DistributedEngines.Site]($restResponse | Select-Object -Property $typeProps)
}
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ function Search-TssDistributedEngine {
Write-Warning "No records found"
}
if ($restResponse.records) {
[Thycotic.PowerShell.DistributedEngines.EngineSummary[]]$restResponse.records
$typeProps = [Thycotic.PowerShell.DistributedEngines.EngineSummary].GetProperties().Name
[Thycotic.PowerShell.DistributedEngines.EngineSummary[]]($restResponse.records | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ function Search-TssDistributedEngineConnector {
Write-Warning "No records found"
}
if ($restResponse.records) {
[Thycotic.PowerShell.DistributedEngines.SiteConnectorSummary[]]$restResponse.records
$typeProps = [Thycotic.PowerShell.DistributedEngines.SiteConnectorSummary].GetProperties().Name
[Thycotic.PowerShell.DistributedEngines.SiteConnectorSummary[]]($restResponse.records | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ function Search-TssDistributedEngineSite {
Write-Warning 'No Distributed Engine Sites found'
}
if ($restResponse.records) {
[Thycotic.PowerShell.DistributedEngines.SiteSummary[]]$restResponse.records
$typeProps = [Thycotic.PowerShell.DistributedEngines.SiteSummary].GetProperties().Name
[Thycotic.PowerShell.DistributedEngines.SiteSummary[]]($restResponse.records | Select-Object -Property $typeProps)
}
} else {
Write-Warning 'No valid session found'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ function Get-TssEventPipelinePolicy {
}

if ($restResponse) {
[Thycotic.PowerShell.EventPipelinePolicy.Policy]$restResponse
$typeProps = [Thycotic.PowerShell.EventPipelinePolicy.Policy].GetProperties().Name
[Thycotic.PowerShell.EventPipelinePolicy.Policy]($restResponse | Select-Object -Property $typeProps)
}
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ function Get-TssEventPipelinePolicyActivity {
}

if ($restResponse) {
[Thycotic.PowerShell.EventPipelinePolicy.Activity[]]$restResponse
$typeProps = [Thycotic.PowerShell.EventPipelinePolicy.Activity].GetProperties().Name
[Thycotic.PowerShell.EventPipelinePolicy.Activity[]]($restResponse | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ function Search-TssEventPipelinePolicy {
}

if ($restResponse.records) {
[Thycotic.PowerShell.EventPipelinePolicy.List[]]$restResponse.records
$typeProps = [Thycotic.PowerShell.EventPipelinePolicy.List].GetProperties().Name
[Thycotic.PowerShell.EventPipelinePolicy.List[]]($restResponse.records | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
3 changes: 2 additions & 1 deletion src/functions/event-pipeline/Get-TssEventPipelineRun.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ function Get-TssEventPipelineRun {
}

if ($restResponse.records) {
[Thycotic.PowerShell.EventPipeline.RunView[]]$restResponse.records
$typeProps = [Thycotic.PowerShell.EventPipeline.RunView].GetProperties().Name
[Thycotic.PowerShell.EventPipeline.RunView[]]($restResponse.records | Select-Object -Property $typeProps)
}
}
} else {
Expand Down
3 changes: 2 additions & 1 deletion src/functions/event-pipeline/Search-TssEventPipeline.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ function Search-TssEventPipeline {
}

if ($restResponse.records) {
[Thycotic.PowerShell.EventPipeline.Summary[]]$restResponse.records
$typeProps = [Thycotic.PowerShell.EventPipeline.Summary].GetProperties().Name
[Thycotic.PowerShell.EventPipeline.Summary[]]($restResponse.records | Select-Object -Property $typeProps)
}
} else {
Write-Warning "No valid session found"
Expand Down
Loading