Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: disable modem device
Thanks for any hint or tip.
If you just want to disable the modem use:
AddExtender("WWWNT34i.DLL") wntSvcCfgSet("", "Modem", 1000, 1, 4)
To also stop it use:
wntSvcControl("", "Modem", 1000, 1)
You can test the current state (started or not) with wntSvcStatus, and test its start type with wntSvcCfgGet.
For both, the user must have the appropriate rights. You could use wntRunAsUser or RunWithLogon to run the script as an admin if the user does not have the proper rights.
Or you could grant so that "Authenticated Users" have WRITE rights to:
HLKM\System\CurrentControlSet\Services\Modem
Changing the "Start" value under this key disables the modem. If it has not started already this should prevent it from starting.
Article ID: W15510
File Created: 2003:05:13:11:28:26
Last Updated: 2003:05:13:11:28:26