Unable to run local scripts on windows VM.
Config File
[DEFAULT]
# What user to create and in which group(s) to be put.
username=svctechopsauto groups=Administrators injectuserpassword=false #### # Use password from the metadata (not random).
# Which devices to inspect for a possible configuration drive (metadata).
configdriverawhhd=true configdrive_cdrom=true
# Path to tar implementation from Ubuntu.
bsdtar_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\bsdtar.exe
# Logging debugging level.
verbose=true debug=true
# Where to store logs.
logdir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\ logfile=cloudbase-init-unattend.log defaultloglevels=comtypes=INFO,suds=INFO,iso8601=WARN loggingserialport_settings=
# Enable MTU and NTP plugins.
mtuusedhcpconfig=true ntpusedhcpconfig=true
# Where are located the user supplied scripts for execution.
localscriptspath=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts\
# Services that will be tested for loading until one of them succeeds.
metadata_services=cloudbaseinit.metadata.services.base.EmptyMetadataService, cloudbaseinit.metadata.services.azureservice.AzureService, cloudbaseinit.metadata.services.configdrive.ConfigDriveService, cloudbaseinit.metadata.services.httpservice.HttpService, cloudbaseinit.metadata.services.maasservice.MaaSHttpService
# What plugins to execute.
plugins=cloudbaseinit.plugins.common.localscripts.LocalScriptsPlugin, cloudbaseinit.plugins.common.userdata.UserDataPlugin
# Miscellaneous.
allowreboot=true #### # allow the service to reboot the system stopserviceonexit=false
LocalScript #ps1 file
#ps1_sysnative
# setup logging
Start-Transcript -path C:\cloudbase-init-firstboot.log -Append -force
write-output "NVIDIA customization started" Write-Output "Hello World!"
# stop logging
stop-transcript
# exit with return code 1001
exit 1001