PDA

Показать полную графическую версию : [решено] Samsung AllShare автозапуск при старте ПК


berkut_174
27-10-2013, 08:29
Доброго времени суток!

Проблема такая: на ПК установлена Windows XP SP3 и AllShare.
При запуске ПК AllShare запускает своего агента и тут же выключается (в трее значок с красным крестиком).
Вручную запустить сервис получается.
В логе это:
Тип события: Ошибка
Источник события: SamsungAllShareV2.0
Категория события: Отсутствует
Код события: 0
Дата: 26.10.2013
Время: 11:20:29
Пользователь: Н/Д
Компьютер: ZIGNUM
Описание:
Невозможно запустить службу. System.Runtime.InteropServices.COMException (0x80010002): Вызов был отклонен фильтром сообщений. (Исключение из HRESULT: 0x80010002 (RPC_E_CALL_CANCELED))
в System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
в System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
в System.Management.ManagementScope.InitializeGuts(Object o)
в System.Management.ManagementScope.Initialize()
в System.Management.ManagementEventWatcher.Initialize()
в System.Management.ManagementEventWatcher.Start()
в AllShareDmsUtil.Manager.AllShareDmsManager.InitEventWatcher()
в AllShareDmsUtil.Manager.AllShareDmsManager.Initialize()
в AllShareDmsUtil.Manager.AllShareDmsManager..ctor()
в AllShareDmsUtil.Manager.AllShareDmsManager.get_Instance()
в AllShareDMS.AllShareDMS.DoStart()
в AllShareDMS.AllShareDMS.OnStart(String[] args)
в System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)

Дополнительные сведения можно найти в центре справки и поддержки, в "http://go.microsoft.com/fwlink/events.asp".


Подскажите как решить эту проблему, чтобы сервис запускался самостоятельно при запуске ПК ?
Кстати, на Windows 7 Pro также сервис не запускается при старте.

Спасибо.

Petya V4sechkin
27-10-2013, 08:48
чтобы сервис запускался самостоятельно при запуске ПК ?
(possible) solution for Warning Stop Allshare Service (http://forums.cnet.com/7726-13973_102-5386423.html)
The solution is to make the Allshare service depend on winmgmt service
add a dependency to the Windows Management Instrumentation service (http://stackoverflow.com/a/13454379/1003958)

berkut_174
27-10-2013, 09:11
add a dependency to the Windows Management Instrumentation service »
sc <server> config [service name] <option1> <option2>...

<server> = localhost ?

C:\Documents and Settings\berkut_174>sc localhost config "SamsungAllshareV2.0" d
epend = winmgmt
*** Unrecognized Command ***
DESCRIPTION:
SC is a command line program used for communicating with the
NT Service Controller and services.
USAGE:
sc <server> [command] [service name] <option1> <option2>...

The option <server> has the form "\\ServerName"
Further help on commands can be obtained by typing: "sc [command]"
Commands:
query-----------Queries the status for a service, or
enumerates the status for types of services.
queryex---------Queries the extended status for a service, or
enumerates the status for types of services.
start-----------Starts a service.
pause-----------Sends a PAUSE control request to a service.
interrogate-----Sends an INTERROGATE control request to a service.
continue--------Sends a CONTINUE control request to a service.
stop------------Sends a STOP request to a service.
config----------Changes the configuration of a service (persistant).
description-----Changes the description of a service.
failure---------Changes the actions taken by a service upon failure.
sidtype---------Changes the service SID type of a service.
qc--------------Queries the configuration information for a service.
qdescription----Queries the description for a service.
qfailure--------Queries the actions taken by a service upon failure.
qsidtype--------Queries the service SID type of a service.
delete----------Deletes a service (from the registry).
create----------Creates a service. (adds it to the registry).
control---------Sends a control to a service.
sdshow----------Displays a service's security descriptor.
sdset-----------Sets a service's security descriptor.
showsid---------Displays the service SID string corresponding to an ar
bitrary name.
GetDisplayName--Gets the DisplayName for a service.
GetKeyName------Gets the ServiceKeyName for a service.
EnumDepend------Enumerates Service Dependencies.

The following commands don't require a service name:
sc <server> <command> <option>
boot------------(ok | bad) Indicates whether the last boot should
be saved as the last-known-good boot configuration
Lock------------Locks the Service Database
QueryLock-------Queries the LockStatus for the SCManager Database
EXAMPLE:
sc start MyService

Would you like to see help for the QUERY and QUERYEX commands? [ y | n ]: n

C:\Documents and Settings\berkut_174>sc config "SamsungAllshareV2.0" depend = wi
nmgmt
Modifies a service entry in the registry and Service Database.
SYNTAX:
sc <server> config [service name] <option1> <option2>...
CONFIG OPTIONS:
NOTE: The option name includes the equal sign.
type= <own|share|interact|kernel|filesys|rec|adapt>
start= <boot|system|auto|demand|disabled>
error= <normal|severe|critical|ignore>
binPath= <BinaryPathName>
group= <LoadOrderGroup>
tag= <yes|no>
depend= <Dependencies(separated by / (forward slash))>
obj= <AccountName|ObjectName>
DisplayName= <display name>
password= <password>


PS.
Нашёл ошибку: sc config SamsungAllshareV2.0 depend= winmgmt




© OSzone.net 2001-2012