VMware Cloud Community
as900w
Hot Shot
Hot Shot

How use VMWare PowerCLI export-csv command export result to local disk

I use get-vm command to get VM information, But I want to export it to local.

I use export-csv command:

1.PNG

It's failed.

What should I do?

Tags (3)
0 Kudos
2 Replies
IRIX201110141
Champion
Champion

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

0 Kudos
vijayrana968
Virtuoso
Virtuoso

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..

0 Kudos