Giter VIP home page Giter VIP logo

powershell-sysadmin's Introduction

Oh, Hello 👋

  • 🔭 I’m currently working on building APIs to help me keep track of everything.
  • 🌱 I’m currently learning Flask.
  • 👯 I’m looking to collaborate on anything!
  • 💬 Ask me about PowerShell - I've written tools for everything under then sun.
  • ⚡ Fun fact: Wish I had a fun fact.

powershell-sysadmin's People

Contributors

devynspencer avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

powershell-sysadmin's Issues

Add function to validate names of file share access groups

# Determine groups created in error
Get-ADGroup -Filter { Name -like "FS - Transfer*" } -Properties Created, Modified, Description, Members | select @{n="CorrectName";e={$_.Name -like "FS - Transfer * & *"}}, Name, SamAccountName, @{n="MemberCount";e={$_.Members.Count}}, Description | ? { !$_.CorrectName } | ft

# Remove the groups
Get-ADGroup -Filter { Name -like "FS - Transfer*" } -Properties Created, Modified, Description, Members | select @{n="CorrectName";e={$_.Name -like "FS - Transfer * & *"}}, Name, SamAccountName, @{n="MemberCount";e={$_.Members.Count}}, Description | ? { !$_.CorrectName } | % { Remove-ADGroup $_.SamAccountName -Confirm:$false }

# Verify remaining groups
Get-ADGroup -Filter { Name -like "FS - Transfer*" } -Properties Created, Modified, Description, Members | select @{n="CorrectName";e={$_.Name -like "FS - Transfer * & *"}}, Name, SamAccountName, @{n="MemberCount";e={$_.Members.Count}}, Description | ft

Compare active directory accounts against a schema

  • Name format (either title case for both or LASTNAME FirstName
  • Display name
  • Description - not null and contains specific criteria
  • Title - either formatted a specific way or matching a value from a set list of job titles
  • Manager - not null
  • Office - matches a site from site list
  • DistinguishedName - ou is correct based on site or account type
  • SamAccountName - lowercase

Add function to Enable/Disable/Search netlogon debug logs for user logons

Example logs from the post look like:

03/29 09:52:57 [LOGON] [5076] MYDOMAIN: SamLogon: Transitive Network logon of (null)\VMWARE from  (via MYADMINPC) Entered
03/29 09:52:57 [LOGON] [5076] MYDOMAIN: SamLogon: Transitive Network logon of (null)\VMWARE from  (via MYADMINPC) Returns 0xC0000064
03/29 09:52:57 [LOGON] [5076] MYDOMAIN: SamLogon: Transitive Network logon of (null)\PRAXIS from  (via MYADMINPC) Entered
03/29 09:52:57 [LOGON] [5076] MYDOMAIN: SamLogon: Transitive Network logon of (null)\PRAXIS from  (via MYADMINPC) Returns 0xC0000064
03/29 09:53:01 [LOGON] [5076] MYDOMAIN: SamLogon: Transitive Network logon of (null)\NAS from  (via MYADMINPC) Entered
03/29 09:53:01 [LOGON] [5076] MYDOMAIN: SamLogon: Transitive Network logon of (null)\NAS from  (via MYADMINPC) Returns 0xC0000064
03/29 09:53:01 [LOGON] [2136] MYDOMAIN: SamLogon: Transitive Network logon of (null)\VEEAMSERVER from  (via MYADMINPC) Entered
03/29 09:53:01 [LOGON] [2136] MYDOMAIN: SamLogon: Transitive Network logon of (null)\VEEAMSERVER from  (via MYADMINPC) Returns 0xC0000064
03/29 09:53:10 [LOGON] [4796] MYDOMAIN: SamLogon: Transitive Network logon of (null)\LENOVO from  (via MYADMINPC) Entered

These could potentially identify a lockout source when the 4740 event is missing a caller computer name.

https://community.spiceworks.com/topic/2201424-ad-event-4740-without-calling-computername

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.