Code Monkey home page Code Monkey logo

samples's People

Contributors

dependabot[bot] avatar jeftek avatar psignoret avatar ramical avatar teppeiy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

samples's Issues

MSCloudIdUtils: throws error with scope currentuser

install-module mscloudidutils -scope currentuser -force
install-mscloudidutilsmodule

Output:

PS C:\WINDOWS\system32> install-module mscloudidutils -scope currentuser -force
PS C:\WINDOWS\system32> install-mscloudidutilsmodule
Fixing Active Directory Authentication Library package directories ...
Not able to load ADAL assembly. Delete the Nugets folder under C:\Users\roland\Documents\WindowsPowerShell\Modules\MSCloudIdUtils , restart PowerShell session and try again ...
Removing existing module directory under  C:\Users\roland\Documents\WindowsPowerShell\Modules
Creating module directory under  C:\Users\roland\Documents\WindowsPowerShell\Modules
Active Directory Authentication Library Nuget doesn't exist. Downloading now ...
nuget.exe not found. Downloading from http://www.nuget.org/nuget.exe ...
Checking for updates from https://www.nuget.org/api/v2/.
Currently running NuGet.exe 2.8.6.
Updating NuGet.exe to 4.7.1.
Update successful.
Copy-Item : Cannot find path
'C:\Users\roland\Documents\WindowsPowerShell\Modules\MSCloudIdUtils\1.0.0.1\MSCloudIdUtils.psm1' because it does not
exist.
At C:\Users\roland\Documents\WindowsPowerShell\Modules\MSCloudIdUtils\1.0.0.1\MSCloudIdUtils.psm1:1290 char:5
+     Copy-Item "$PSScriptRoot\MSCloudIdUtils.psm1" -Destination $modul ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\roland...oudIdUtils.psm1:String) [Copy-Item], ItemNotFoundExce
   ption
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

Import-Module : The specified module 'MSCloudIdUtils' was not loaded because no valid module file was found in any
module directory.
At C:\Users\roland\Documents\WindowsPowerShell\Modules\MSCloudIdUtils\1.0.0.1\MSCloudIdUtils.psm1:1292 char:5
+     Import-Module MSCloudIdUtils
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (MSCloudIdUtils:String) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

I'm not a local admin on the box I want to run this on, so I cannot use global scope.
It does work in the end, but I want to avoid errors as then my script will break.

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.