
Originally Posted by
Fonz_Valo
I hope some can help, I feel like banging my head against the wall with this one lol
I have recently created a new ghost image for use in the Music department where I work and whilst the image its self works well there is one problem that is giving me a headache.
When ever a non-admin user inserts a usb pen drive they are prompted for the administrator username and password to install it. Now this only happens on this system build and i'm having trouble discovering what could be causing it.....
Oh by the way these are normal generic pen drives (no U3 software)
Does anyone have any ideas?
The systems are running XP Pro SP3 if that helps
Not sure if this will help but it works on our network - it requires two scripts - one AutoIT and the other a CMD file. I wrote this so a normal user can run it without having to hassle me.....
Edit to your requirements.
The AutoIT script:
Code:
; AutoIt Version: 3.2.8.1
; Language: English
; Platform: WinXP
; Author: Matt
; Script Function: USB Admin Rights Box Fix
; Version: 1 Beta
; Date: Sept 2008
Opt("TrayIconHide", 1)
SplashTextOn("USB Device Driver Repair by Matt","Remove any USB device from the computer NOW","300","50","-1","-1",2,"","","")
Sleep(5000)
SplashOff()
RunAsSet("administrator", @ComputerName, "YOUR_ADMIN_PASSWORD")
Run(@ComSpec & ' /c net stop cryptsvc', '', @SW_HIDE)
SplashTextOn("USB Device Driver Repair by Matt","Trying to fix problem - this may not work","300","50","-1","-1",2,"","","")
Sleep(5000)
SplashOff()
Run("C:\logs\remove catroot2.cmd")
sleep(3000)
Run(@ComSpec & ' /c net start cryptsvc', '', @SW_HIDE)
RunAsSet()
If FileExists("C:\windows\system32\catroot2") Then
MsgBox(4096, "USB Device Driver Repair", "Ooops, Fix Failed, Re-boot PC and try again")
Else
MsgBox(4096, "USB Device Driver Repair", "Lucky You - Fix may have worked, insert USB Device and cross fingers")
EndIf
Exit The CMD [ which needs to be in a folder called C:\logs for this to work ]
Code:
rd c:\windows\system32\catroot2 /s /q
I had to bodge the .CMD file as for some reason I could not get AutoIT [ in this script ] to remove the directory.