此PS命令对我有用:
C:\Users\myname> get-nfssharepermission -Name <name> -NetworkName <networksharename> -clienttype host
这列出了有权访问此NFS共享的服务器的名称。 该命令失败:
PS C:\Users\myname> revoke-NFSSharePermission -ClientName <clinetname from list above> -ClientType host -Name <name> -NetworkName <networksharename>
revoke-NFSSharePermission : Failed to perform the requested operation.
At line:1 char:1
+ revoke-NFSSharePermission -ClientName <clientName> -ClientType host -Name <name> ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (MSFT_NfsServerTasks:root/Microsoft/..._NfsServerTasks) [Revoke-NfsShare
Permission], CimException
+ FullyQualifiedErrorId : HRESULT 0x80070490,Revoke-NfsSharePermission
任何想法如何解决此问题? 谢谢。