Hi Yeahyu,
Thanks for your reply.
To answere your questions:
- No I have not copied the script or module to the template. Can I just use workflows ""Copy file from vCO to guest" and "Create directory in guest"? How do I copy multiple files with "Copy file from vCO to guest"?
- I have not imported the module in the templates either. Should be able to run the import-module xxxxxxx at start of the ps script or isn't that possible? That is if I can complete the task above :smileyhappy:
I have tried to run it but got an error message saying: Client not found in Kerberos database (6) (Workflow:Invoke a PowerShell script / Invoke script (item0)#3)
Since then I have redesigned the workflow and it looks like this now:

The script that runs under the workflow "Run Script in VM guest" is this:
------------
Import-Module PSWindowsUpdate
Get-WURebootStatus -AutoReboot
Get-WUInstall -acceptall
----------
One problem I got now is copying all the files for the PS module into the Template VM. Couldn't find a workflow that will copy files to the guest, only 1 file.
Regards
Atle