NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Microsoft Virtualization Discussions

Get-NcCifsShare: Cifs shares missing Volume

krishna556
4,433 Views
Re: Get-NcCifsShare not providing complete list of shares through Powershell.
 

Hi Asulliva,

Sorry for the confusion am pretty new to Netapp.

From ONTAP CLI and GUI,  I am able to validate all the shares and they do exist for  vserver SVM123.

 

From Powershell , I am trying to query the same vserver using Get-NcCifsshare query command. 

 

 

Some parameters are missing from powershell output

 

PS D:\working\scripts> Get-NcCifsShare -vserver inx123456 | select *

 

Acl : {Everyone / Full Control}
AttributeCacheTtl : 
CifsServer : INX123456
Comment : 
DirUmask : 
FileUmask : 
ForceGroupForCreate : 
MaxConnectionsPerShare : 4294967295
NcController : inx.abc.com
OfflineFilesMode : manual
Path : /vol01/ogc/projects/SHELLFR-NDH/02_NDEU Connection Design
ShareName : DFS_02_NDEU Connection Design$
ShareProperties : {oplocks, browsable, changenotify, show_previous_versions}
SymlinkProperties : {symlinks}
Volume : vol01
VscanFileopProfile : standard
Vserver : inx123456
AttributeCacheTtlSpecified : False
DirUmaskSpecified : False
FileUmaskSpecified : False
MaxConnectionsPerShareSpecified : True

 

Acl : {Everyone / Full Control}
AttributeCacheTtl : 
CifsServer : INX123456
Comment : COMMON discipline share for the ASORC project.
DirUmask : 
FileUmask : 
ForceGroupForCreate : 
MaxConnectionsPerShare : 4294967295
NcController : inx.abc.com
OfflineFilesMode : manual
Path : /vol01/ogc/projects/ASORC/Common
ShareName : DFS_ASORC_Common$
ShareProperties : {oplocks, browsable, changenotify, show_previous_versions}
SymlinkProperties : {symlinks}
Volume : 
VscanFileopProfile : standard
Vserver : inx123456
AttributeCacheTtlSpecified : False
DirUmaskSpecified : False
FileUmaskSpecified : False
MaxConnectionsPerShareSpecified : True

 

Acl : {Everyone / Full Control}
AttributeCacheTtl : 
CifsServer : INX123456
Comment : CONTROLS discipline share for the ASORC project.
DirUmask : 
FileUmask : 
ForceGroupForCreate : 
MaxConnectionsPerShare : 4294967295
NcController : inx.abc.com
OfflineFilesMode : manual
Path : /vol01/ogc/projects/ASORC/Controls
ShareName : DFS_ASORC_Controls$
ShareProperties : {oplocks, browsable, changenotify, show_previous_versions}
SymlinkProperties : {symlinks}
Volume : 
VscanFileopProfile : standard
Vserver : inx123456
AttributeCacheTtlSpecified : False
DirUmaskSpecified : False
FileUmaskSpecified : False
MaxConnectionsPerShareSpecified : True

 

 

 

Volume parameter is not returning any value for some shares, which is highlighted above. Please let me know if you have any questions

Any help would be appreciated.

1 ACCEPTED SOLUTION

krishna556
4,372 Views

Deleted the target vservers manually and tried to ru nthe script again.

Fixed the issue.

View solution in original post

1 REPLY 1

krishna556
4,373 Views

Deleted the target vservers manually and tried to ru nthe script again.

Fixed the issue.

Public