help with using the microsoft graph api to manage intune

2022.01.28 19:03 johnshop help with using the microsoft graph api to manage intune

hey guys!
So up until now, i had not really had to do anything in bulk that couldn't have been done within the gui quickly. But, we made the move to have 1:1 devices classroom sets, and while everything went super smooth, after imaging, we onboarded the devices though enrollment management accounts, no problem, but now all the devices have the enrollment accounts as primary user, but since these will be shared devices, i need to remove the primary user so intune treats the devices as shared devices.
I assigned the computers the shared pc multiple user built in configuration profile but that did not get rid of the primary user, so searching around, i came across this script to be used with the Microsoft graph api:
$devices = Get-Win10IntuneManagedDevices
$targetdevices = $devices | Where-Object {$_.deviceName -like "SHARED-*"}
Foreach ($device in $targetdevices){
Write-Host "Removing Primary User for $($device.devicename)" -ForegroundColor green
Delete-IntuneDevicePrimaryUser -IntuneDeviceId $device.id -ErrorAction Continue
}
Problem is i cant for the life of me get it to function. I added the modules to powershell that are supposedly needed, but CMDLETS are missing like Get-Win10IntuneManagedDevices, Delete-IntuneDevicePrimaryUser effectively breaking the script.
So im super lost, If anyone could point me in the right direction i would really appreciate it!
thank you guys!
submitted by johnshop to k12sysadmin [link] [comments]


2022.01.28 19:03 AlouetteTV IMMORTAL KILLJOY Guide on Ascent! (BEST SETUPS, LINEUPS, ULTS, HOW TO PLAY SITES 2022)

IMMORTAL KILLJOY Guide on Ascent! (BEST SETUPS, LINEUPS, ULTS, HOW TO PLAY SITES 2022) submitted by AlouetteTV to KillJoyMains [link] [comments]


2022.01.28 19:03 BlankBoii I cant help but be suspicious... i dont even have microelectronics yet

submitted by BlankBoii to RimWorld [link] [comments]


2022.01.28 19:03 101BULL1 ITS CLOSE TO MIDNIGHT AND HE'S BARKING AT THE MOON!!

ITS CLOSE TO MIDNIGHT AND HE'S BARKING AT THE MOON!! submitted by 101BULL1 to sabaton [link] [comments]


2022.01.28 19:03 Sexysenju Sleeping dogs sound glitch ?

There a lot of wierd sound glitches like when I get into a fight there no punching sounds or people talking just music but I can hear my character moving and stuff it’s really wierd
submitted by Sexysenju to sleepingdogs [link] [comments]


2022.01.28 19:03 SteelheadGunner Well, there goes a solid month and a half....

Well, there goes a solid month and a half.... submitted by SteelheadGunner to NFA [link] [comments]


2022.01.28 19:03 Thenamessd Artificial Nightmares : Sifu Splinter || DD PYTTI VQGAN AI Art Video [4K 60 FPS]

Artificial Nightmares : Sifu Splinter || DD PYTTI VQGAN AI Art Video [4K 60 FPS] submitted by Thenamessd to cgi [link] [comments]


2022.01.28 19:03 chrisor97 [PS5] Demon’s Souls – PlayStation 5 is $51.77

submitted by chrisor97 to WarehouseConsoleDeals [link] [comments]


2022.01.28 19:03 Forsaken-Way-9881 ich👴🏻💩iel

ich👴🏻💩iel submitted by Forsaken-Way-9881 to ich_iel [link] [comments]


2022.01.28 19:03 Sandcracka- SCHWARZENOCTO

SCHWARZENOCTO submitted by Sandcracka- to OctoBUSD [link] [comments]


2022.01.28 19:03 EsoMonty Stream Deck 5.2 Installation issue

Stream Deck 5.2 Installation issue Hi, I am trying to install the steam deck software. I am getting the following error message:
"An installation for iCloud is currently suspended. You must undo the changes made by that installation to continue. Do you want to undo those changes?
Yes or No.
Neither option will install the software. Here is a screenshot of the error: I have confirmed that icloud app is running on my win 10 computer.

