2013-03-08 2 views
1

Powershell Remoting 버전 2.0을 사용합니다.
나는 Powershell Module Carbon을 다운로드했습니다. 내가 공유 폴더에 복사 :공유 폴더에서 Carbon Powershell 모듈 가져 오기

\ SharedServer \ PowershellModules \ 탄소 1.0.0 내 스크립트 PS1에서

,이 소스 코드를 가지고 : 나는 다음과 같은 오류가

$PSPathCarbon = "\\SharedServer\PowershellModules\Carbon-1.0.0\Carbon" 
. (Join-Path $PSPathCarbon Import-Carbon.ps1) 

을 :

The term '\SharedServer\PowershellModules\Carbon-1.0.0\Carbon\Import-Carbon.ps1' 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.

어떤 의견이 있나요?

답변

0

시도 :

. (Join-Path $PSPathCarbon 'Import-Carbon.ps1') 

또는 : 두 경우 모두

. "$PSPathCarbon\Import-Carbon.ps1" 
+0

같은 오류가 발생했습니다. – Kiquenet

+0

64 비트 버전의 PowerShell이 ​​필요하다고 말합니다. 그거 있니? Test-Path "$ PSPathCarbon \ Import-Carbon.ps1"을 실행하면 true 또는 false가됩니까? 또한 이것을 시도하십시오

관련 문제