在最近的Windows10更新之后,我使用cloudberry管理单元的powershell脚本不再工作。我已经重新安装了cloudberry,但没有成功。
即使管理单元显示为已注册:
PS C:\> Get-PSsnapin -Registered
Name : CloudBerryLab.Explorer.PSSnapIn
PSVersion : 2.0
Description : CloudBerry Explorer snap-in for PowerShellPowershell无法识别命令:
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该管理单元也被添加到当前会话中,但仍未显示:
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.发布于 2018-05-28 09:19:40
最终对Win10进行了重新铺设(通过“重置”),并花了一天时间重新安装应用程序。重置后安装的第一个应用程序是Cloudberry,该插件运行良好。不可否认,O/S在几年前从7升级到现在确实有点老了。感谢您的帮助尝试。
https://stackoverflow.com/questions/50530595
复制相似问题