Public-Scripts
                                
                                 Public-Scripts copied to clipboard
                                
                                    Public-Scripts copied to clipboard
                            
                            
                            
                        Various Scripts and Tools for Microsoft Technologies Professionals
Author: Mike Crowley
Public-Scripts Repository
  
Microsoft retired the TechNet Gallery, so I've re-uploaded a few scripts that were formally posted here: https://social.msdn.microsoft.com/Profile/mike%20crowley
- 
Get-AlternateMailboxes.ps1 - Query Exchange Online AutoDiscover to enumerate mailbox delegates with modern auth.
 
- 
Get-AlternateMailboxes_BasicAuth.ps1 - Query Exchange Online AutoDiscover to enumerate mailbox delegates. The old basic auth version.
 
- 
Graph_SignInActivity_Report.ps1 - Report on user SignInActivity and license detail via Invoke-RestMethod from Microsoft Graph.
 
- 
LowerCaseUPNs.ps1 - Change Exchange user's email addresses to lowercase.
 
- 
MailUser-MgUser-Activity-Report.ps1 - Get Export login information for mail users via Microsoft Graph.
 
- 
MgUserMail.ps1 - Send email via Microsoft Graph.
 
- 
RDPConnectionParser.ps1 - Extract interactive (local and remote desktop) login information and save to CSV.
 
- 
RecipientReportv5.ps1 - Dump all recipients and their email addresses (proxy addresses) to CSV.
 
- 
Request-AdfsCerts.ps1 - Remotley query ADFS to see information about the certificates it is using.
 
- 
Restore-FromRecycleBin.ps1 - Restore files from SPO in bulk.
 
Gists
  
There are also a few things over here: https://gist.github.com/Mike-Crowley
- 
- Enter an IP address and this will lookup the AD site to which it belongs.
 
- 
- Query AutoDiscover v2 / and the AutoDetect service (two files).
 
- 
- Query the domains in a tenant from the Exchange AutoDiscover service.
 
- 
- Determine if an AD user's password is valid.
 
- 
- Replace a given letter with the superscript letter.
 
- 
- Query the Shodan database for an IP address with or without an API key
 
- 
- Generate words for the wordscapes game so I can answer faster than my mom.
 
Be sure to read the comments in the scripts themselves for more detail!
Visit https://mikecrowley.us/tag/powershell for additional functions and scripts.
