Re: HOW TO Assign wmi rights to non-administrators!



Thanks for the reply, it was helpfull but i still have another problem!

I can run this query :
System.Management.ObjectQuery oQuery = new
System.Management.ObjectQuery("SELECT Caption, DeviceID FROM
Win32_DiskDrive");
as simple user, but not the following:

"ASSOCIATORS OF {Win32_DiskDrive.DeviceID=\"\\\\\\\\.\\\\PHYSICALDRIVE0\"}
WHERE AssocClass = Win32_DiskDriveToDiskPartition" .
This query runs only with the administrator account, else it returns null.

Thanks
"Scott McNairy (MVP)" wrote:

> The action should work locally as a regular user account.
>
> If you are doing this on a remote computer, you need to:
> 1. Right click "My Computer"
> 2. Click "Manage"
> 3. expand "Services and Applications"
> 4. Right click "WMI Control"
> 5. Select "Properties" and assign user right "Enable Account" and "Remote
> Enable" to the user account you wish.
>
> --
> Scott McNairy
> Microsoft MVP - Windows Server Management Infrastructure
>
>
> "Mantzas" <mantzas@xxxxxxxxxxxxxxxx> wrote in message
> news:E56DF236-9160-46AF-BF6C-CB2C7FB9BB92@xxxxxxxxxxxxxxxx
> > Hi there,
> >
> > i am using
> > ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT *
> > FROM Win32_DiskDrive");
> >
> > to retrieve information from my disk drive.
> > Unfortunatelly, my application runs only for accounts in the
> > administrators
> > group.
> > Any idea of how to perform this as a simple user????
> >
> > Thanks
>
>
>
.



Relevant Pages

  • Re: how to setup login and account creation?
    ... You cannot use the popup to query anything. ... You can use ASP to manage permissions and to call system libraries to ... > if i can creat user account or groups, the way is been created right on ... > windows server, through browser.. ...
    (microsoft.public.inetserver.iis)
  • Re: Quick Launch problem
    ... You might try a new user account. ... Dave Patrick ....Please no email replies - reply in newsgroup. ... Microsoft MVP [Windows] ...
    (microsoft.public.win2000.general)
  • Re: LDAP
    ... special account at all as you don't have to query anything. ... > setup the connection between my AIX server and AD. ... I know I need to setup a user account to ...
    (microsoft.public.windows.server.active_directory)
  • RE: Connect to a Secure Win2K LDAP server from Windows 2003
    ... This is probably because by default the normal user account does not have ... and Read all properties and Read all permissions for group and user ... Secure LDAP itself is I ... > connect to and query the information on the secure LDAP. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Polling last logged on User Property in AD
    ... to poll the 'last logged on' property of a user account in AD? ... The script repository seems have everything except for this. ... You probably should query for lastLogonTimeStamp. ...
    (microsoft.public.windows.server.scripting)