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
Post a Comment