ramical / samples Goto Github PK
View Code? Open in Web Editor NEWRamiro Calderon's personal repo
Ramiro Calderon's personal repo
When installing on a machine where the documents folder contains a space in the environment variables ([Environment]::GetFolderPath("MyDocuments")), it causes an error during the download and installation of the ADAL library files with files not found error.
Example: The Documents folder is in C:\users\joeuser\OneDrive - Contoso\Documents
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.