WebThis repository of PowerShell sample scripts show how to access Intune service resources. They demonstrate this by making HTTPS RESTful API requests to the Microsoft Graph API from PowerShell. - po... WebAug 25, 2024 · Aug 25 2024 03:51 AM With Graph API we are only getting 1000 devices HI Team, We are using the below PowerShell script to change the Primary user of a device by checking the last logged in userid. Below is the github repo link which holds this PowerShell script and also the link of an article about the explanation of this script -
Primary User with Graph and PowerShell - rockenroll.tech
WebFeb 22, 2024 · Sign in to the Microsoft Intune admin center. Choose Devices > All devices > choose a Windows device > Properties > Change primary user. Select a new user and choose Select. After the primary user is updated, it will also be updated in Intune and Azure AD device blades. Note Supported on Windows devices only. WebThe script works as below: 1. Install the module Microsoft.Graph.Intune 2. Connect to Graph through the Azure app 3. Get the current device informtions 4. Get the device ID 5. Build the query to get the primary … how beijing snow winter
Changing the primary user of Windows devices – All about …
WebMar 6, 2024 · You must use the Microsoft Graph API to make the HTTP call. Microsoft Graph is a RESTful web API that enables you to access Microsoft Cloud service resources. Note For information about making REST API calls, including tools for interacting with Microsoft Graph, see Use the Microsoft Graph API. WebEdit for Update: As per Microsoft, the Primary User can only be changed on AD-joined (not Registered) devices. Our org has a mix of both and all are company-managed/owned. If we can rename AD-registered devices, send wipes, etc. then we should also be able to change the Primary User. Vote for my idea on UserVoice . 3 4 4 comments Add a Comment WebJun 20, 2024 · Below post (follow the link to “Bitlocker Recovery Key Tool“) covers how to register the app and add API permissions (scroll down to “Register the app”. Bitlocker Recovery Key Tool This specific script will require the following API permissions (please add these before proceeding): DeviceManagementManagedDevices.Read.All how being a sports fan affects your life