Re: VB.Net WMI Windows Server 2003

From: Sarika Sharma[MSFT] (sarikas_at_online.microsoft.com)
Date: 05/05/04


Date: Wed, 5 May 2004 09:09:31 -0700

The domain admin account should be able to perform this action.

NotFound management exception indicates that the management object you are
trying to work with does not exist. which is not explaining well as with
normal exe you are able to .

Did you run normal exe under domain admin as well?

-- 
Sarika Sharma [MSFT]
WMI Test Engineer
This posting is provided "As Is" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Please do not send e-mail directly to this alias. This alias is for
newsgroup purposes only.
"Ger" <gercullen@hotmail.com> wrote in message
news:1ab69b46.0405042253.505e02f8@posting.google.com...
> The exact error code I get is "NotFound"! My service is running as a
> Domian Admin account.
>
> Could it be anything to do with policies?
>
> Appreciate the help.
>
> Ger.
>
>
> "Sarika Sharma[MSFT]" <sarikas@online.microsoft.com> wrote in message
news:<OhpGy$fMEHA.3988@TK2MSFTNGP09.phx.gbl>...
> > What is the exact error code you are getting?
> >
> > What is your service runnning as?
> >
> > -- 
> > Sarika Sharma [MSFT]
> > WMI Test Engineer
> > This posting is provided "As Is" with no warranties, and confers no
rights.
> > Use of included script samples are subject to the terms specified at
> > http://www.microsoft.com/info/cpyright.htm
> > Please do not send e-mail directly to this alias. This alias is for
> > newsgroup purposes only.
> >
> >
> >
> >
> >
> > "Ger" <gercullen@hotmail.com> wrote in message
> > news:1ab69b46.0405032233.64742d94@posting.google.com...
> > > Hi Sarika,
> > >
> > > My codes works fine when I run it from a normal executable in w2k3.
> > > The problem seems to stem from the fact the code is being executed
> > > from a windows service. Any Ideas?
> > >
> > > Thanks,
> > >
> > > Ger.
> > >
> > > "Sarika Sharma[MSFT]" <sarikas@online.microsoft.com> wrote in message
> >  news:<utvepCWMEHA.628@TK2MSFTNGP11.phx.gbl>...
> > > > If the code works as expected in XP it should behave correctly in
w2k3
> >  also
> > > > . Please make sure the fileobject on which you are trying to invoke
the
> > > > method exists in w2k3 machine.
> > > >
> > > > And yes it will be worth while to see if  the problem repros with a
> >  normal
> > > > exe.
> > > >
> > > > -- 
> > > > Sarika Sharma [MSFT]
> > > > WMI Test Engineer
> > > > This posting is provided "As Is" with no warranties, and confers no
> >  rights.
> > > > Use of included script samples are subject to the terms specified at
> > > > http://www.microsoft.com/info/cpyright.htm
> > > > Please do not send e-mail directly to this alias. This alias is for
> > > > newsgroup purposes only.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > "Ger" <gercullen@hotmail.com> wrote in message
> > > > news:1ab69b46.0405022311.63ca11d@posting.google.com...
> > > > > I am having problems using VB.Net's Management base object on a
> > > > > machine hosting Windows Server 2003. I am trying to set file
> > > > > permissions from a Windows Service. These files may be loacted on
a
> > > > > local machine or somewhere on the network. I use the Management
Base
> > > > > Object to set these permissions which works perfectly when the
windows
> >
> > > > > service is running on an XP machine. However, when the service is
> > > > > running on a Windows Server 2003 machine I get an error.
> > > > >
> > > > > When the following code is executed an exception is thrown with a
> > > > > meassge of "Not Found"!
> > > > >
> > > > >  Dim outparams As ManagementBaseObject =
> > > > > objFile.InvokeMethod("GetSecurityDescriptor", Nothing, options)
> > > > >
> > > > > I am not sure if this problem is specific to running a Windows
Service
> > > > > on a Windows Server 2003 machine or if a normal executable would
also
> > > > > produce the same result.
> > > > >
> > > > > Any help or suggestions would be greatly appreciated on this.
> > > > >
> > > > > Kind Regards.
> > > > >
> > > > > Ger.


Relevant Pages

  • Re: VB.Net WMI Windows Server 2003
    ... The domain admin account should be able to perform this action. ... NotFound management exception indicates that the management object you are ... Please do not send e-mail directly to this alias. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Fax in Win2k3
    ... Installed a brand new Windows 2003 RTM Standard edition. ... Log in as the administrator, install fax and send a fax. Send a fax ... Please do not send email directly to this alias. ... >> and yes I am a Domain Admin when I get the permissions error. ...
    (microsoft.public.win2000.fax)
  • Re: Profile Problem
    ... I rebooted and logged in as a different domain admin account, ... I did reboot and am signed in another domain admin. ... My problem is the domain admin profile is corrupt or something becuase it ...
    (microsoft.public.windows.server.general)
  • Re: W2k3 - Recover from lost Domain Admin passwords
    ... > microsoft.public.windows.server.security, Ulf B. Simon-Weidner ... >> your passwords are more easily compromised if you leave this whole open. ... Don't use the domain admin account, but create admin accounts which are ... Treat the service accounts like your domain admin account. ...
    (microsoft.public.windows.server.security)
  • Re: Active Directory Migration Tool /User rights
    ... > I would appeciate anyone's help on this... ... I would like to give the domain admin ... > I can do it using the Enteprise Admin account. ...
    (microsoft.public.exchange2000.active.directory.integration)