- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
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.