Hi SharrockpDue to the complexity involved with plug and play, BIOS, ACPI Advanced Configuration & Power Interface, Hardware, and Software configurations... I would not recommend trying to remove these from a logon script even if you could.
Please take a look at these articles and see if they are any help for you. As I said though, I would not recommend doing via a logon script. These links do provide more information on hardware profiles and other stuff.
How to Manually Create Hardware Profiles for Laptop Computers (Q141600) http://support.microsoft.com/default.aspx?scid=kb;en-us;Q141600
Windows 98 and Windows Me Hardware/Device Driver Troubleshooting Resource Center http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com/support/windows/topics/hardware/hwddresctr.asp
MyDesktopHelp.Com Tips, Hacks, and Information Section http://www.mydesktophelp.com/tips.htm