Hi jj,
If you look in the control panel at your service's properties (Log On
tab), you will probably see that your service is running under the
Local System account. When a process runs under this account, it has
different privileges than a process that runs interactively. One of
the major differences is that it does not have access to network
resources. You can verify this by changing the service to run under a
different account (pick "This account:") which does have the privileges
to access network resources.
Another major difference when running under the Local System account is
that you don't (by default) have access to the desktop session of the
logged in user. This means that if you try to have your service pop up
windows, etc... it might not work. The "interact with desktop" is
meant to solve this.
Hope this helps,
John
jj wrote:
I have a changed my simple windows form application to simple service. It
collects file information.
My application uses WMI and I can collect file attributes from shared and
other nodes in the network.
However, with my service I can collect file attribute info only from the
local machine the servie is running NOT from other nodes.
Can somebody help me here....
Newbie here
thanks