Re: Remote WMI scripting problems
- From: "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 22 Aug 2007 11:42:37 -0500
I suspect a privilege issue. I know this is common when backing up SQL
Server databases, where the actual backup process uses the server computer
credentials. I don't know how BackupEventLog works, but either you, the
client, or the remote computer needs backup privileges. I don't know if this
link helps:
http://msdn2.microsoft.com/en-us/library/aa390430.aspx
The privilege is called wbemPrivilegeBackup. I can't find better
documentation.
--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--
"J Ford" <JFord@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6C8DD400-5194-4526-BAA2-8BD5EA60221E@xxxxxxxxxxxxxxxx
It appears that the ".BackupEventLog" method doesn't like UNC or Network
shares, almost as if it exec's it with SYSTEM credentials.
"Richard Mueller [MVP]" wrote:
There are many things that can go wrong with WMI. Check the
troubleshooting
links I posted earlier.
--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--
"lyott" <lyott@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AFCE800C-11E3-403B-9768-7B73C1FECEBF@xxxxxxxxxxxxxxxx
Thank you for the help so far!
I tried adding in:
Set objWMIService = GetObject("winmgmts:" _ &
"{impersonationLevel=impersonate,authenticationLevel=Pkt,(Backup)}!\\"
& _
strComputer & "\root\cimv2")
For some reason it still failed to retrieve the event logs from remote
computers. Are there any other possible problems that could be causing
this?
I'll try having another system administrator run it, in case they have
priviledges I'm not aware of, but is there any other potential cause to
this
error?
"Richard Mueller [MVP]" wrote:
Some time ago I researched how to connect to remote computers with WMI
and
found the following:
1. You cannot connect to computers running XP Home.
2. An NT computer cannot connect to OS later than W2k.
3. A W2k3 computer cannot connect to Win9x.
4. To connect to W2k Server SP4 you must set impersonation level to
Impersonate.
5. W2k computers must have SP2 to connect to XP or above.
6. W2k3 can only connect to Win9x and NT if credentials supplied.
7. To connect to XP or W2k3 you must set authentication level to Pkt.
I determined this before Vista came out, so I need to add to the list.
--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--
.
- References:
- Re: Remote WMI scripting problems
- From: Richard Mueller [MVP]
- Re: Remote WMI scripting problems
- From: Richard Mueller [MVP]
- Re: Remote WMI scripting problems
- From: Richard Mueller [MVP]
- Re: Remote WMI scripting problems
- Prev by Date: Re: Ad connection to HR Database
- Next by Date: RE: Ad connection to HR Database
- Previous by thread: Re: Remote WMI scripting problems
- Next by thread: Re: Remote WMI scripting problems
- Index(es):
Relevant Pages
|