microsoft / diskspd

DISKSPD is a storage load generator / performance test tool from the Windows/Windows Server and Cloud Server Infrastructure Engineering teams
MIT License
1.14k stars 212 forks source link

launch.ps1 does not get started automatically (on Server 2025?) #214

Open DaStivi opened 1 month ago

DaStivi commented 1 month ago

apparently launch.ps1 does not get started automatically, is there by any change ah way of figuring out way? vhdx seeams to be prepared correctly, scripts are on the disk but start-fleetsweep only loops in the completion check with no progress...

on the fleet vms i don't see any progress, not powrshell is running... as soon as i manually start launch.ps1 i'll see the drive gets mapped and its "running" or getting into pause mode ... whatever..

DaStivi commented 1 month ago

i'll found the powershell.exe call in HKLM\Software\Microsoft\Windows NT\CurrentVersrion\Winlogon\Shell....

but it does not run... when i just run "powershell.exe" as shell it is starting! when i start the "powershell.exe -noexit c:\users\administrator\launch.ps1" manually it also runs fine

as soon as i enter more then the powershell.exe command, so just adding some parameter it looks like it doesnt start anymore...

dl2n commented 1 month ago

Can you confirm which SKU you are using for the VMs? It should be Datacenter Core; not the full GUI Datacenter.

DaStivi commented 1 month ago

I've used (standard) core sku Server 2025

I did a workaround now, I've converted the launch.ps1 to exe with ps2exe module.... Right away having the launch.exe in the user path also didn't worked.... I then copied the launch.exe to windows\system32 and just had "launch.exe" then in the winlogon-shell regkey and this started to work now!

I might Test what happens when the launch.ps1 is in some different path .. I'll just guess it's some permission issue that the script can't be loaded/accessed?! (Maybe because some security hardenings in Server 2025?!)

dl2n commented 3 weeks ago

Are you in a position to try the Datacenter Core image? I'm ~worried there may be a wrinkle with Standard Core, which is less accessible for me to check against. Will if I need to.