diff --git a/Openstack/pv176-env.json b/Openstack/pv176-env.json
index 812a64a7b3c4ac5b5b8b200edd93bdcc2df3f07b..eb6b61c0d24dc51d94888b9acc3c5d131d51f08a 100644
--- a/Openstack/pv176-env.json
+++ b/Openstack/pv176-env.json
@@ -1,6 +1,7 @@
 {
     "resource_registry":{
         "Lib::private_network": "https://gitlab.ics.muni.cz/396462/PV176/raw/master/Openstack/pv176-network.template",
-        "Lib::server_vm": "https://gitlab.ics.muni.cz/396462/PV176/raw/master/Openstack/pv176-server.template"
+        "Lib::server_vm": "https://gitlab.ics.muni.cz/396462/PV176/raw/master/Openstack/pv176-server.template",
+        "Lib::server_init_script": "https://gitlab.ics.muni.cz/396462/PV176/raw/master/Openstack/server-init.ps1"
     }
 }
\ No newline at end of file
diff --git a/Openstack/pv176-init.json b/Openstack/pv176-init.json
index 0e111335cfa0989e4967f305e795a1e8a030f01e..bcbe51ddf4601ebe2146598461d1fcde878cc24e 100644
--- a/Openstack/pv176-init.json
+++ b/Openstack/pv176-init.json
@@ -49,8 +49,8 @@
                              "port": "PV176-port-%index%"   
                         }
                         ],
-                        "user_data": "#ps1_sysnative;$ErrorActionPreference = 'Stop';$ip = (int)%index%+2;$adapter = Get-NetAdapter;$adapter | New-NetIPAddress -AddressFamily 'IPv4' -IPAddress '10.0.0.'+$ip -PrefixLength '8' -DefaultGateway '10.0.0.1';$adapter | Set-DnsClientServerAddress -ServerAddresses '147.251.4.33';$user = [ADSI]'WinNT://./Administrator';$user.SetPassword('Password.1');NET USER pv176 Password.1 /add;NET LOCALGROUP Administrators pv176 /add;exit 1001"
-                    }
+                        "user_data": {"get_file": "Lib::server_init_script"}
+                        }
                 }
             }
         }