New Question
0

Trouble getting access to Powershell GUI using cloudbase-init LocalScript

asked 2024-11-14 01:41:03 +0200

anonymous user

Anonymous

I have a Windows VM where I have set up Cloudbase-init and I want to access the Powershell GUI which should have been launched via the LocalScripts once I log in to the Windows VM. However, I can't see the GUI when I log in. The Powershell process is running though, which I can confirm under the details tab in the task manager.

I suspect the cloudbase-init runs as a different account apart from my local admin account. How do I run it via the local admin account I have already created? I tried setting the username in the config file as the admin account name but it doesn't work.

Any help is appreciated.

Below is my cloudbase-init.conf:

[DEFAULT]
username=shrshah
config_drive_raw_hhd=true
config_drive_cdrom=true
config_drive_vfat=true
bsdtar_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\bsdtar.exe
mtools_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\
verbose=true
debug=true
log_dir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\
log_file=cloudbase-init.log
default_log_levels=comtypes=INFO,suds=INFO,iso8601=WARN,requests=WARN
loggingserialport_settings=
mtu_use_dhcp_config=true
ntp_use_dhcp_config=true
local_scripts_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts\
check_latest_version=true
netbios_host_name_compatibility=false
metadata_services=cloudbaseinit.metadata.services.httpservice.HttpService, 
                  cloudbaseinit.metadata.services.base.EmptyMetadataService
plugins=cloudbaseinit.plugins.common.localscripts.LocalScriptsPlugin

And here is the startup script that I run via LocalScripts:

Start-Process powershell -ArgumentList '-NoExit', '-Command', '& {C:\Windows\system32\nomad.exe agent -config=C:\Nomad\winfarm_working_dir_shrshah\isolated_client_and_servers\clients\client2.hcl}' -NoNewWindow:$false
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2024-12-02 12:19:00 +0200

avladu gravatar image

Hello,

cloudbase-init runs headless (as a console program under a Windows service, no GUI).

What you can do is have a user logon script maybe - more information is presented here: https://learn.microsoft.com/en-us/troubleshoot/windows-client/system-management-components/run-programs-automatically.

Thanks.

edit flag offensive delete link more

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: 2024-11-14 01:41:03 +0200

Seen: 312 times

Last updated: Dec 02