Re: VB.Net WMI Windows Server 2003
From: Ger (gercullen_at_hotmail.com)
Date: 05/05/04
- Next message: Cor Ligthert: "OT"
- Previous message: Cor Ligthert: "Re: convert date to ticks?"
- In reply to: Sarika Sharma[MSFT]: "Re: VB.Net WMI Windows Server 2003"
- Next in thread: Sarika Sharma[MSFT]: "Re: VB.Net WMI Windows Server 2003"
- Reply: Sarika Sharma[MSFT]: "Re: VB.Net WMI Windows Server 2003"
- Messages sorted by: [ date ] [ thread ]
Date: 4 May 2004 23:53:01 -0700
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.
- Next message: Cor Ligthert: "OT"
- Previous message: Cor Ligthert: "Re: convert date to ticks?"
- In reply to: Sarika Sharma[MSFT]: "Re: VB.Net WMI Windows Server 2003"
- Next in thread: Sarika Sharma[MSFT]: "Re: VB.Net WMI Windows Server 2003"
- Reply: Sarika Sharma[MSFT]: "Re: VB.Net WMI Windows Server 2003"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|