I use get-vm command to get VM information, But I want to export it to local.
I use export-csv command:
It's failed.
What should I do?
Normal users arent allowed to write to c:\ .
C:\Users\behrens>echo "test" > c:\asa.txt
permission denied
Create a folder first and assign permissions to it befor start writing into it, otherwise take a look into your enviroment and use %TMP% or %APPDATA%.
Regards,
Joerg
Have you executed script with elevated permissions ! With normal user write operations to C: drive (OS) isn't allowed and you may want to save it creating folder c:\temp etc..