Coder Social home page Coder Social logo

Comments (3)

andrew-s-taylor avatar andrew-s-taylor commented on August 12, 2024 1

V1.0.1 of community version now looks for the device, if it exists, just updates the group tag

from windowsautopilotinfo.

thiagobeier avatar thiagobeier commented on August 12, 2024

I've tested
it stops waiting for the Set-AutopilotDevice -id

VERBOSE: Importing function 'Update-MgUserScopedRoleMemberOf'.
Connected to Intune tenant NNNNNNNNNNNNN using app-based authentication (Azure AD authentication not supported)
VERBOSE: Operation '' complete.
VERBOSE: Checking localhost
VERBOSE: Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' =
root\cimv2,'className' = Win32_BIOS'.
VERBOSE: Operation 'Enumerate CimInstances' complete.
VERBOSE: Perform operation 'Query CimInstances' with following parameters, ''queryExpression' = SELECT * FROM
MDM_DevDetail_Ext01 WHERE InstanceID='Ext' AND ParentID='./DevDetail','queryDialect' = WQL,'namespaceName' =
root/cimv2/mdm/dmmap'.
VERBOSE: Operation 'Query CimInstances' complete.
Gathered details for device with serial number: 8547-1568-1987-0982-5331-6302-49 << vm serial number
VERBOSE: GET https://graph.microsoft.com/beta/deviceManagement/importedWindowsAutopilotDeviceIdentities
VERBOSE: GET https://graph.microsoft.com/beta/deviceManagement/importedWindowsAutopilotDeviceIdentities with 0-byte
payload
VERBOSE: received 5763-byte response of content type application/json

cmdlet Set-AutopilotDevice at command pipeline position 1
Supply values for the following parameters:
id:

if you hit enter here you the following....

cmdlet Set-AutopilotDevice at command pipeline position 1
Supply values for the following parameters:
id:
VERBOSE: POST https://graph.microsoft.com/beta/deviceManagement/windowsAutopilotDeviceIdentities//UpdateDeviceProperties
{ groupTag: "MYTAGHERE" }
VERBOSE: POST https://graph.microsoft.com/beta/deviceManagement/windowsAutopilotDeviceIdentities//UpdateDeviceProperties
with 25-byte payload
VERBOSE: received 456-byte response of content type application/json
Set-AutopilotDevice : Microsoft.Graph.PowerShell.Authentication.Helpers.HttpResponseException: Response status code does
not indicate success: BadRequest (Bad Request).
at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
At C:\temp\get-windowsautopilotinfo.ps1:1987 char:30

  • ... $imported += Set-AutopilotDevice -groupTag $_.'Group Tag'
  •                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Set-AutopilotDevice

I'll try to figure it out somehow.
https://stgacct010101.blob.core.windows.net/shared/ERROR1.png

from windowsautopilotinfo.

andrew-s-taylor avatar andrew-s-taylor commented on August 12, 2024

Pulled request

from windowsautopilotinfo.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.