01.Assign-Licenses-To-UserAccounts-O365
02.Manage-Permissions-RecipientsMailbox-EXO
03.Create-ADUsers
04.Create-ADGroups
05.Get-Inactive-ADCompUsers-LastLogon
06.Get-Move-ADComputers
07.Get-DNS-Records-Duplicate-IPs
08.Create-Recursive-Directories
09.Get-ADUsers-LastLogon
10.Change-Attributes-ADUsers
11.Manage-LocalUsers-Accounts
12.Migrate-UserProfile
13.Encode-Password-Batchfile
14.Get-ADGroups-Inherited
15.Get-Services-RemoteHost
16.Manage-ADResourcesShared
17.Join-ComputerToDomain
18.CopyUsers-ADGroup-SourceToDestination
19.ReverseSID-ADUser
20.Full-Export-ADObjects-MultipleDomains
21.Move-ItemExtension-RecursivePath
22.WindowsDefender-Status
23.AdminLocal-Config
24.Remote-Code-Execution
25.Get-Properties-By-Email
26.Get-ADUsers-LastWhenCreated
27.Get-MicrosoftUpdatesInstalled
28.Get-IP-HostName-AD-DNS
29.Add-UserTemporary-GroupMembership
30.Get-All-DCs-FSMO-Roles-Domain
31.TS-Loss-TrustRelationship-Reset-DomainComputer
32.Migrate-ADUsers-To-NewDomain
33.Gathering-Info-MSOnline-ExchangeOnline
34.Get-ADComputersInactive
- Get or Assign licenses to user accounts with Office 365 PowerShell script from csv file to import.
- Manage permissions for recipients in Exchange Online. Add multiple users to a shared mailbox.
- Create new users in Active Directory with PowerShell script from csv file to import.
- Create new groups in Active Directory with PowerShell script from csv file to import.
- Get-Inactive-ADCompUsers.ps1: Get objects users and computers inactive in Active Directory with PowerShell script and export to a csv file.
- Get-Inactivity-ADUsersLastLogon.ps1: Get the last login of Active Directory users (set the $DaysInactive variable). Search only for enabled AD users and export the output to a csv file.
- Get or move computers objects in Active Directory with PowerShell script from csv file to import.
- Get hostname (DNS Records) of active computers in Active Directory and associated duplicate IPs.
- Create batch directories from a csv file recursively in local or shared directories.
- Get the last login of all Active Directory users by traversing this query on all available domain controllers, thus ensuring the effectiveness of the LastLogon TimeStamp. Export the output to a .csv file for work later date filtering.
- Modify Active Directory User Account Attributes, loading a list of users from a CSV file.
- Sample functions for managing Windows local user accounts. Example files of password encryption, to avoid parameterize a password in plain text in a PowerShell script. (function to check script execution privileges "CheckPrivileges").
- Migrate/Copy the most relevant directories from a local or domain user profile to a new computer using ROBOCOPY tool.
- Encode Password in batch file (.bat). A possible way to encode passwords in a batch file and not display in plain text passwords.
- Get up to 3 levels of nested inheritances in Active Directory groups. (String 1.2.840.113556.1.4.1941 -> LDAP_MATCHING_RULE_IN_CHAIN: Get inherited memebership groups).
- Get report of all local services and users of remote server computers.
- Management of common shared resources, assignment of resource permissions to AD users. (Makes use of the NTFSSecurity module).
- Set computer name and join computer to AD domain.
- Copy all users from a source group to a target group in Active Directory.
- Get AD SamAccountName given your SID.
- FullExport-ADObjects.ps1: Get all objects from all available Active Directory domains and export them in a CSV format (users, groups and computers).
- FullExport-ADObjects-Output-Excel: This script is the same as the main FullExport-ADObjects.ps1 script. With the difference that it adds three new optional functions designed for corporate environments and a more visual and customized in format .XLSX final presentation using the MS Excel module.
- Get-AddFQDN-ADComputers.ps1: Concatenate attributes Name, Domain and DistinguishedName to establish a FQDN (DNSHostName) for computers objects (non-Windows), add a new column to an existing CSV file and then export it all in a single CSV file.
- Recursively move files of a given extension from subdirectories to a target root directory.
- Check the status of the Windows Defender service and components and disable it for security testing to prevent threat detection.
- Disable the default local administrator and create a new user that is part of the local administrators group.
- Remote Code Execution Options. Execute commands remotely on a Domain Controller using: WMI, WinRM, PowerShell (WMI), PowerShell Remoting.
- Get a AD user properties information from the domain email. And get from an array of emails.
- Get the AD users created in the last 30 days and sorted by creation date. We can filter by name with findstr for a more specific result.
- Get the all AD users sorted by creation date of a specific OU.
- With this script get a list of all Microsoft Updates. Shows all Microsoft Updates, not just Windows Updates like Get-HotFix.
- Get-IP-HostName-AD.ps1: Do it with the Get-ADComputer cmdlet to get the IP address from the Active Directory computer object attributes. Use the ActiveDirectory module.
- Get-IP-HostName-DNS.ps1: Do this with the Get-DnsServerResourceRecord cmdlet to get the IP address via the type A record associated with the DNS hostname domain. Use the DnsServer module.
- Add-UserTempGroupMembership: This feature is called Temporary Group Membership (Time Based). This feature can be used when you need to temporarily grant a user some authority based on AD security group membership. After the specified time has elapsed, the user will be automatically removed from the security group (without administrator intervention).
- Get FSMO roles from the Active Directory domain (Flexible Single Master Operation).
- Get all Domain Controllers the domain.
- Troubleshooting - Trust relationship between this workstation and the primary domain failed.
- Migrate a list of users from an old domain to a new domain Active Directory.
- Collection of use cases, mainly for gathering information using the MSOnline modules of Office 365 and ExchangeOnlineManagement of Exchange Online.
- A fast and easy way to detect inactive Active Directory computers based mainly on two properties: lastlogondate, PasswordLastSet.