Retrieves user licenses and roles for administrative accounts from Microsoft 365 via the Graph API.
The Get-AdminRoleUserLicense function connects to Microsoft Graph and retrieves all users who are assigned administrative roles along with their user details and licenses. This function is useful for auditing and compliance checks to ensure that administrators have appropriate licenses and role assignments.
Get-AdminRoleUserLicense [-SkipGraphConnection] [<CommonParameters>]
Name | Alias | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
A switch parameter that, when set, skips the connection to Microsoft Graph if already established. This is useful for batch processing or when used within scripts where multiple calls are made and the connection is managed externally. | false | false | False |
The input type is the type of the objects that you can pipe to the cmdlet.
The output type is the type of the objects that the cmdlet emits.
Get-AdminRoleUserLicense
Get-AdminRoleUserLicense -SkipGraphConnection
Name | Alias | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
cf | false | false | |||
None | false | false | |||
None | false | false | |||
None | true | false | |||
None | true | false | |||
None | true | false | |||
None | true | false | |||
None | true | false | |||
None | true | false | |||
None | false | false | |||
None | true | false | |||
None | true | false | |||
None | true | false | |||
wi | false | false |
Synchronizes data between an Excel file and a CSV file and optionally updates the Excel worksheet.
The Sync-CISExcelAndCsvData function merges data from a specified Excel file and a CSV file based on a common key. It can also update the Excel worksheet with the merged data. This function is particularly useful for updating Excel records with additional data from a CSV file while preserving the original formatting and structure of the Excel worksheet.
Sync-CISExcelAndCsvData [-ExcelPath] <String> [-WorksheetName] <String> [-CsvPath] <String> [-SkipUpdate] [<CommonParameters>]
Name | Alias | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
The path to the Excel file that contains the original data. This parameter is mandatory. | true | false | |||
The name of the worksheet within the Excel file that contains the data to be synchronized. This parameter is mandatory. | true | false | |||
The path to the CSV file containing data to be merged with the Excel data. This parameter is mandatory. | true | false | |||
If specified, the function will return the merged data object without updating the Excel worksheet. This is useful for previewing the merged data. | false | false | False |
The input type is the type of the objects that you can pipe to the cmdlet.
The output type is the type of the objects that the cmdlet emits.
Sync-CISExcelAndCsvData -ExcelPath "path\to\excel.xlsx" -WorksheetName "DataSheet" -CsvPath "path\to\data.csv"
$mergedData = Sync-CISExcelAndCsvData -ExcelPath "path\to\excel.xlsx" -WorksheetName "DataSheet" -CsvPath "path\to\data.csv" -SkipUpdate