revoke-NFSSharePermission on windows2012 results in an error

0

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.

powershell
nfs
nfsclient
asked on Stack Overflow Feb 14, 2019 by V. Deshpande • edited Feb 14, 2019 by Jake

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0