New Question

aenagy's profile - activity

2025-02-20 16:10:56 +0200 received badge  Famous Question (source)
2025-02-20 16:10:56 +0200 received badge  Notable Question (source)
2025-02-20 16:10:56 +0200 received badge  Popular Question (source)
2025-02-20 16:06:26 +0200 marked best answer Confirmation pop-up when executing Format-Partition [CloudBase-Init 1.1.6, Windows Server 2019]

I have a CloudBase-Init that includes the following line of PowerShell:

Get-Disk | Where-Object PartitionStyle -Eq "RAW" | Initialize-Disk -PassThru | New-Partition -AssignDriveLetter -UseMaximumSize | Format-Volume -NewFileSystemLabel "DATA" -FileSystem NTFS -Force

During deployment autologon logs in and I see the following pop-up:

Title: Microsoft Windows
Body:
You need to format the disk in drive E: before you can use it.
Do you want to format it?
[Format disk] [Cancel]

When installing CloudBase-Init I specified that it should run as system. In the same code block as above I output whoami /all to a text file and can confirm that the username is nt authority\system. If I run the above PowerShell after deployment as local Admin I don't get any pop-up or prompts -- it just executes.

How do I fix this?

2025-02-20 16:06:01 +0200 received badge  Famous Question (source)
2025-02-20 16:06:01 +0200 received badge  Notable Question (source)
2025-02-20 16:06:01 +0200 received badge  Popular Question (source)
2025-01-20 18:57:32 +0200 received badge  Famous Question (source)
2025-01-20 18:57:32 +0200 received badge  Notable Question (source)
2025-01-20 18:57:32 +0200 received badge  Popular Question (source)
2025-01-15 05:21:56 +0200 answered a question Confirmation pop-up when executing Format-Partition [CloudBase-Init 1.1.6, Windows Server 2019]

I posted this question thinking that had encountered a permission or elevated privilege problem. It seems that this is n

2025-01-14 07:35:41 +0200 asked a question Confirmation pop-up when executing Format-Partition [CloudBase-Init 1.1.6, Windows Server 2019]

Confirmation pop-up when executing Format-Partition [CloudBase-Init 1.1.6, Windows Server 2019] I have a CloudBase-Init

2025-01-14 07:25:59 +0200 edited question Cannot create a user logon session for user: "Admin" [CloudBase-Init 1.1.6, Windows Server 2019]

Cannot create a user logon session for user: "Admin" [CloudBase-Init 1.1.6, Windows Server 2019] My CloudBase-Init is fa

2025-01-14 07:25:56 +0200 received badge  Editor (source)
2025-01-14 07:25:56 +0200 edited question Cannot create a user logon session for user: "Admin" [CloudBase-Init 1.1.6, Windows Server 2019]

Cannot create a user logon session for user: "Admin" [Windows Server 2019] My CloudBase-Init is failing with: 2025-01-1

2025-01-14 07:16:38 +0200 asked a question Cannot create a user logon session for user: "Admin" [CloudBase-Init 1.1.6, Windows Server 2019]

Cannot create a user logon session for user: "Admin" [Windows Server 2019] My CloudBase-Init is failing with: 2025-01-1

2025-01-14 07:13:59 +0200 asked a question Cannot create a user logon session for user: "Admin" [Windows Server 2019]

Cannot create a user logon session for user: "Admin" [Windows Server 2019] My CloudBase-Init is failing with: 2025-01-1