Sentro Posted June 28, 2010 Posted June 28, 2010 Hi, Does anyone have a tool to scan a directory and automatically add the sub folders to the OEM PNP Drivers Path Registry key? I have lots of drivers in lots of subfolders on my master image XP machine and I really don't want to go through and have the type them manually. Thanks in advance.
Guest Guest Posted June 28, 2010 Posted June 28, 2010 dir folder /b /s /ad > file.txt Then use excel to manipulate it into the apropriate format.
Arthur Posted June 29, 2010 Posted June 29, 2010 Microsoft have a VBScript on their TechNet website that does exactly what you want (it's called PNPPath.vbs). You will find the link to download it at the top of this page. I have also mirrored it here too. By the way, the OEMPnpDriversPath value is limited to 4,096 characters, so if your folder names come to more than that you will either need to shorten them or use SysPrep Driver Scanner instead. This uses the "DevicePath" registry key which has a limit of 64,000 characters.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now