Skip to content

Commit

Permalink
module GetInvocation - converting private binary command, Get-TssInvo…
Browse files Browse the repository at this point in the history
…cation
  • Loading branch information
wsmelton committed Sep 29, 2021
1 parent 5d49643 commit 2e5ceac
Show file tree
Hide file tree
Showing 212 changed files with 261 additions and 256 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
using System;
using System.Collections.Generic;
using System.Management.Automation;
using System.Management.Automation.Runspaces;

namespace Thycotic.SecretServer.Cmdlets
{
/// <summary>
/// <para type="synopsis">Internal cmdlet to output the inputs for a given command</para>
/// <para type="description">Internal cmdlet to output the inputs for a given command</para>
/// </summary>
[Cmdlet(VerbsCommon.Get, "TssInvocation")]
public class GetInvocationCmdlet : PSCmdlet
{
///<summary>
///<para type="description">MyInvocation object from the calling command</para>
///</summary>
[Parameter(Mandatory = true, Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true)]
public InvocationInfo Invocation {get; set;}

protected override void ProcessRecord()
{
var cmdText = Invocation.InvocationName;
var paramKeys = Invocation.BoundParameters.Keys;
string paramValue = null;
foreach (var p in paramKeys)
{
switch (Invocation.BoundParameters[p].GetType().ToString())
{
case "Thycotic.PowerShell.Authentication.Session":
paramValue = "TssSessionObject";
break;
case "System.Management.Automation.PSObject":
paramValue = "Object";
break;
case "System.Int32[]":
paramValue = Invocation.BoundParameters[p].ToString();
break;
case "System.String":
paramValue = Invocation.BoundParameters[p].ToString();
break;
case "System.Management.Automation.SwitchParameter":
paramValue = Invocation.BoundParameters[p].ToString();
break;
}
cmdText = cmdText + " -" + p + ":" + paramValue;
}
WriteVerbose("Command invocation: " + cmdText);
}
}
}
2 changes: 1 addition & 1 deletion src/functions/authentication/Close-TssSession.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function Close-TssSession {
$TssSession
)
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
switch ($TssSession.TokenType) {
'WindowsAuth' { Write-Warning "Not supported token type for closing" }
'SdkClient' { Write-Warning "Not supported token type for closing" }
Expand Down
2 changes: 1 addition & 1 deletion src/functions/authentication/Initialize-TssSdkClient.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function Initialize-TssSdkClient {
}
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation

if ($tssParams.ContainsKey('Force')) {
$tssRemoveArgs = "remove --confirm --key-directory $ConfigPath --config-directory $ConfigPath"
Expand Down
2 changes: 1 addition & 1 deletion src/functions/authentication/New-TssSession.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function New-TssSession {
}

process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($SecretServer -match '(?:\/api\/v1)|(?:\/oauth2\/token)') {
throw 'Invalid argument on parameter SecretServer. Please ensure [/api/v1] or [/oauth2/token] are not provided'
return
Expand Down
2 changes: 1 addition & 1 deletion src/functions/authentication/Test-TssSdkClient.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function Test-TssSdkClient {
}
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation

$tssArgs = [ordered]@{}
$tssArgs.ConfigDirectory = "--key-directory $ConfigPath --config-directory $ConfigPath"
Expand Down
2 changes: 1 addition & 1 deletion src/functions/configurations/Disable-TssUnlimitedAdmin.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function Disable-TssUnlimitedAdmin {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000000' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration', 'unlimited-admin' -join '/'
Expand Down
2 changes: 1 addition & 1 deletion src/functions/configurations/Enable-TssUnlimitedAdmin.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function Enable-TssUnlimitedAdmin {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000000' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration', 'unlimited-admin' -join '/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function Export-TssAutoExportStorageItem {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '11.0.000005' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration', 'auto-export-storage', 'item', $Id -join '/'
Expand Down
2 changes: 1 addition & 1 deletion src/functions/configurations/Get-TssConfiguration.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function Get-TssConfiguration {
}

process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000032' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration', 'general' -join '/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Get-TssConfigurationAutoExport {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '11.0.000005' $PSCmdlet.MyInvocation
$restResponse = $null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Get-TssConfigurationBackup {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000064' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration', 'backup' -join '/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Get-TssConfigurationLocalUserPassword {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000064' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration', 'local-user-passwords' -join '/'
Expand Down
2 changes: 1 addition & 1 deletion src/functions/configurations/Get-TssConfigurationLogin.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Get-TssConfigurationLogin {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000064' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration', 'login' -join '/'
Expand Down
2 changes: 1 addition & 1 deletion src/functions/configurations/Get-TssConfigurationRpc.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Get-TssConfigurationRpc {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000064' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration', 'rpc' -join '/'
Expand Down
2 changes: 1 addition & 1 deletion src/functions/configurations/Get-TssConfigurationSaml.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Get-TssConfigurationSaml {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000064' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration', 'saml' -join '/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Get-TssConfigurationSearchIndex {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000064' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration', 'secret-search-indexer' -join '/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Get-TssConfigurationSecurity {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000064' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration', 'security' -join '/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function Get-TssConfigurationSiteConnector {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000064' $PSCmdlet.MyInvocation
$restResponse = $null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Search-TssAutoExportStorage {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '11.0.000005' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration', 'auto-export-storage' -join '/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function Search-TssConfigurationAudit {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000064' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration','audit' -join '/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function Search-TssConfigurationBackupLog {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '11.0.000005' $PSCmdlet.MyInvocation
$uri = ($TssSession.ApiUrl -replace 'v1','v2'), 'configuration', 'backup-logs' -join '/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function Set-TssConfigurationAutoExport {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($setParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '11.0.0005' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration', 'auto-export' -join '/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function Set-TssConfigurationGeneral {
}
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($setParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '11.0.000005' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration', 'general' -join '/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function Set-TssConfigurationLocalUserPassword {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($setParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '11.0.000005' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration', 'local-user-passwords' -join '/'
Expand Down
2 changes: 1 addition & 1 deletion src/functions/configurations/Set-TssConfigurationLogin.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function Set-TssConfigurationLogin {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($setParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000064' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration', 'login' -join '/'
Expand Down
2 changes: 1 addition & 1 deletion src/functions/configurations/Set-TssConfigurationRpc.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function Set-TssConfigurationRpc {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($setParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000064' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration', 'rpc' -join '/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function Set-TssConfigurationSecurity {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($setParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000064' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration', 'security' -join '/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function Start-TssConfigurationBackup {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000064' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration', 'backup', 'run-now' -join '/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function Start-TssConfigurationSearchIndex {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000064' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'configuration', 'secret-search-indexer', 'rebuild-index' -join '/'
Expand Down
2 changes: 1 addition & 1 deletion src/functions/diagnostics/Search-TssSystemLog.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function Search-TssSystemLog {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '11.0.000000' $PSCmdlet.MyInvocation
$uri = ($TssSession.ApiUrl -replace 'v1','v2'), 'diagnostics', 'system-logs' -join '/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function Add-TssDirectoryServiceGroup {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000064' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'directory-services', 'domains', $DomainId, 'group' -join '/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function Get-TssDirectoryServiceDomain {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000064' $PSCmdlet.MyInvocation
foreach ($domain in $Id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Get-TssDirectoryServiceSyncStatus {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000064' $PSCmdlet.MyInvocation
$uri = $TssSession.ApiUrl, 'directory-services', 'synchronization' -join '/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function New-TssDirectoryService {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssNewParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000064' $PSCmdlet.MyInvocation
$restResponse = $null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function Remove-TssDirectoryServiceGroup {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000064' $PSCmdlet.MyInvocation
foreach ($group in $GroupId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function Search-TssDirectoryServiceDomain {
$invokeParams = . $GetInvokeApiParams $TssSession
}
process {
Write-Verbose "Provided command parameters: $(. $GetInvocation $PSCmdlet.MyInvocation)"
Get-TssInvocation $PSCmdlet.MyInvocation
if ($tssParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) {
. $CheckVersion $TssSession '10.9.000000' $PSCmdlet.MyInvocation
$restResponse = $null
Expand Down
Loading

0 comments on commit 2e5ceac

Please sign in to comment.