We have some USB hardware to install. When we plug the device the PnP is asking to install the device and as our users are locked down they cannot. If I launch the batch with SMS (SMS is using an admin account) then the batch will pause until someone will cancel the PnP window.

If noone is in front of the computer then noone will be able to click cancel and the batch will be pending indefinitely.

Is it a way from the batch file to bypass that PnP window or to make the batch running or...

Any idea would be appreciate.
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


If your driver is correctly preinstalled, the user's shouldn't get the message you're talking about. The message you're referring to is most probably due to your "Driver Signing" policy being set to warn.

See this post for information about preinstalling drivers:

Answered 02/23/2005 by: WiseUser
Fourth Degree Brown Belt

Please log in to comment
Yes we are set to warn.
The document is unclear.
This link is dead: http://home.att.net/~wshvbs/wshAPIToolkitObjectPage.htm

We are not creating MSI so it is more important to do so with a VBS.
I would like more details.

All installation are done here by using a Batch file.

1. Copy the driver locally on the computer
2. Copy the driver.inf to windows\inf and compile the pnf. What does mean this last part.
Answered 02/24/2005 by: Francoisracine
Third Degree Blue Belt

Please log in to comment
Is your driver a signed driver (with "cat" file)? If so, these links (not dead) might help:


Answered 02/24/2005 by: WiseUser
Fourth Degree Brown Belt

Please log in to comment
Also watch out for USB drivers because they like to reconfigure if the user sticks the device into another port. With hardware protection drivers we use a manual process because the key is litterally installed onto every USB port on the computer one by one. This allows a locked down user to plug the device back in without having to remember which port it was installed on. Your device might not behave the same way but be sure to test this.
Answered 02/24/2005 by: kkaminsk
Ninth Degree Black Belt

Please log in to comment
If it helps, I recently packaged an HP Scanjet scanner. This device needed drivers installed as an Admin. If the software was deployed and then a normal user came along and plugged it in, the "Found new Hardware" wizard would come up and ask for a username/password to install the drivers.

The solution we found (which worked PERFECTLY), was to use a feature of Adminstudio 6, this was the "Device Driver Wizard". This took the inf file and the drivers and gave us an MSI that we installed as part of the deployment. Once this was done, when a normal user came along, they would plug in the scanner and all the drivers would install without further prompts.

It is definitely worth checking if you can use this to fix your current issues.

Answered 03/09/2005 by: nmi
Orange Belt

Please log in to comment