Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autopilotnuke.ps1 #23

Open
ps3firebird opened this issue Dec 11, 2024 · 1 comment
Open

autopilotnuke.ps1 #23

ps3firebird opened this issue Dec 11, 2024 · 1 comment

Comments

@ps3firebird
Copy link

i am using app-based auth, it picks up using lines 304
if ($AppId -ne "") {
Connect-ToGraph -Tenant $TenantId -AppId $AppId -AppSecret $AppSecret
Write-Host "Connected to Intune tenant $TenantId using app-based authentication (Azure AD authentication not supported)"

says it loads the list of devices then once the script hits line 325
##$autopilotDevices = Get-AutopilotDevice | Get-MSGraphAllPages
$autopilotDevices = Get-AutopilotDevice

it prompts for MS creds > if i am using app-based why is it doing this?

i do have the connected to intune tenent XXXXXXXXXX message then
loading all objects

@andrew-s-taylor
Copy link
Owner

Hi,
That line is using a different module which will trigger its own connection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants