Category: InTune
“File Ownership” not showing up after enabling MAM policy
Recently working on a Proof Of Concept enabling a MAM policy to lockdown and protect an application (Teams) on a device that not enrolled in Intune, and […]
InTune – Copy file using PowerShell to the computer from an Azure Blob location
I set a 100 Year Expiry , and leave access as Read Only It will give you URI and query string Copy the URI ONLY up to […]
InTune MDM – Something went wrong – invalid_client failed to authenticate user
Trying to enroll a new User and machine into InTune was bringing up the following errorError : invalid_clientDescription : failed to authenticate user For some reason, the License […]
How to Diagnose Application Install Issues in InTune
Files gets downloaded too : C:\Program Files (x86)\Microsoft Intune Management Extension\Content\Incoming Logs of thisC:\ProgramData\Microsoft\IntuneManagementExtension\Logs ( C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\IntuneManagementExtension.log _) AppID can be found in Intune E.g. : dd8aa12d-557e-49ac-8989-b9abf21ba25e File […]
Intune Powershell Script to Set All Windows 10 Connectoins to UnMetered
[pastacode lang=”markdown” manual=”%23AllConnectionsUnMetered%0A%0A%23We%20need%20a%20Win32%20class%20to%20take%20ownership%20of%20the%20Registry%20key%0A%24definition%20%3D%20%40%22%0Ausing%20System%3B%0Ausing%20System.Runtime.InteropServices%3B%20%0A%20%0Anamespace%20Win32Api%0A%7B%0A%20%0A%20%20%20%20public%20class%20NtDll%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%5BDllImport(%22ntdll.dll%22%2C%20EntryPoint%3D%22RtlAdjustPrivilege%22)%5D%0A%20%20%20%20%20%20%20%20public%20static%20extern%20int%20RtlAdjustPrivilege(ulong%20Privilege%2C%20bool%20Enable%2C%20bool%20CurrentThread%2C%20ref%20bool%20Enabled)%3B%0A%20%20%20%20%7D%0A%7D%0A%22%40%20%0A%20%0AAdd-Type%20-TypeDefinition%20%24definition%20-PassThru%20%7C%20Out-Null%0A%5BWin32Api.NtDll%5D%3A%3ARtlAdjustPrivilege(9%2C%20%24true%2C%20%24false%2C%20%5Bref%5D%24false)%20%7C%20Out-Null%0A%20%0A%23Setting%20ownership%20to%20Administrators%0A%24key%20%3D%20%5BMicrosoft.Win32.Registry%5D%3A%3ALocalMachine.OpenSubKey(%22SOFTWARE%5CMicrosoft%5CWindows%20NT%5CCurrentVersion%5CNetworkList%5CDefaultMediaCost%22%2C%5BMicrosoft.Win32.RegistryKeyPermissionCheck%5D%3A%3AReadWriteSubTree%2C%5BSystem.Security.AccessControl.RegistryRights%5D%3A%3Atakeownership)%0A%24acl%20%3D%20%24key.GetAccessControl()%0A%24acl.SetOwner(%5BSystem.Security.Principal.NTAccount%5D%22Administrators%22)%0A%24key.SetAccessControl(%24acl)%0A%20%0A%23Giving%20Administrators%20full%20control%20to%20the%20key%0A%24rule%20%3D%20New-Object%20System.Security.AccessControl.RegistryAccessRule%20(%5BSystem.Security.Principal.NTAccount%5D%22Administrators%22%2C%22FullControl%22%2C%22Allow%22)%0A%24acl.SetAccessRule(%24rule)%0A%24key.SetAccessControl(%24acl)%0A%0ANew-ItemProperty%20-path%20%22HKLM%3A%5CSOFTWARE%5CMicrosoft%5CWindows%20NT%5CCurrentVersion%5CNetworkList%5CDefaultMediaCost%22%20-Name%20WiFi%20-PropertyType%20Dword%20-Value%201%20-Force%0ANew-ItemProperty%20-path%20%22HKLM%3A%5CSOFTWARE%5CMicrosoft%5CWindows%20NT%5CCurrentVersion%5CNetworkList%5CDefaultMediaCost%22%20-Name%203G%20-PropertyType%20Dword%20-Value%201%20-Force%0ANew-ItemProperty%20-path%20%22HKLM%3A%5CSOFTWARE%5CMicrosoft%5CWindows%20NT%5CCurrentVersion%5CNetworkList%5CDefaultMediaCost%22%20-Name%204G%20-PropertyType%20Dword%20-Value%201%20-Force%0ANew-ItemProperty%20-path%20%22HKLM%3A%5CSOFTWARE%5CMicrosoft%5CWindows%20NT%5CCurrentVersion%5CNetworkList%5CDefaultMediaCost%22%20-Name%20Ethernet%20-PropertyType%20Dword%20-Value%201%20-Force%0ANew-ItemProperty%20-path%20%22HKLM%3A%5CSOFTWARE%5CMicrosoft%5CWindows%20NT%5CCurrentVersion%5CNetworkList%5CDefaultMediaCost%22%20-Name%20Default%20-PropertyType%20Dword%20-Value%201%20-Force” message=”” highlight=”” provider=”manual”/]
Poweshell Script for Intune to Change Office Work/Excel and Powerpoint Autorecover location to OneDrive
You will need to update the CompanyName to yours[pastacode lang=”markdown” manual=”%23Change%20AutoSaveLocation%20to%20OneDrive%0A%0A%0A%0A%24onedrivelocation%20%3D%20%25userprofile%25%5COneDrive%20-%20**CompanyName**%5C%0A%0A%0A%0Amkdir%20%22%24onedrivelocation%5CAutorecover%5CWord%5C%22%0A%0ANew-ItemProperty%20-path%20%22HKCU%3A%5CSoftware%5CMicrosoft%5COffice%5C16.0%5CWord%5COptions%22%20-Name%20AUTOSAVE-PATH%20-PropertyType%20%22ExpandString%22%20-Value%20%22%24onedrivelocation%5CAutorecover%5CWord%5C%22%0A%0Amkdir%20%22%24onedrivelocation%5CAutorecover%5CExcel%5C%22%0A%0ANew-ItemProperty%20-path%20%22HKCU%3A%5CSoftware%5CMicrosoft%5COffice%5C16.0%5Cexcel%5COptions%22%20-Name%20AutoRecoverPath%20-PropertyType%20%22ExpandString%22%20-Value%20%22%24onedrivelocation%5CAutorecover%5CExcel%5C%22%0A%0Amkdir%20%22%24onedrivelocation%5CAutorecover%5CPowerpoint%5C%22%0A%0ANew-ItemProperty%20-path%20%22HKCU%3A%5CSoftware%5CMicrosoft%5COffice%5C16.0%5CPowerPoint%5COptions%22%20-Name%20PathToAutoRecoveryInfo%20-PropertyType%20%22ExpandString%22%20-Value%20%22%24onedrivelocation%5CAutorecover%5CPowerpoint%5C%22″ message=”” highlight=”” provider=”manual”/]
InTune – Change account to Never Expire
I used the Below Policies to create a Local User and Password./Device/Vendor/MSFT/Accounts/Users/LocalAdmin/PasswordHowever there is no where in CSP to set this to never expire.You have to use […]
How to download Device Management powershell scripts from intune
There is no current way to download existing Powershell Scripts Uploaded to Intune Device Management. To do this you have to use the graph API. There is […]
Intune Management Extension Application / Service not installing after InTune deploy
Recently I found an InTune pc having issues deploying software and PowerShell In the “Company Portal” Store App it showed there was a: Delay in Downloading files errorI […]