https://preview.redd.it/z54d0g3f4ie81.png?width=499&format=png&auto=webp&s=db8b42a6e0d984d8676855346e74f780660fe301
submitted by EsoMonty to elgato [link] [comments]


2022.01.28 19:03 Gothic-Moth-521 Looking for disgusting songs-

Looking for stuff that sounds like a sludgy fork in a garbage disposal. Whatcha got?
submitted by Gothic-Moth-521 to dubstep [link] [comments]


2022.01.28 19:03 eeeeeeeeyore Cheers everyone!

Cheers everyone! submitted by eeeeeeeeyore to Superstonk [link] [comments]


2022.01.28 19:03 OrganisedSoundWaves [8] Alpha Chop 🥋

submitted by OrganisedSoundWaves to ShinyPokemon [link] [comments]


2022.01.28 19:03 ReezyReezywhatsgood [WTB] carbine armaspec srs (TX)

Looking for a carbine weight SRS $30-45 depending on salt.
submitted by ReezyReezywhatsgood to GunAccessoriesForSale [link] [comments]


2022.01.28 19:03 Mr-Darthi A friend showed me this very funny comic about and orange cat and decided to redraw it !!!

submitted by Mr-Darthi to AlzheimersGroup [link] [comments]


2022.01.28 19:03 Tobasco29 Gold in leagues

Just got a revenant relic drop and traded it in for 8 mill. What do I even do with money in leagues
submitted by Tobasco29 to 2007scape [link] [comments]


2022.01.28 19:03 kickypie Understand divinity is the birth of aspiration, and of us. If you believe it, the universe will make it happen!

greed is the antithesis of understanding.
Shakti will enable us to access intergalactic presence. If you have never experienced this source on a cosmic scale, it can be difficult to grow. Our conversations with other dreamers have led to a blossoming of ultra- spiritual consciousness. There is just no getting around that turning ego into love is up to you.
submitted by kickypie to spirituality [link] [comments]


2022.01.28 19:03 GuidoSensatione [WTS/WTT] Omega Speedmaster Michael Schumacher - RARE - RECENTLY SERVICED

[WTS/WTT] Omega Speedmaster Michael Schumacher - RARE - RECENTLY SERVICED submitted by GuidoSensatione to Watchexchange [link] [comments]


2022.01.28 19:03 MasakoChance Skiing

submitted by MasakoChance to interestingasfuck [link] [comments]


2022.01.28 19:03 Duchess1992 At a packed truck stop, this guy was parked at the fuel island for over an hour!!! Didn't get fuel btw.

At a packed truck stop, this guy was parked at the fuel island for over an hour!!! Didn't get fuel btw. submitted by Duchess1992 to Truckers [link] [comments]


2022.01.28 19:03 JoeSpinell Eye godd zum bigglez

submitted by JoeSpinell to howardstern [link] [comments]


2022.01.28 19:03 ratgarcon Boston terrier puppy won’t clean herself

She’s about four months old and licks towards her butt like on her back, but never like raises her leg to clean it. Is it possible for dogs to not know how to? How do I get her to? My older dog helps sometimes but the puppy doesn’t seem to catch on
submitted by ratgarcon to puppy101 [link] [comments]


2022.01.28 19:03 JackBlackActor Which wrestler did you forgot that won the rumble I’ll start.

Which wrestler did you forgot that won the rumble I’ll start. submitted by JackBlackActor to BrandonDE [link] [comments]


2022.01.28 19:03 Safe_Long9374 Multiple bids question

So say I have 1 eth and i place a 1 eth bid on 10 pieces. What happens if one of the bids gets accepted? I wont be able to pay for the other bids, will those be eliminated automatically? Thanks
submitted by Safe_Long9374 to opensea [link] [comments]


http://proizvodstvo-pellet.ru