VMware Cloud Community
denjoh44
Enthusiast
Enthusiast

powershell problem with is conflicting with the default formatting

It 's difficult because i don't undestrand why i have the problem with default formatting, sometimes

i make a file ps1, but sommetines i have the message witch the default formatting

$RESEAU=Get-NetworkAdapter -VM (get-vm -name $NAME_TEMPLATE -location $DATA_CENTER) | select name,type | Format-Table -AutoSize

or

with this command

get-vm -name $NAME_TEMPLATE -location $DATA_CENTER | get-view | Foreach-Object {$_.UpgradeVM("vmx-08")}

a error message said that it don't find the vm because a conflict exist witch the default formatting

i don't undestrand how to avoid the problem

how know the default formatting and how change for to have no problem

In advance thank you for your help

0 Kudos
3 Replies
vmroyale
Immortal
Immortal

Note: Discussion successfully moved from Product & Feature Suggestions to VMware vSphere™ PowerCLI

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com
0 Kudos
LucD
Leadership
Leadership

Could you give us an extract or a screenshot of the messages you get ?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
denjoh44
Enthusiast
Enthusiast

i give you the exact message, tomorrow

0 Kudos