HashUP

4.3.0

This script collects Windows Autopilot hardware information locally. With -Online, it prompts for the
application identifiers when needed, then signs the technician in through the the selected Microsoft Entra app registration app registration and calls Microsoft Graph.

The script uses Connect-MgGraph as the supported Microsoft authentication library and explicitly
pa
This script collects Windows Autopilot hardware information locally. With -Online, it prompts for the
application identifiers when needed, then signs the technician in through the the selected Microsoft Entra app registration app registration and calls Microsoft Graph.

The script uses Connect-MgGraph as the supported Microsoft authentication library and explicitly
passes the ClientId and TenantId entered for the current run. It therefore does not use the shared
Microsoft Graph Command Line Tools / Microsoft Graph PowerShell enterprise application.

The Client ID and Tenant ID are intentionally not stored in this file. When -Online is used and
one or both values are omitted, the script displays a three-field dialog. The values are validated,
held only in memory for the current process, and can also be supplied as command-line parameters.

Application name:
 the selected Microsoft Entra app registration

Normal upload permission:
 DeviceManagementServiceConfig.ReadWrite.All (Delegated)

Additional permissions requested only for -AddToGroup or -AddToGroupId:
 Group.ReadWrite.All
 GroupMember.ReadWrite.All
 Device.Read.All

The script does not use a client secret or certificate and does not activate a PIM role.

Show more

Installation Options

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

Install-Script -Name HashUP -RequiredVersion 4.3.0

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

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

Based on Microsoft Get-WindowsAutopilotInfo, used under the MIT License.

Package Details

Author(s)

  • IAM (based on Microsoft's Get-WindowsAutopilotInfo)

Tags

Windows Autopilot Intune MicrosoftGraph OOBE

Functions

Test-GuidValue Get-GraphApplicationIdentifiers Initialize-GraphAuthenticationModule Connect-AutopilotGraph Get-GraphErrorInfo Invoke-CustomGraphRequest Enable-TemporaryWorkplaceJoinBlock Restore-WorkplaceJoinBlock Get-AutopilotHardwareRecord Write-AutopilotCsv Test-AutopilotGraphAccess New-AutopilotImportedDevice Wait-AutopilotImports Wait-AutopilotDeviceSynchronization Set-AutopilotComputerName Get-TargetSecurityGroup Wait-EntraDeviceObject Add-AutopilotDevicesToGroup Wait-AutopilotProfileAssignment

Dependencies

This script has no dependencies.

Release Notes

4.3.0:
- Removed the built-in AutoPilot Group Tag default.
- Online dialog now requests Tenant ID, Client ID, and Group Tag together.
- Group Tag may also be provided with -GroupTag; an empty value leaves it unset.
4.2.0:
- Client ID and Tenant ID are intentionally not stored in this file.
- When -Online is used and either ID is omitted, a two-field Windows dialog prompts for both values.
- The dialog validates both values as GUIDs and uses them only for the current PowerShell process.
- Falls back to Read-Host prompts if Windows Forms is unavailable.
- Uses Microsoft's supported Microsoft.Graph.Authentication module and connects with the entered
ClientId and TenantId, so the session uses the dedicated app rather than the shared Microsoft client.
- Uses delegated interactive authentication and does not activate or check out a PIM role.
- Group Tag has no built-in default and is entered alongside the app IDs for online runs.
- Supports browser/WAM authentication by default and device-code authentication with -UseDeviceCode.
- Loads Microsoft.Graph.Authentication from a Modules folder beside the script when available,
otherwise installs it from PowerShell Gallery.
- Performs an import-collection read preflight before uploading and prints the signed-in account,
tenant, client, authentication type, and token scopes.
- Uses DeviceManagementServiceConfig.ReadWrite.All for normal import operations and adds group
scopes only when -AddToGroup or -AddToGroupId is used.
- Preserves the BlockAADWorkplaceJoin registry safeguard and restores its prior state by default.

FileList

Version History

Version Downloads Last updated
4.4.1 24 11/30/2026
4.4.0 14 11/30/2026
4.3.0 (current version) 14 11/27/2026