Create file on virtual machine RRS feed

  • Question

  • hi , i want to create new file in virtual machine by using power shell and WMI scripting on Virtual machine 

    New-Item c:\TempData -type directory -Force
    New-Item c:\TempData \SkyTest.txt -type file -Force -value 'hi.. h r u????'

    Above command creates file on hyper-v machine. But  I need to create file on VM's which are running on this.


    Let's I have hyper-v machine : Contoso\Admin

    Virtual Machine : VMTest

    which is running on Contoso\Admin

    I need to create file on VMTest.

    Please help.

    Tuesday, October 1, 2013 11:43 AM

All replies