Reply to Message

View discussion in a popup

Replying to:
BenLiebowitz
Expert
Expert

Yes.  When I run the command in the script above, it lists the canonical name mulitple times, so when I pipe it into a variable, I'm not sure it's being read properly.

$LUN = Get-Datastore Datastore1 | get-scsilun | Select CanonicalName

When I do $LUN alone, I get this:

2017-07-17 08_49_55-Administrator_ PowerShell NYVMXVCPRD05.png

There are multiple hosts attached, as you can see.

I believe I need it to be just 1 line...

Ben Liebowitz, VCP vExpert 2015, 2016, & 2017 If you found my post helpful, please mark it as helpful or answered to award points.
Reply
0 Kudos