From 4c6f59e45b20be8e457a99dfc9edb7df3a17e377 Mon Sep 17 00:00:00 2001 From: lgonzalez876 <90857354+lgonzalez876@users.noreply.github.com> Date: Mon, 24 Jan 2022 10:47:46 -0800 Subject: [PATCH] Cleaning code --- RunNPT.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RunNPT.ps1 b/RunNPT.ps1 index f3a623e..331d472 100644 --- a/RunNPT.ps1 +++ b/RunNPT.ps1 @@ -54,7 +54,7 @@ Mandatory (when run with TransmitEventsRemotely switch enabled) parameter. Gets password needed to connect to TansmitIp Machine. Password will be stored as Secure String and chars will not be displayed on the console. - + .DESCRIPTION NOTE: Please run SetupTearDown.ps1 -Setup on the DestIp and SrcIp machines before running this script to ensure PSRemoting is enabled at both endpoints. @@ -103,11 +103,11 @@ Param( [String] $TransmitUserName, [Parameter(Mandatory=$True, ParameterSetName="RemoteTransmit")] - [SecureString] $TransmitPassword + [SecureString] $TransmitPassword ) $nptDir = [System.IO.Path]::GetDirectoryName($MyInvocation.MyCommand.Definition) -$commandsDir = [System.IO.Path]::GetDirectoryName($MyInvocation.MyCommand.Definition) + "\commands" +$commandsDir = "$nptDir\commands" # Create commands directory and generate commands $perftestCmd = "$($nptDir)\PERFTEST.PS1"