Click here to Skip to main content
15,888,461 members
Home / Discussions / System Admin
   

System Admin

 
QuestionFile Sharing Problem Pin
Saksida Bojan30-Dec-05 3:47
Saksida Bojan30-Dec-05 3:47 
AnswerRe: File Sharing Problem Pin
Mekong River3-Jan-06 13:57
Mekong River3-Jan-06 13:57 
GeneralRe: File Sharing Problem Pin
Saksida Bojan3-Jan-06 20:32
Saksida Bojan3-Jan-06 20:32 
GeneralRe: File Sharing Problem Pin
Mekong River4-Jan-06 5:37
Mekong River4-Jan-06 5:37 
GeneralRe: File Sharing Problem Pin
Saksida Bojan6-Jan-06 11:53
Saksida Bojan6-Jan-06 11:53 
GeneralRe: File Sharing Problem Pin
Mekong River12-Feb-06 12:00
Mekong River12-Feb-06 12:00 
GeneralRe: File Sharing Problem Pin
Saksida Bojan12-Feb-06 19:38
Saksida Bojan12-Feb-06 19:38 
QuestionProblem using WMI - WIN32_ServerSession Class Pin
Nuno Pedro30-Dec-05 2:12
Nuno Pedro30-Dec-05 2:12 
Hello,

I’ve been trying from my local computer to access to another’s Machine WMI.
In my machine I have windows XP installed, but the other machine has windows 2000 installed.
Till now, I’ve been able to access the WMI on the machine with the windows 2000, using several classes (Win32_LogicalDisk; Win32_Service and Win32_Process)

Now I’m trying to get information about terminal sessions on the computer (Name of the machine that is connecting...etc.) with the windows 2000 accessing its WMI from my computer. However this doesn’t seem to be working, I get a 0x80041010 error in line 18 column 1 (see code below). I was able to see that this error is: “Specified class is invalid.”. So I guess the problem is that the WIN32_ServerSession doesn’t exist in the machine with the windows 2000.

Using wbemtest.exe, I realized that the class WIN32_ServerSession doesn’t exist in the machine with windows 2000. However the required files (cimwin32.dll, cimwin32.mfl and cimwin32.mof) exist in the directory \WINDOWS\system32\wbem. How can I add this class to the WMI? Do you think this might be the problem?

I’m a little inexperienced in WMI, so I’m not quite sure to what’s the reason of the problem. Can you please aid getting this to work?

Best Regards,

Nuno Pedro

strComputer = "IP_Windows 2000"
strUser="User"
strPassword="Pass"
strDomain="Domain"

Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator")
Set wbemServices = objSWbemLocator.ConnectServer(strComputer,"root\CIMV2",strUser,strPassword, _
"MS_409","NTLMDomain:" + strDomain)

'for local WMI access
'Set wbemServices = GetObject("winmgmts:\\" & strComputer)
'Set wbemObjectSet = wbemServices.execquery("Select * from Win32_Session")

Set wbemObjectSet = wbemServices.execquery("Select * from Win32_ServerSession")


For Each wbemObject In wbemObjectSet
Wscript.Echo "ActiveTime: " & objItem.ActiveTime
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "ClientType: " & objItem.ClientType
Wscript.Echo "ComputerName: " & objItem.ComputerName
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "IdleTime: " & objItem.IdleTime
Wscript.Echo "InstallDate: " & objItem.InstallDate
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "ResourcesOpened: " & objItem.ResourcesOpened
Wscript.Echo "SessionType: " & objItem.SessionType
Wscript.Echo "Status: " & objItem.Status
Wscript.Echo "TransportName: " & objItem.TransportName
Wscript.Echo "UserName: " & objItem.UserName
Next




AnswerRe: Problem using WMI - WIN32_ServerSession Class Pin
Dave Kreskowiak30-Dec-05 4:20
mveDave Kreskowiak30-Dec-05 4:20 
GeneralRe: Problem using WMI - WIN32_ServerSession Class Pin
Nuno Pedro30-Dec-05 4:25
Nuno Pedro30-Dec-05 4:25 
GeneralRe: Problem using WMI - WIN32_ServerSession Class Pin
Dave Kreskowiak30-Dec-05 8:11
mveDave Kreskowiak30-Dec-05 8:11 
QuestionInvalid DNS record Pin
fegf29-Dec-05 22:46
fegf29-Dec-05 22:46 
QuestionVirtual Memory Pin
militiaware29-Dec-05 13:54
militiaware29-Dec-05 13:54 
AnswerRe: Virtual Memory Pin
Saksida Bojan30-Dec-05 3:39
Saksida Bojan30-Dec-05 3:39 
GeneralRe: Virtual Memory Pin
Michael Dunn31-Dec-05 11:02
sitebuilderMichael Dunn31-Dec-05 11:02 
GeneralRe: Virtual Memory Pin
Saksida Bojan31-Dec-05 13:39
Saksida Bojan31-Dec-05 13:39 
GeneralRe: Virtual Memory Pin
Jared Parsons5-Jan-06 12:27
Jared Parsons5-Jan-06 12:27 
QuestionCan Admin block specific URLS(urgent pls) Pin
RockyJames26-Dec-05 19:18
RockyJames26-Dec-05 19:18 
AnswerRe: Can Admin block specific URLS(urgent pls) Pin
Saksida Bojan28-Dec-05 8:17
Saksida Bojan28-Dec-05 8:17 
AnswerRe: Can Admin block specific URLS(urgent pls) Pin
Dave Kreskowiak28-Dec-05 9:03
mveDave Kreskowiak28-Dec-05 9:03 
AnswerRe: Can Admin block specific URLS(urgent pls) Pin
kingossi17-Jan-06 23:39
kingossi17-Jan-06 23:39 
QuestionHaving a problem with my MMC. ?? Pin
Vimsmiles26-Dec-05 9:05
Vimsmiles26-Dec-05 9:05 
AnswerRe: Having a problem with my MMC. ?? Pin
Indivara26-Dec-05 13:45
professionalIndivara26-Dec-05 13:45 
AnswerRe: Having a problem with my MMC. ?? Pin
Dave Kreskowiak26-Dec-05 14:13
mveDave Kreskowiak26-Dec-05 14:13 
QuestionMy computer thinks it is a RR crossing signal Pin
JimmyRopes25-Dec-05 22:35
professionalJimmyRopes25-Dec-05 22:35 

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.