Unregister-CacheHost命令不起作用 [英] Unregister-CacheHost command not working

查看:53
本文介绍了Unregister-CacheHost命令不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想知道"Unregister-CacheHost"是否属于Powershell中的命令现已上市。这是因为我收到以下错误消息,似乎没有附带此版本:

I would like to know whether the "Unregister-CacheHost" command in Powershell is available now. It is because I got the following error message and it seems that not shipping with this version:

PS C:\ Windows \ system32> Unregister-CacheHost

术语"Unregister-CacheHost"未被识别为cmdlet,func

tion,脚本文件或可操作程序的名称。检查名称的拼写,或者如果包含了b
 路径,请验证路径是否正确,然后重试。

行:1字符:21

+ Unregister-CacheHost<<<<

    + CategoryInfo          :ObjectNotFound :( Unregister-CacheHost:String)[]

   ,CommandNotFoundException

    + FullyQualifiedErrorId:CommandNotFoundException

PS C:\Windows\system32> Unregister-CacheHost
The term 'Unregister-CacheHost' is not recognized as the name of a cmdlet, func
tion, 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:21
+ Unregister-CacheHost <<<<
    + CategoryInfo          : ObjectNotFound: (Unregister-CacheHost:String) []
   , CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

但是,在msdn库中,此命令已记录在案。或者我需要将任何库导入Powershell吗?谢谢。

However, in msdn library, this command is documented. Or do I need to import any library into Powershell? Thanks.

Eric

推荐答案

导入模块DistributedCacheConfiguration

Import-module DistributedCacheConfiguration

或者如果您使用的是Win7 / Server 2008 R2,控制面板 - >管理工具 - > Windows Powershell模块。

or if you're using Win7/Server 2008 R2, control panel->administrative tools->Windows Powershell modules.


这篇关于Unregister-CacheHost命令不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