New Question

# Revision history [back]

### Simple example for user-data / meta-data

Hi guys, i am used to working with linux. Creating a simple iso like so:


vi user-data
vi meta-data
genisoimage -output ws2012-ds.iso -volid cidata -joliet -rock user-data meta-data


After this i am able to boot the virtual machine and everything seems to work.

Now i tried following various tutorials doing the same for windows, but it seems that the file user-data with ps1_sysnative on the first line is not getting executed. I read a bit about https://github.com/cloudbase/windows-heat-templates, but this is not my setup.

Just a simple kvm which i want to setup with my password and install some apps.


#ps1_sysnative

$adminPassword='@secret'$computerName='my-ad'

net user Administrator $AdminPassword Write-Output "Changed Administrator password" Write-Output "Changing Computer Name" Rename-Computer -NewName$computerName