PowerShell access parameter value passed

78 views Asked by At

I am running a external program on SolarWinds which calls PowerShell script and i am passing hostname as a parameter to my script .

param( $hostname )

$hostname1 ="$($hostname)"

$hostname1 |Out-File D:\hostname.txt


output in hostname.txt is

${N=SwisEntity;M=F5Device.Node.DisplayName}


how can i get the value of hostname (value of F5Device.Node.DisplayName ) ..?

0

There are 0 answers