Code Monkey home page Code Monkey logo

get-serviceaccountreport's Introduction

Get-ServiceAccountReport

DESCRIPTION

This function retrieved service accounts logged in a pool of computer passed as argument. It uses WMI requests. #Warning : computers need to be on while they are being searched.

import-module serviceAccountFinderModule.ps1

PARAMETER

    -dn : specify a string with the scope of the search (specify an OU or a specific computer)
    - input_csv : take as input a csv list of computer names to look up

EXAMPLE

Find service accounts running on your domain controllers :

Get-serviceAccountreport -dn 'OU=Domain Controllers,DC=domain,DC=local'

Find service accounts running on a specific set of computers joined in the domain : 1. list thoses domain computers in a CSV file (see exemple in the repo named input.csv -> the computer names must be listed) 2.

Get-serviceAccountreport -input_csv "./input.csv"'

RESULTS

A gridview will pop up with the results A CSV file is automatically registered into the local folder

Contributors

  • Clement LAVOILLOTTE
  • Benoit ESTRADE

get-serviceaccountreport's People

Contributors

estradeb avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

cvlabsio

get-serviceaccountreport's Issues

feedback #1

  1. $Path_to_FIle and $Domain are hardcoded (should be turned in parameters; multiple domain forest not taken into account)
  2. get-wmiobject deprecated

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.