MyPSFunctions

1.4

This Module has been created to provide a repository of my Daily Functions. - This module is provided as is without any support. Please be aware you are using this module as your own risks without any responsabilities from us.

Minimum PowerShell version

3.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name MyPSFunctions

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name MyPSFunctions

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2023. All rights reserved.

Package Details

Author(s)

  • John@MyPSFunctions.com

Functions

Write-Log Write-CLog Create-Folder Zip-Folder Clear-PSSession Allows-BasicWinRM Test-ServerSSLSupport Append-PrefixFileswithinFolder Clear-IECachedData Get-ServerPublicIP Get-MyPublicIP Get-IPAddressInformation ConvertFrom-ImmutableIdToGuid ConvertTo-Gb ConvertTo-MB Select-MyProfile Add-MyProfile Create-MyProfile Set-MyProfile Enable-Transcript Initiate-MyProfile Generate-MSOLServicePrincipalReport Check-MSOLUserMFAEnrolledDevices Generate-MSOLMFAEnrollmentStatusReport Export-MSOLAllLicensedUsers Get-AADUserGroupMembership Check-AADO365GroupCreationSettings Block-AADOffice365GroupCreation Validate-AADCloudOnlyAllOffice365Admins Generate-AADRegisteredDevicesReport Generate-AADServicePrincipalsReport Get-AADUserMembership Validate-AADUserMembership Get-AADGroupMember Compare-AADGroupMembershipOfTwoGroups HardMatch-AADDuplicateCloudAccount Find-AADApplication Update-ADDynamicGroupMember Update-ADUserPasswordNeverExpires Get-AADUserDirectReport Get-AADGroupMembersDetails Add-AADUserToAADGroup Add-AADUserToAADGroupCSV Remove-AADUserToAADGroup Remove-AADUserToAADGroupCSV Add-AADUsersToAADGroupFromCSV Export-AADGroupMembers Get-AADUserPasswordNeverExpires Revoke-AADToken Disable-AADAccount Report-AADLicenseM365E3Group Collect-AADLicensedUsersDetails_fromGroup Check-AADLicenseForUser Add-AADLicenseToUser Remove-AADLicenseToUser Generate-AADLicensesSKUsTable Start-AADConnectSync Check-AADConnectLastSync Check-AADUserLastSync Force-ADUserChangePasswordNextLogon Generate-ReportLastLogonADUsers Expand-ADGroupMembers Update-ADUserDynamicAttribute Manage-ADGroupMembership Get-ADGroupMemberwithManager Check-ADSchemaVersionForADandEXCH Find-ADUserwithUPN Find-ADUserwithSAM Find-ADOnlineDC Generate-ADDirectMemberofADGroup Move-ADComputer Move-ADComputersCSV Update-ADUserPrimarySMTPAddressToUPN Update-ADUserUPNToPrimarySMTPAddress Enable-RemoteMailboxACL New-ADOffice365User Request-ADDomainusingLDAP Request-ADUserusingLDAP Request-LDAPGroupMember Check-DNSPhishingSettings Write-AzureLog Generate-AzDefenderReportForAllSubscriptions Switch-AzSubscription Connect-Az Get-AzToken Create-AzArcLicense Backup-AzFirewallPolicies Generate-AzRoleAssignmentsReportForAllSubscriptions Generate-AzRoleAssignmentsReportForAllSubscriptionsOld Generate-AzNSGForAllSubscriptions Close-AzSentinelIncidentByTitle Query-MicrosoftSentinel Connect-OpenAI Ask-ChatGPT Generate-EXOSharedMailboxesSendAsPermission Create-EXOMigrationBatch Grant-EXOApplicationAccessToMailboxUsingGroup Generate-EXOUsersCustodianHoldReport Generate-EXOBasicSMTPSettingsAllMailboxes Check-EXOMailboxSMTPBasicAuthSettings Generate-EXOMailboxesRetentionReport Generate-EXORecipientReportBySMTPDomain Find-UserMailboxUsingEmailFromCSV Find-UserUsingEmailFromCSV Generate-AllAcceptedDomainsDMARCReport Get-EXODDGroupMembership Change-EXORetentionPolicy Create-EXOSharedMailboxWithSG Get-EXODynamicDGMembers Check-SharedMailboxPermission Generate-EXOMailboxesUsingAcceptedDomain Restrict-EXOUnifiedGroupbySender Get-EXOAllDGRoomList Add-EXORoomToRoomList Cleanup-EXORecipientsUsingSMTPDomain Enable-EXOMailboxForwardingusingCSVFile Update-EXOPrimarySMTPAddressForUnifiedGroup Add-EXOUsersToOneDGCSV Update-EXODGMemberwithRepsUsingCSV Add-EXOUsersToDGsusingCSV Create-EXOMailContactUsingCSV Check-EXOMessageMaxSize Add-EXOUnifiedGroupMemberusingCSV Generate-EXOUnifiedGroupsStorageReportInMB Generate-EXOUnifiedGroupsStorageReportInGB Enable-EXORetentionFeatures Enable-EXOMailboxesRetentionUsingCSV Add-EXOTrustedSenderToAllMailboxes Remove-EXOTrustedSenderToAllMailboxes Get-EXOUserAllMembership Get-EXORecipientInformationFromCSV Get-EXOMailContactGroupMembership Find-EXOAllDisconnectedMailboxes Retreive-EXOMailboxPermission Add-EXOCalendarPermission Move-EXOMailboxContent Add-EXOMembersToDistributionGroupUsingCSV Remove-EXOCalendarInvite Create-EXORestrictedSharedMailbox Convert-EXOUserMailboxToRestrictedSharedMailbox Open-EXOConferenceRoom Update-EXOCalendarProcessingSettingsForConferenceRoom Get-EXOUnifiedGroupMembers Expand-EXOGroup Expand-EXODirectADGroup Replace-EXODistributionListMembers Count-EXOForwardToRecipientOfInboxRules Create-EXOTransportRuleforBlockingIncomingMessagewithException Run-EXOMessageTraceLast2Days Run-EXOMessageTraceLast7Days Run-EXOMessageTraceLast10Days Run-EXOMessageTraceLast90Days Investigate-EXOUserInboxRules Investigate-EXOBlockedMailbox Run-EXOMailboxAuditLogSearch Duplicate-EXODistributionGroupMembers Search-EXOAdminRolebyCMDlet Add-EXOMailboxPermissionSendAs Remove-EXOMailboxPermissionSendAs Add-EXOMailboxPermissionFullAccess Remove-EXOMailboxPermissionFullAccess Add-EXOMailboxPermissionSendOnBehalf Remove-EXOMailboxPermissionSendOnBehalf Search-EXOMailEnabledPublicFolder Fix-EXOAutoMappingMailbox Fix-EXORecipientDisplayType Convert-EXOUserMailboxToSharedMailbox Fix-EXOMissingOnMicrosoft Enable-EXOMaibloxOOFMessage Get-EXORecipientStatistics Check-EXOLastMailboxAccess Add-EXOTransportRuleSubjectOrBodyContainsWords Add-EXOTransportRuleSubjectContainsWords Test-EXOSendO365Mail Test-EXOSendMail Allow-EXOQuarantineMobileDevices Allow-EXOQuarantineIphone Show-EXOQuarantineIphones Show-EXOQuarantineDevices Block-EXOMobileDevice Clear-EXOCASMobileDevicesList Check-EXOMobileDevices Check-EXOMobileDeviceByState Release-EXOMyQuarantineMessageDomain Generate-EXOSafeLinkReport Generate-EXOAllSafeLinkReport Search-EXOMessageBySubject Display-EXORecoverableItems Find-EXODeletedItems Find-EXODeletedItemsTime Recover-EXORecoverableItems Restore-EXOInactiveMailbox Restore-EXOInactiveOnlineArchiveMailbox Restore-EXOSoftDeletedMailbox Recover-EXOInactiveMailbox Add-EXOX500EmailAddress Check-EXOPhishingComplianceSearchActionToday Check-EXOPhishingComplianceSearchActionDate Check-EXOPhishingComplianceSearchToday Check-EXOPhishingComplianceSearchDate Check-EXOPhishingContentSearch New-EXOPhishingContentSearch Purge-EXOPhishingContentSearch Update-EXOPhishingTransportRule Check-EXORetentionExclusion Get-EXOBookingMailboxOwner Check-EXOBookingMailboxSettings Generate-EXOInactiveMailboxPermissionXML Replace-EXOSMTPDomain Add-EXOUserToSDG Clear-msExchRemoteRecipientType Fix-EXOArchiveMailboxGUID Fix-EXOArchiveMailboxGUIDv1 Update-EXORemoteMailboxPrimary Add-EXORemoteMailboxSecondary Update-EXOPrimaryRemoteMailboxusingCSV Add-EXOSendAsOnPremiseMailbox Convert-EXORemoteUserToSharedMailbox Enable-EXORemoteMailbox Find-MgScopesOfCMDlet Get-MgToken Generate-MgUserMicrosoft365GroupMembership Check-MgAllUsersStats Generate-MyMgBetaUserSignInActivities Generate-MyMgBetaUserReport Generate-MyMgUserReport Disable-UserMailboxForDepartureUsingCSV Get-MgRecipientUser Get-MgBetaRecipientUser Create-MgAccount Disable-MgAccount Check-MgADConnectLastSync Generate-MgLicenseReportPerSKU Generate-MgLicenseReport Generate-MgReportOauthAuditReportToExcel Generate-MgEnterpriseAppsAssignmentsConsentsSettingsReport Generate-MgEnterpriseAppsCertificatesSecretsReport Remove-MgLegacyServicePrincipal Generate-MgLegacyServicePrincipalReport Generate-MgServicePrincipalReport Check-MgO365GroupCreationSettings Block-MgO365GroupCreation Generate-MgConditionalAccessPoliciesReport Install-MyPSFunctionsModules Update-MyPSFunctionsModules Validate-ExcelModule Connect-MyMgGraph Connect-MyAAD Connect-MyEXO Connect-MyEXOLegacy Connect-MyEXOCompliance Connect-MySharepointOnline Connect-MySharepointOnlineAll Connect-MyTeamsOnline Connect-MyPowerPlatform Connect-MyExchangeOnPremise Convert-ImmutableIDToGuid Convert-ObjectGUIDToImmutableID Get-ResponseFailureInfo Invoke-YammerRestRequest Get-YammerUser Get-YammerImpersonatedUser New-YammerGroup Get-YammerGroup Get-YammerGroupMembership Add-YammerGroupMember Remove-YammerGroupMember Get-YammerGroupAdmin Get-YammerGroupAdminAll Add-YammerGroupAdmin Remove-YammerGroupAdmin Remove-YammerGroup Remove-YammerGroupsUsingCSV Backup-YammerAllGroups Add-YammerUsersToGroupUsingCSV Generate-YammerGroupReport Import-MCAS_IPAddress_fromCSV Connect-Planner Set-PlannerConfiguration Get-PlannerConfiguration Generate-OnedriveUsageReport Add-SharepointCollaborationSiteAdminPermission Add-SharepointCollaborationSiteAdminPermissionToGroup Add-SharepointCollectionSiteURLAdminusingCSV Add-SharepointCollectionSiteAdminusingCSV Get-PnPOffice365GroupOwners Get-UnifiedLogs_SharepointSite_30Days Reset-OnedriveQuotaToDefault Generate-OneDriveStorageUsageReport Update-OnedriveQuota Update-OnedriveAnonymousLinkExpiration Search-DeletedOnedriveInfo Find-OneDriveUserURL Find-PnPOnedriveUserURL Assign-SingleTeamsAppPermissionPolicyUsingCSVFile Enable-Office365GroupForTeams Migrate-SkypeToTeamsMigrationBatch Check-SkypeToTeamsMigrationBatchStatus Clear-TeamsCacheFolder Get-Detailed_CSOnlineUsers_Report

Dependencies

This module has no dependencies.

FileList

Version History

Version Downloads Last updated
1.4 (current version) 36 10/8/2024
1.2 13 8/21/2024
1.1 15 7/22/2024