[ad_1]
I’m wondering if something is wrong with using diskpart against vhdx files.
I use Powershell to generate Diskpart script, I can’t use the cmdlet optimize-vhd because I don’t have hyper-V, here is an example:
select vdisk file=E:\Profils-RDS\UVHD-S-1-5-21-XXXXXX-XXXX-XXXX-XXXXX.vhdx
attach vdisk readonly
compact vdisk
detach vdisk
It works as expected: my vhdx files get size reduced.
but in eventlog i get Event warning for each Disk i run my diskpartscript :
<Provider Name="Disk" />
<EventID Qualifiers="32772">51</EventID>
<Level>3</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2022-05-30T15:40:38.925739000Z" />
<EventRecordID>1087363</EventRecordID>
<Channel>System</Channel>
Does someone reduce vhdx files without Hyper-V, do you have the same behaviour in eventlog ?
[ad_2]