Click here to Skip to main content
15,916,945 members
Home / Discussions / System Admin
   

System Admin

 
GeneralNative ZwQuerySemaphore Pin
nicolas bertrand25-Jun-01 3:41
nicolas bertrand25-Jun-01 3:41 
Questionchange shell from prompt on windows me? Pin
22-Jun-01 20:34
suss22-Jun-01 20:34 
AnswerRe: change shell from prompt on windows me? Pin
Michael Dunn22-Jun-01 22:00
sitebuilderMichael Dunn22-Jun-01 22:00 
GeneralApplication control Pin
17-Jun-01 5:58
suss17-Jun-01 5:58 
Question2 mice in win2K? Pin
John M. Drescher14-Jun-01 11:07
John M. Drescher14-Jun-01 11:07 
GeneralDriver Sound Card Pin
7-Jun-01 18:13
suss7-Jun-01 18:13 
QuestionWho have CNET card driver for Linux Redhat 7.1 ? Pin
7-Jun-01 7:43
suss7-Jun-01 7:43 
GeneralWMI Scripting Questions Pin
Joe Paisley4-Jun-01 5:36
Joe Paisley4-Jun-01 5:36 
From the user logon script I am attempting to determine whether or not the connection is via a dial-up connection or through the Ethernet adapter. The clients are all running Windows 2000. I have been trying to use WMI to extract the information. I can successfully pull information using the Win32_POTSModem, but this does not provide information about an actual connection. When I tried to use Win32_SerialPortConfiguration I began having problems getting the script to run properly. I have provided the SUB I am using. Any advice anyone have would be appreciated.

Private Sub Check_Modem()

Dim objWMI, objModemSet, Modem, ModemInfo

Dim SerialPortSet, SerialPort, SerialPortInfo

Dim Dialup AS Boolean

Set objWMI = GetObject("winmgmts:")

Set objModemSet = objWMI.InstancesOf("Win32_POTSModem")

Set objSerialPortSet = objWMI.InstancesOf("Win32_SerialPortConfiguration")

For Each Modem In objModemSet

For Each SerialPort in objSerialPortSet

If SerialPort.Name = Modem.AttachedTo Then

If SerialPort.IsBusy Then

Dialup=True

End If

End If

Next

Next

End sub


Thanks

Joe Paisley

Smurfit-Stone Container



Dead | X|

Joe Paisley
GeneralScript file to shut down server at a certain time Pin
30-May-01 19:26
suss30-May-01 19:26 
GeneralRe: Script file to shut down server at a certain time Pin
Garth J Lancaster30-May-01 20:18
professionalGarth J Lancaster30-May-01 20:18 
GeneralRe: Script file to shut down server at a certain time Pin
1-Jun-01 5:30
suss1-Jun-01 5:30 
GeneralRe: Script file to shut down server at a certain time Pin
Garth J Lancaster3-Jun-01 23:41
professionalGarth J Lancaster3-Jun-01 23:41 
GeneralRe: Script file to shut down server at a certain time Pin
5-Jun-01 19:13
suss5-Jun-01 19:13 
GeneralRe: Script file to shut down server at a certain time Pin
Garth J Lancaster7-Jun-01 13:21
professionalGarth J Lancaster7-Jun-01 13:21 
GeneralRe: Script file to shut down server at a certain time Pin
7-Jun-01 21:35
suss7-Jun-01 21:35 
GeneralRe: Script file to shut down server at a certain time Pin
Garth J Lancaster7-Jun-01 21:51
professionalGarth J Lancaster7-Jun-01 21:51 
GeneralRe: Script file to shut down server at a certain time Pin
8-Jun-01 20:29
suss8-Jun-01 20:29 
GeneralRe: Script file to shut down server at a certain time Pin
Garth J Lancaster9-Jun-01 1:44
professionalGarth J Lancaster9-Jun-01 1:44 
GeneralRe: Script file to shut down server at a certain time Pin
20-Jun-01 2:56
suss20-Jun-01 2:56 
GeneralRe: Script file to shut down server at a certain time Pin
20-Jun-01 3:57
suss20-Jun-01 3:57 
GeneralWinNT service and system shutdown Pin
"Le Phuc Nguyen Tuan"25-May-01 19:17
"Le Phuc Nguyen Tuan"25-May-01 19:17 
GeneralRe: WinNT service and system shutdown Pin
Kyui Oh20-Jun-01 17:11
Kyui Oh20-Jun-01 17:11 
GeneralReplacing Windows 95/98 logon Pin
Grzegorz Stelmaszek22-May-01 2:13
Grzegorz Stelmaszek22-May-01 2:13 
GeneralRe: Replacing Windows 95/98 logon Pin
Dhanush31-May-01 1:29
professionalDhanush31-May-01 1:29 
GeneralRe: Replacing Windows 95/98 logon Pin
Dhanush31-May-01 1:29
professionalDhanush31-May-01 1:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.