Comments (6)
Thanks for reporting this, I'm investigating it now. I'll let you know what I find.
from intune-powershell-sdk.
I wasn't able to reproduce this issue using a MacBook Air running macOS High Sierra. I was able to load the module and login using the shell in Visual Studio Code.
Could you please run this command just before you run "Import-Module" and share the output?
[AppDomain]::CurrentDomain.GetAssemblies() | Sort-Object -Property FullName
from intune-powershell-sdk.
Sure, but i also was able to Import module. Problem is with executing any commands after.
GAC Version Location
--- ------- --------
False v4.0.30319
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/Microsoft.ApplicationInsights.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/Microsoft.CSharp.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/Microsoft.Management.Infrastructure.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/Microsoft.PowerShell.Commands.Manage...
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/Microsoft.PowerShell.Commands.Utilit...
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/Microsoft.PowerShell.ConsoleHost.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/Microsoft.PowerShell.CoreCLR.Assembl...
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/Microsoft.PowerShell.PSReadLine.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/Microsoft.PowerShell.Security.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/Microsoft.Win32.Primitives.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/Microsoft.Win32.Registry.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/netstandard.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/Newtonsoft.Json.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/powershell.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Collections.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Collections.Concurrent.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Collections.NonGeneric.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Collections.Specialized.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.ComponentModel.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.ComponentModel.Primitives.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.ComponentModel.TypeConverter.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Console.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Data.Common.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Diagnostics.Debug.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Diagnostics.DiagnosticSource.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Diagnostics.Process.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Diagnostics.Tools.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Diagnostics.TraceSource.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Diagnostics.Tracing.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Dynamic.Runtime.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Globalization.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.IO.Compression.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.IO.FileSystem.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.IO.FileSystem.AccessControl.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.IO.FileSystem.DriveInfo.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Linq.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Linq.Expressions.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Management.Automation.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Net.Http.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Net.Mail.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Net.NetworkInformation.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Net.Primitives.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.ObjectModel.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Private.CoreLib.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Private.Uri.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Private.Xml.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Private.Xml.Linq.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Reflection.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Reflection.Emit.ILGeneration.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Reflection.Emit.Lightweight.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Reflection.Extensions.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Reflection.Primitives.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Resources.ResourceManager.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Runtime.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Runtime.Extensions.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Runtime.InteropServices.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Runtime.InteropServices.Runti...
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Runtime.Loader.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Runtime.Numerics.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Security.AccessControl.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Security.Cryptography.Encodin...
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Security.Cryptography.X509Cer...
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Security.Principal.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Security.Principal.Windows.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Text.Encoding.Extensions.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Text.RegularExpressions.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Threading.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Threading.AccessControl.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Threading.Tasks.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Threading.Tasks.Parallel.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Threading.Thread.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Xml.ReaderWriter.dll
False v4.0.30319 /usr/local/microsoft/powershell/6.0.0-beta.5/System.Xml.XDocument.dll```
from intune-powershell-sdk.
I was able to execute the following:
Import-Module ./Microsoft.Graph.Intune.psd1
Connect-MSGraph
Get-DeviceAppManagement_MobileApps
The only difference I see between your loaded assemblies and mine is that you're using a beta version of PowerShell (v6.0.0-beta.5). Could you please try again after installing the latest stable version of PowerShell 6?
from intune-powershell-sdk.
Indeed stable version works.
Thank you!
from intune-powershell-sdk.
Good to hear it worked!
from intune-powershell-sdk.
Related Issues (20)
- New-IntuneRoleAssignment gives badrequest
- Get-IntuneManagedDevice returns all devices in a single result
- Get-IntuneDeviceConfigurationPolicy Encrypted omasettings
- Could not create IntuneAppProtectionPolicyiOS policy when assignments are provided HOT 2
- Get-IntuneMobileApp and Get-DeviceAppManagement_MobileApps not retrieving macOS LoB Apps
- This repo is missing important files HOT 2
- Where is Disconnect-MSGraph? HOT 1
- Get-AADGroupmember doesn't work on groups that have a source of Windows Server AD HOT 1
- Exclude Microsoft Intune PowerShell from Compliance Policy
- Security & Compliance Center connection error
- Exchange Online Prerequisite Check Failure HOT 1
- Unable to Connect-msgraph using client secret or cert
- Error on Invoke-IntuneManagedDeviceSyncDevice
- Error on New-MgDeviceManagementDeviceEnrollmentConfiguration HOT 1
- H
- Connect Graph issues
- Get-IntuneMobileApp Productversion parameter shows the wrong data
- Update-mgdevicemanagementmanageddevice -devicecategory HOT 1
- 504 Gateway Timeout when using Get-IntuneManagedDevice | Get-MSGraphAllPages HOT 1
- Assignments missing from get-intunemobileapp output
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intune-powershell-sdk.