Coder Social home page Coder Social logo

Comments (6)

rohitramu avatar rohitramu commented on May 18, 2024

Thanks for reporting this, I'm investigating it now. I'll let you know what I find.

from intune-powershell-sdk.

rohitramu avatar rohitramu commented on May 18, 2024

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.

vanyuale avatar vanyuale commented on May 18, 2024

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.

rohitramu avatar rohitramu commented on May 18, 2024

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.

vanyuale avatar vanyuale commented on May 18, 2024

Indeed stable version works.

Thank you!

from intune-powershell-sdk.

rohitramu avatar rohitramu commented on May 18, 2024

Good to hear it worked!

from intune-powershell-sdk.

Related Issues (20)

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.