Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Minimum rights for Remote Powershell access and VMI call Expand / Collapse
Author
Message
Posted Wednesday, November 28, 2012 2:13 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: 2 days ago @ 7:42 AM
Points: 285, Visits: 1,071
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
Post #1389577
Posted Wednesday, November 28, 2012 8:47 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 3:15 PM
Points: 2,009, Visits: 3,440
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
Post #1389860
Posted Wednesday, November 28, 2012 5:51 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: 2 days ago @ 7:42 AM
Points: 285, Visits: 1,071
Much appreciated for the info. Will check it out.
Post #1390218
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse