powershell.exe over the guest agent can return UTF-16LE, so Test-Path read as T\0r\0u\0e and every 'grep true' failed. Strip NULs in _qga_unwrap, and only treat an explicit False as proof that the role script is absent.
powershell.exe over the guest agent can return UTF-16LE, so Test-Path read as T\0r\0u\0e and every 'grep true' failed. Strip NULs in _qga_unwrap, and only treat an explicit False as proof that the role script is absent.