Cloudberry powershell snapin不再工作

时间:2018-05-25 13:42:57

标签: powershell cloudberry

在最近的Windows 10更新后,使用cloudberry snapin的powershell脚本不再有效。我已经重新安装了cloudberry但没有成功。

即使snapin显示为已注册:

PS C:\> Get-PSsnapin -Registered


Name        : CloudBerryLab.Explorer.PSSnapIn
PSVersion   : 2.0
Description : CloudBerry Explorer snap-in for PowerShell

Powershell无法识别命令:

PS C:\> $destination = Get-CloudFilesystemConnection | Select-CloudFolder 
"\\diskstation\drive1\backups\ow-data\"
Get-CloudFilesystemConnection : The term 'Get-CloudFilesystemConnection' 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:16
+ $destination = Get-CloudFilesystemConnection | Select-CloudFolder "\\ ...
+                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Get- 
CloudFilesystemConnection:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

snapin也被添加到当前会话中但仍未显示:

PS C:\> Add-PSSnapin CloudBerryLab.Explorer.PSSnapIn
PS C:\> Get-PSsnapin

Name        : Microsoft.PowerShell.Core
PSVersion   : 5.1.17134.81
Description : This Windows PowerShell snap-in contains cmdlets used to 
manage components of Windows PowerShell.

1 个答案:

答案 0 :(得分:0)

结束重新铺设(通过"重置")到Win10并花了一天时间重新安装应用程序。重置后安装的第一个应用程序是Cloudberry,插件工作正常。事实上,O / S在几年前已从7岁升级为牙齿。感谢您的帮助尝试。