New Question

where do I specify file execution return code?

asked 2019-11-17 23:44:37 +0300

mongdul gravatar image

Hi, I am new to cloudbase-intit and python, I am trying to add Windows PC to the domain using local script, followed by reboot and carry on. seems like I need to use return code 1003 but I am not sure where to specify this.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2019-11-19 13:20:47 +0300

avladu gravatar image

updated 2019-11-19 13:23:02 +0300


In this case, a return code is equivalent to the exit code.

If the localscript is a powershell script, then it looks like:

exit 1003

Thank you,
Adrian Vladu

edit flag offensive delete link more


Hi Adrian thanks, but its not doing a reboot, also Restart-Computer command doesnt work either, (which works fine when run manually from Windows)

mongdul gravatar imagemongdul ( 2019-11-20 08:16:28 +0300 )edit

Please see the page. If cloudbase-init does not reboot, then it's most likely a problem with the configuration file or how cloudbase-init was installed. How did you create the Windows image / install cloudbase-init?

avladu gravatar imageavladu ( 2019-11-20 14:58:24 +0300 )edit

Hi thanks for your reply. I didnt use sysprep but take a snapshot after the PC has been custimised with software, and cloudbase intit etc. my config files are default from install.

mongdul gravatar imagemongdul ( 2019-11-20 22:25:40 +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: 2019-11-17 23:44:37 +0300

Seen: 588 times

Last updated: Nov 19 '19