Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell script to get the last 2 characther of server name and pass it to a variable

$
0
0

Hello Guys,

Im looking for a simple solution to find the hostname, and then select the last 2 characters and pass it to a variable?

Ive been searching the internet the whole day.. but no success..

Trimend or trimstart maybe ?

Thank you in advance!


Tamas



Viewing all articles
Browse latest Browse all 15028

Trending Articles