New Question

Is there a way to keep the userdata script on the Windows server after execution

asked 2023-01-18 00:43:45 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hello, I am trying to troubleshoot an issue with the cloudbase-init script on Windows Server 2019. I read some posts and it appears that the script is written to the temp directory and then deleted after execution.

I would like to examine the script that is being executed. I can do this on the Linux cloud-init. Not sure if this can be done in cloudbase-init.


edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2023-02-01 18:38:47 +0300

avladu gravatar image


The userdata script has a metadata source, you can interogate the metadata source directly to see the script, if possible. Usually, the metadata source is always present (not for Azure though, as the config drive gets disconnected for security reasons). What is the metadata source / cloud environment used in your case?

Thank you.

edit flag offensive delete link more


Hello, My environment is Openstack. We would like to be able to see the meta-data as the machine had received it. This would help in troubleshooting. Thanks

benrick01launch gravatar imagebenrick01launch ( 2023-02-01 20:35:53 +0300 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2023-01-18 00:43:45 +0300

Seen: 939 times

Last updated: Feb 01 '23