mritter Posted July 28, 2010 Posted July 28, 2010 Sweet. I will get to work on the reboot request.........if I can get my computer to boot. I think it crashed last night.
WosWasI Posted August 20, 2010 Posted August 20, 2010 (edited) Big Future Request to handle different Problems!I need a function they check if a Registry Key exist! I need it to detect Hardware like USB WWAN Modems for Dell E64xx Notebooks. My solution in the moment looks like this script:' Constants (taken from WinReg.h)'Const HKEY_CLASSES_ROOT = &H80000000Const HKEY_CURRENT_USER = &H80000001Const HKEY_LOCAL_MACHINE = &H80000002Const HKEY_USERS = &H80000003' Chose computer name, registry tree and key path'strComputer = "." ' Use . for current machinehDefKey = HKEY_LOCAL_MACHINEstrKeyPath = "SYSTEM\CurrentControlSet\Enum\USB\Vid_413c&Pid_8184" '<- this key exist if the hardware is present!' Connect to registry provider on target machine with current user'set objShell = WScript.CreateObject("WScript.Shell")Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")' Try to enum the subkeys of the key path we've chosen. We can't if the key doesn't exist'If oReg.EnumKey(hDefKey, strKeyPath, arrSubKeys) = 0 Then objShell.Run ("setup driver") objShell.Run ("setup wwanmanager")End IfThe WPI included Hardwaredetection are not enough. Videocard, Modem, NIC, ... are nice ... sometimes i need more heheheNext Future Request!I need a function, they edit the Boot.ini to customize the time counter. 30sec are to long ^_^ Edited August 20, 2010 by WosWasI
mritter Posted August 25, 2010 Posted August 25, 2010 (edited) All but two of these has been added.@WosWasl: I may have an idea for the hardware checker. Made a note.....Started new topic at the top. Edited August 25, 2010 by mritter
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