- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello again LuD !
Thanks for your reply.
In fact : many days to try to understand why my very simple script didn't work :
$vmlist = Get-Content -Path "C:\Powercli\Powercli_VMWARE\Scripts\Checked\vmnames.txt"
foreach($vmname in $vmlist){
Get-VM -Name $vmname }
The error message : (see many many times in forum...)
The real reason of this trouble IS NOT THE SCRIPT but the file format about... TXT FILE !
YES be careful that the response file is well written in UTF-8 FORMAT !