This PS command works for me:
C:\Users\myname> get-nfssharepermission -Name <name> -NetworkName <networksharename> -clienttype host
this lists the names of servers that have access to this NFS share. This command fails:
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
Any idea how to fix this issue? thanks.
User contributions licensed under CC BY-SA 3.0