SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Minimum rights for Remote Powershell access and VMI call


Minimum rights for Remote Powershell access and VMI call

Author
Message
eseosaoregie
eseosaoregie
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1468 Visits: 1229
I am currently reviewing one of our SQL jobs that collects disk drive space on all of our production and acceptance server. The main bulk of the job consists of step which calls a Powershell script that queries the WMI and logs the returned data into a database which is used to produce reports.

Our current setup has using a local admin account to access WMI on the servers but my boss has decided that this isn't good practice due to security issues. Thus I am trying to find out what minimum rights are needed to be able to carry out powershell remote calls and also querying WMI. I have been told that the current setup has to remain in place.

Any information would much appreciated
Gazareth
Gazareth
SSCertifiable
SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)

Group: General Forum Members
Points: 7596 Visits: 6045
Been doing something similar myself - you need to look at DCOM settings & WMI security, instructions are here:

DCOM: http://msdn.microsoft.com/en-us/library/aa393266.aspx

WMI: http://msdn.microsoft.com/en-us/library/aa393613.aspx

Interestingly, once I'd enabled DCOM for the relevant user, I could get the WMI data through PS despite a warning that I didn't have the necessary permissions!

Cheers
Gaz
eseosaoregie
eseosaoregie
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1468 Visits: 1229
Much appreciated for the info. Will check it out.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search