New Question
0

where do I specify file execution return code?

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

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
0

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

avladu gravatar image

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

Hello,

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

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

#ps1
exit 1003

Thank you,
Adrian Vladu

edit flag offensive delete link more

Comments

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 +0200 )edit

Please see the https://cloudbase-init.readthedocs.io/en/latest/tutorial.html#file-execution 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 +0200 )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 +0200 )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

Stats

Asked: 2019-11-17 23:44:37 +0200

Seen: 37 times

Last updated: Nov 19