2016-08-12 6 views
1

Window 10マシンでPowerShellを起動するたびに次のエラーが発生します。モジュールディレクトリに有効なモジュールファイルが存在しないため、指定されたモジュール 'updateScript'がロードされませんでした。

import-module : The specified module 'updateScript' was not loaded because no valid module file was found in any 
module directory. 
At C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1:48 char:1 
+ import-module updateScript 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    + CategoryInfo   : ResourceUnavailable: (updateScript:String) [Import-Module], FileNotFoundException 
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand 

get-newScript : The term 'get-newScript' 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 C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1:49 char:1 
+ get-newScript -scriptPath $scripts 
+ ~~~~~~~~~~~~~ 
    + CategoryInfo   : ObjectNotFound: (get-newScript:String) [], CommandNotFoundException 
    + FullyQualifiedErrorId : CommandNotFoundException 

このマシンでPowerShellを初めて使用しようとしました。同様の構成の他のマシンにもエラーはありません。

答えて

0

あなたのプロフィール内に何かがあるようです。ちょうどii $profileを実行してください。これらのコマンドを削除する必要がある場合は、テキストファイルを開きます。

関連する問題