New Question

mongdul's profile - activity

2020-02-27 00:11:06 +0300 received badge  Famous Question (source)
2020-02-27 00:11:06 +0300 received badge  Notable Question (source)
2020-02-27 00:11:06 +0300 received badge  Popular Question (source)
2020-02-14 16:44:29 +0300 received badge  Famous Question (source)
2019-11-20 22:25:40 +0300 commented answer where do I specify file execution return code?

Hi thanks for your reply. I didnt use sysprep but take a snapshot after the PC has been custimised with software, and cl

2019-11-20 22:19:23 +0300 received badge  Notable Question (source)
2019-11-20 14:55:59 +0300 received badge  Popular Question (source)
2019-11-20 08:16:28 +0300 commented answer where do I specify file execution return code?

Hi Adrian thanks, but its not doing a reboot, also Restart-Computer command doesnt work either, (which works fine when r

2019-11-19 02:38:21 +0300 received badge  Enthusiast
2019-11-17 23:44:37 +0300 asked a question where do I specify file execution return code?

where do I specify file execution return code? Hi, I am new to cloudbase-intit and python, I am trying to add Windows P

2019-11-17 23:10:55 +0300 commented answer my local script do not run

Thank you.

2019-11-17 23:10:46 +0300 marked best answer my local script do not run

I have simple batch

rem cmd echo 2 >c:\text.txt

in C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts

for some reason it does not run

this is the log

2019-11-12 03:42:12.144 1460 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.osutils.windows.WindowsUtils' loadclass c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\classloader.py:27 2019-11-12 03:42:12.769 1460 DEBUG cloudbaseinit.osutils.windows [-] Checking if service exists: cloudbase-init checkserviceexists c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py:894 2019-11-12 03:42:12.785 1460 DEBUG cloudbaseinit.osutils.windows [-] Getting service username: cloudbase-init getserviceusername c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py:1027 2019-11-12 03:42:12.785 1460 DEBUG cloudbaseinit.osutils.windows [-] Resetting password for service user: .\cloudbase-init resetservicepassword c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py:1050 2019-11-12 03:42:12.848 1460 DEBUG cloudbaseinit.osutils.windows [-] Setting service credentials: cloudbase-init setservicecredentials c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py:1010 2019-11-12 03:42:12.894 1460 INFO cloudbaseinit.init [-] Respawning current process with updated credentials. 2019-11-12 03:42:12.894 1460 DEBUG cloudbaseinit.osutils.windows [-] Creating logon session for user: .\cloudbase-init createuserlogonsession c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py:566 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell [-] Cannot load user profile: 'The device is not ready.' 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell Traceback (most recent call last): 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\shell.py", line 41, in main 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell init.InitManager().configurehost() 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\init.py", line 166, in configurehost 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell self.resetservicepasswordandrespawn(osutils) 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\init.py", line 156, in _resetservicepasswordandrespawn 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell logontype=osutils.LOGON32LOGONBATCH) 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py", line 587, in createuserlogonsession 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell "Cannot load user profile: %r") 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell cloudbaseinit.exception.WindowsCloudbaseInitException: Cannot load user profile: 'The device is not ready.' 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell 2019-11-12 03:42:56.803 1444 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.osutils.windows.WindowsUtils' loadclass c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils ... (more)

2019-11-17 23:10:46 +0300 received badge  Scholar (source)
2019-11-12 23:03:34 +0300 asked a question my local script do not run

my local script do not run I have simple batch rem cmd echo 2 >c:\text.txt in C:\Program Files\Cloudbase Solutions