Eprs_Admin
asked on
powershell install module
Hi Experts,
I cannot install a module to powershell.
I like to install this module:
This command is part of a script and was always working.
What I am doing wrong ?
I cannot install a module to powershell.
I like to install this module:
PS C:\> Install-Module AzureAD
Install-Module : The term 'Install-Module' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling
of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Install-Module AzureAD
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Install-Module:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
This command is part of a script and was always working.
What I am doing wrong ?
EXPERT CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
EXPERT CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Well then, find a quiet minute for this server and update PowerShell from the link I posted above; Install-Module is only available with 5.x.
You could probably install the module manually, but there's no real point in working with a rather old PS version.
You could probably install the module manually, but there's no real point in working with a rather old PS version.
ASKER
ok, do I need a reboot ?
Can't tell in advance, sorry. Might need it, might not; differs on what needs to be updated on that certain machine.
On a side note: for that full Windows 10 / Server 2016 feeling of the advanced command line, you can install the PSReadLine module as well:
Find-Module PSReadLine | Install-Module
ASKER
Hi OBDA,
when I type FIND-MODULE in my powershell of Windows 2012R2, I cannot find this commandlet.
when I type FIND-MODULE in my powershell of Windows 2012R2, I cannot find this commandlet.
ASKER
Just this file is enough ?
Win8.1AndW2K12R2-KB3191564 -x64.msu
Win8.1AndW2K12R2-KB3191564
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Open in new window