HashUP

4.4.0

This script collects Windows Autopilot hardware information locally. With -Online, it signs in
for tenant discovery, then signs in with the dedicated HashUP application and calls Microsoft Graph.

The first sign-in uses the shared Microsoft Graph PowerShell application for discovery only.
The second sign-in uses the dedicated HashUP Client ID for all Intune operations
This script collects Windows Autopilot hardware information locally. With -Online, it signs in
for tenant discovery, then signs in with the dedicated HashUP application and calls Microsoft Graph.

The first sign-in uses the shared Microsoft Graph PowerShell application for discovery only.
The second sign-in uses the dedicated HashUP Client ID for all Intune operations.

The HashUP Client ID is embedded. The Tenant ID is obtained from an initial delegated sign-in
using the Microsoft Graph PowerShell client. A second sign-in uses the HashUP application.
Only the optional Group Tag is requested from the operator.

Application name:
 HashUP single-tenant 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.4.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-AutopilotGroupTag Get-AuthenticatedTenantId 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.4.0:
- Two sign-ins: Graph PowerShell tenant discovery, then dedicated single-tenant HashUP app.
- Client ID embedded; Tenant ID discovered from first delegated session.
- Only Group Tag is prompted; no tenant confirmation.
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 (current version) 14 11/30/2026
4.3.0 14 11/27/2026