Yes now I see.
It's NUMTOHEX( NSERIALHD() ) that give the same result as the VOL command.
So NSERIALHD() is not the real serial-number. After re-formating it, it will be different then.
There are also utilities to change it
Enrico Maria Giordano wrote:You forgot the code.
EMG
nSerialHD() = 410452486
NUMTOHEX( NSERIALHD() ) = 18770206
wmic diskdrive get serialnumber = S3TRNA0M316529
wmic diskdrive get serialnumber
msginfo( nserialhd("C"))