Error when querying -class MSReportServer_ConfigurationSetting


i'm not sure if right place ask question said i'll give try :)

when run following query on powershell:

get-wmiobject -class msreportserver_configurationsetting -namespace $rs_namespace   -computername vm-srv-04 -credential thedomain\sqlsrvinventoryusr

following error:

get-wmiobject :
at line:1 char:14
+ get-wmiobject <<<<  -class msreportserver_configurationsetting -namespace $rs_namespace   -computername vm-srv-04 -credential the\sqlsrvinventoryusr
    + categoryinfo          : invalidoperation: (:) [get-wmiobject], comexception
    + fullyqualifiederrorid : getwmicomexception,microsoft.powershell.commands.getwmiobjectcommand

if run same query administrator user credentials works fine , desired result.

note following rights gave domain users on reportserver service:

sc sdset reportserver d:(a;;cclcswrpwpdtlocrrc;;;sy)(a;;ccdclcswrpwpdtlocrsdrcwdwo;;;ba)(a;;cclcswlocrrc;;;iu)(a;;cclcswlocrrc;;;su)(a;;ccdclcswrpwpdtlocrsdrcwdwo;;;so)(a;;ccdclcswrpwpdtlocrsdrcwdwo;;;du)(a;;cclcrprc;;;au)s:au;fa;ccdclcswrpwpdtlocrsdrcwdwo;;;wd)(au;;ccdclcswrpwpdtlocrsdrcwdwo;;;du)

think domain users should have full rights on reportserver service .. i'm new this; i'm not sure if it's correct

please :)


wmi requires admin privileges.


¯\_(ツ)_/¯



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Domain migration ERR3:7075 Failed to change domain affiliation, hr=8007054a This operation is only allowed for the Primary Domain Controller of the domain

2008 Windows Deployment Server Properties Error

How do a find data in one file, search for it in another file and if not found, write a custom message to another file