Error
PS C:\WINDOWS\system32> Install-PSResource -Name PSScriptAnalyzer -Reinstall
Install-PSResource : The term 'Install-PSResource' 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-PSResource -Name PSScriptAnalyzer -Reinstall
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Install-PSResource:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Solution
Install-PSResource command is part of PowerShellGet Package which need to be installed first.
Latest posts by rajeshkumar (see all)
- WordPress Error: Is its parent directory writable by the server - November 2, 2022
- PHP Error: Warning: mysqli::__construct(): (HY000/1044): Access denied for user - October 25, 2022
- WordPress Error: llegal mix of collations - October 14, 2022