Re: WMI Security question...
- From: Joe <Joe@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 10 Dec 2008 12:58:01 -0800
The account is an admin on the box. And this is Windows 2003 Server.
Can I simulate this with WBEMTest? Would that give me more information?
I can't track down where the Access denied is being generated from. I need
to track this down.
Thanks.
"Richard Mueller [MVP]" wrote:
.
"Joe" <Joe@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5B2D64AB-6F4B-4382-A2F3-A18EFE8145FD@xxxxxxxxxxxxxxxx
I am having an issue running some code on a server. I am getting an Access
Denied error when trying to run this code.
strComputer = "."
strCommand = "Calc.exe"
Set objWMIService =
GetObject("winmgmts:{impersonationLevel=Impersonate}!\\"
& strComputer & "\root\cimv2")
' Configure the Calc process to show a window
Set objStartup = objWMIService.Get("Win32_ProcessStartup")
Set objConfig = objStartup.SpawnInstance_
objConfig.ShowWindow = 1
' Create Calc process
Set objProcess = objWMIService.Get("Win32_Process")
intReturn = objProcess.Create (strCommand, Null, objConfig, intProcessID)
If intReturn <> 0 Then
Wscript.Echo "Process could not be created." & _
vbcrlf & "Command line: " & strCommand & _
vbcrlf & "Return value: " & intReturn
Else
Wscript.Echo "Process created." & _
vbcrlf & "Command line: " & strCommand & _
vbcrlf & "Process ID: " & intProcessID
End If
What I need to do is to query what rights accounts have when trying to
start
an application like this. I'm just not clear on how to do it.
Any help would be appreciated.
In general you need to be a member of the local Administrators group on the
computer. By default the domain group "Domain Admins" is added to the local
Administrators group when the computer is joined to the domain. What OS is
installed?
--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--
- Follow-Ups:
- Re: WMI Security question...
- From: Tom Lavedas
- Re: WMI Security question...
- References:
- WMI Security question...
- From: Joe
- Re: WMI Security question...
- From: Richard Mueller [MVP]
- WMI Security question...
- Prev by Date: Re: VBscript Help
- Next by Date: Re: Outlook secure temp folder
- Previous by thread: Re: WMI Security question...
- Next by thread: Re: WMI Security question...
- Index(es):
Relevant Pages
|
Loading