Get all Active Directory Users & Groups Created Recently

Поделиться
HTML-код
  • Опубликовано: 20 авг 2024
  • In This Video you will learn how to generate report for recently created Users and Groups on Active Directory.
    Here we have used Get-ADUser and Get-ADGroup command to generate report with the help of some variables. Please user this script and let me know if you have any query.
    =========Users=========
    $Days = read-host "Enter Number of Past days count : "
    $When = ((Get-Date).AddDays(-$Days)).Date
    Get-ADUser -Filter {whenCreated -ge $When} -Properties * | Select Name, ObjectClass, WhenCreated | Export-Csv C:\Scripts\RecentUsers.csv
    =======================
    =========Groups========
    $Days = read-host "Enter Number of Past days count : "
    $When = ((Get-Date).AddDays(-$Days)).Date
    Get-ADGroup -Filter {whenChanged -ge $When} -Properties * | Select Name, ObjectClass, GroupCategory, createTimeStamp | Export-Csv C:\Scripts\RecentGroups.csv
    =======================
    PowerCLI Automate multiple Virtual Machines Creation in vCenter using CSV file
    • PowerCLI Automate mult...
    PowerShell Remotely Uninstall Google Chrome on Multiple Remote Computers
    • PowerShell Remotely Un...
    PowerShell Uninstall WinRAR Software Silently on Multiple Remote Computers
    • PowerShell Uninstall W...
    Find the Current User Logged on Remote Computer and Take Action
    • Find the Current User ...
    Remove User Account or Group from Local Groups on Remote Computers
    • Remove User Account or...
    Automate The Creation of Virtual Machines in VMWare
    • Automate The Creation ...
    PowerCLI Exclude List of VM's From Script Deleting Snapshots in VMware
    • PowerCLI Exclude List ...
    PowerCLI Power On a Suspended VMware Virtual Machine
    • PowerCLI Power On a Su...
    PowerShell Installing software remotely on Multiple Computers
    • PowerShell Installing ...
    PowerShell Send Email if Windows Service is in Stopped State
    • PowerShell Send Email ...
    PowerShell Send email if windows service is not running
    • PowerShell Send email ...
    Get Local Group Members From Remote computers
    • Get Local Group Member...
    Powershell Script To Change Service Account or Update Password
    • Powershell Script To C...
    Powershell How To Change Remote Computer (Workgroup) Local Account Password
    • Powershell How To Chan...
    Delete Virtual Machine Snapshots Older Than Specific Days
    • Delete Multiple Virtua...
    How To Create File Selection Dialog Box in PowerShell
    • How To Create File Sel...
    Add User/Group To The Local Administrators/RDP Group On Multiple Computers
    • Add User/Group To The ...
    Get Windows Updates list from Remote Computer
    • Get Windows Updates li...
    PowerShell Remotely Uninstall Software from Multiple Computers
    • PowerShell Remotely Un...
    PowerShell Search Specific KB Status on Remote Computers
    • PowerShell Search Inst...
    PowerShell Script to Connect Multiple Server's Remote Session
    • PowerShell Script to C...
    PowerCLI Script to power ON dedicated VMs listed in a text file
    • PowerCLI Script to pow...
    PowerCLI Script to power Off dedicated VMs listed in a text file
    • PowerCLI Script to pow...
    Delete Snapshot's from Multiple Virtual Machines
    • Delete Snapshot's from...
    Create Snapshot on Multiple Virtual Machine
    • Create Snapshot on Mul...
    How can I check if a port is open remotely
    • Identify if Windows TC...
    Installing software remotely on Multiple "Workgroup" Computers
    • Installing software re...
    PowerShell Installing software remotely on Multiple Computers
    • PowerShell Installing ...
    Unable to move OU in Active Directory (Access is denied)
    • Unable to move OU in A...
    PowerShell Installing software remotely on Multiple Computers
    • PowerShell Installing ...
    Get Multiple Services Status Remotely | Remotely Start or Stop Services
    • Get Multiple Services ...

Комментарии • 8

  • @frempongadarkwa2232
    @frempongadarkwa2232 Год назад +1

    Nice

  • @teachkhmerbinary
    @teachkhmerbinary Год назад +1

    i like it thanks.

  • @amol2060
    @amol2060 Год назад

    Pls make script on capture snip of pim resource audit and export in csv file and then send email to alias

  • @pavaniperka1130
    @pavaniperka1130 Год назад +1

    How to get all Active Directory users details and roles

    • @SwapnilInfotech
      @SwapnilInfotech  Год назад

      What do you mean by role, any specific details you are trying to fetch ??

    • @pavaniperka1130
      @pavaniperka1130 Год назад

      @@SwapnilInfotech yes, like users have the different roles , I want to display the user roles and ad group name also

    • @SwapnilInfotech
      @SwapnilInfotech  Год назад

      ​@@pavaniperka1130do you want to generate reports for all users and the group's details that they have access to ? I still don't get the role that means what exactly you want ? Can you elaborate Roles so I check the possibility of the script.

    • @pavaniperka1130
      @pavaniperka1130 Год назад

      @@SwapnilInfotech yes I want to generate reports for all users and the group detail also , if an organisation can have different users like admin , super admin for each role has a different Ad group , I want display roles with belongs to AD