RE: Checking File and Print Sharing
From: Felix Wang (v-felwa_at_online.microsoft.com)
Date: 08/16/04
- Next message: Andrew Clancy: "restated: VS Develper (non Admin) missing IIS MMC Management"
- Previous message: Bernard: "Re: VS Develper (non Admin) missing IIS MMC Management"
- In reply to: Jeff: "Checking File and Print Sharing"
- Next in thread: Jeff: "Re: Checking File and Print Sharing"
- Reply: Jeff: "Re: Checking File and Print Sharing"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 16 Aug 2004 07:29:58 GMT
Hello Jeff,
Thanks for posting. I think basically you are talking about the issue
addressed in the following article:
You Cannot Install MSDE 2000 if the Server Service Is Not Running
http://support.microsoft.com/?id=829386
The key here is that we need to ensure the "Server" service is running,
instead of installing "File and Printer Sharing" feature. We may make use
of the "System.ServiceProcess.ServiceController" class:
ServiceController sc = new ServiceController("Server");
Console.WriteLine("The Server service status is currently set to
{0}",
sc.Status.ToString());
Or use WMI with VBScript:
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colSettings = objWMIService.ExecQuery _
("SELECT * FROM Win32_Service WHERE DisplayName='Server'")
For Each objService in colSettings
MsgBox objService.State
Next
I hope the information is useful to you.
Regards,
Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
- Next message: Andrew Clancy: "restated: VS Develper (non Admin) missing IIS MMC Management"
- Previous message: Bernard: "Re: VS Develper (non Admin) missing IIS MMC Management"
- In reply to: Jeff: "Checking File and Print Sharing"
- Next in thread: Jeff: "Re: Checking File and Print Sharing"
- Reply: Jeff: "Re: Checking File and Print Sharing"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|