You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
Tests if users' accounts are enabled in their Microsoft 365 profiles.
4
+
5
+
.DESCRIPTION
6
+
The Test-365ACAccountEnabled function checks each user retrieved from Microsoft 365 to determine if their account is enabled. It processes a list of users, determining the enabled status of each user's account. The results can be exported to an Excel file, an HTML file, or output directly.
7
+
8
+
.PARAMETERUsers
9
+
An array of users to be tested. This can be piped in or specified directly. Each user should have DisplayName and AccountEnabled properties.
10
+
11
+
.PARAMETEROutputExcelFilePath
12
+
The file path where the Excel report will be saved. The file must have an .xlsx extension.
13
+
14
+
.PARAMETERHtmlFilePath
15
+
The file path where the HTML report will be saved. The file must have an .html extension.
16
+
17
+
.PARAMETERTestedProperty
18
+
The property being tested. This is set to 'Is Account Enabled' by default.
This example retrieves all users with their DisplayName and AccountEnabled status, then tests each user to see if their account is enabled. The results are exported to an Excel file.
This example pipes a list of users directly into Test-365ACAccountEnabled, which then checks if each user's account is enabled. The results are exported to an HTML file.
30
+
31
+
.NOTES
32
+
This function requires the Microsoft Graph PowerShell SDK to retrieve user information from Microsoft 365.
Tests if users are hidden from the Address Book in their Microsoft 365 profiles.
4
+
5
+
.DESCRIPTION
6
+
The Test-365ACAddressBook function checks each user retrieved from Microsoft 365 to determine if they are hidden from the Address Book. It processes a list of users, checking the 'HiddenFromAddressListsEnabled' property. The results can be exported to an Excel file, an HTML file, or output directly.
7
+
8
+
.PARAMETERUsers
9
+
An array of users to be tested. This can be piped in or specified directly. Each user should have DisplayName and HiddenFromAddressListsEnabled properties.
10
+
11
+
.PARAMETEROutputExcelFilePath
12
+
The file path where the Excel report will be saved. The file must have an .xlsx extension.
13
+
14
+
.PARAMETERHtmlFilePath
15
+
The file path where the HTML report will be saved. The file must have an .html extension.
16
+
17
+
.PARAMETERTestedProperty
18
+
The property being tested. This is set to 'HiddenFromAddressBook' by default.
This example retrieves all users with their DisplayName and HiddenFromAddressListsEnabled properties, then tests each user to see if they are hidden from the Address Book. The results are exported to an Excel file.
This example pipes a list of users directly into Test-365ACAddressBook, which then checks if each user is hidden from the Address Book. The results are exported to an HTML file.
28
+
29
+
.NOTES
30
+
This function requires the Microsoft Graph PowerShell SDK to retrieve user information from Microsoft 365.
Tests if users have a city property and generates test results.
4
+
5
+
.DESCRIPTION
6
+
The Test-365ACCity function tests if users have a city property and generates test results. It takes an array of users as input and checks if each user has a city property. The test results are stored in an array of custom objects, which include the user's display name and the result of the test.
7
+
8
+
.PARAMETERUsers
9
+
Specifies the array of users to test. Each user should have a DisplayName and City property.
10
+
11
+
.PARAMETEROutputExcelFilePath
12
+
Specifies the path to the output Excel file. If provided, the test results will be exported to an Excel file.
13
+
14
+
.PARAMETERHtmlFilePath
15
+
Specifies the path to the output HTML file. If provided, the test results will be exported to an HTML file.
16
+
17
+
.PARAMETERTestedProperty
18
+
Specifies the name of the tested property. Default value is 'Has City'.
19
+
20
+
.INPUTS
21
+
An array of users with DisplayName and City properties.
22
+
23
+
.OUTPUTS
24
+
If OutputExcelFilePath or HtmlFilePath is not provided, the function outputs an array of custom objects with the user's display name and the result of the test.
25
+
26
+
.EXAMPLE
27
+
$users = Get-MgUser -All -Property DisplayName, City | Select-Object DisplayName, City
Tests whether users in Microsoft 365 have a country assigned and optionally validates against a list of valid countries.
4
+
.DESCRIPTION
5
+
The Test-365ACCountry function checks if users in Microsoft 365 have a country assigned to their profile. It can also validate these countries against a provided list of valid countries. The results of this test can be exported to an Excel file, an HTML file, or displayed in the console.
6
+
.PARAMETERUsers
7
+
Specifies the users to be tested. If not specified, the function will test all users in the organization by retrieving their DisplayName and Country properties.
8
+
.PARAMETERValidationExcelFilePath
9
+
Specifies the path to an Excel file containing a list of valid countries. If specified, the function will validate the countries of the users against this list.
10
+
.PARAMETEROutputExcelFilePath
11
+
Specifies the path to save the test results as an Excel file. If not specified, the test results will be displayed in the console. The path must end with '.xlsx'.
12
+
.PARAMETERHtmlFilePath
13
+
Specifies the path to save the test results as an HTML file. If not specified, the test results will be displayed in the console. The path must end with '.html'.
14
+
.PARAMETERTestedProperty
15
+
Specifies the name of the tested property. This will be used as the column name in the test results. Defaults to 'Has Country' but changes to 'Has Valid Country' if a validation list is provided.
Tests all users in the organization, validates their countries against the list of valid countries in "Validation.xlsx", and saves the test results to "Results.xlsx".
0 commit comments