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

Set-NaCifs: Unable to process

axsys
4,710 Views

Hey There,

Relatively new to the PS thing but so far I could find all the information needed for my powershell script on our flexclone environment. But, I've got one tiny issue with Set-NaCifs I couldn't find the issue.

I create a new vfiler. I connect to the vfiler...

$Credential = Get-Credential

Connect-NaController –name filername -Vfiler vfilertest –Credential $Credential

$pw = $Credential.GetNetworkCredential().Password

I create the /etc/passwd & /etc/groups....

New-NaCifsGroupFile

New-NaCifsPasswordFile $pw

Then I want to run CIFS Setup via Powershell...

Set-NaCifs -CifsServer vfilertest -AuthType workgroup -SecurityStyle multiprotocol

and get this error:

Set-NaCifs : Unable to process one or more of the input values.

At line:1 char:11

+ Set-NaCifs <<<<  -CifsServer vfilertest -AuthType workgroup -SecurityStyle multiprotocol

+ CategoryInfo          : InvalidOperation: (fil-srv01-inf:NaController) [Set-NaCifs], EINVALIDINPUTERROR

+ FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.Cifs.SetNaCifs

Couldn't find anything on google or on here. I have tried it with different AuthTypes and capital letter CifsServer names all leading to this same issue. Anyone ever experienced this?

Thanks,

Carlos

1 ACCEPTED SOLUTION

vinith
4,710 Views

hello, did you specify the domain parameter?, here's an sample from the cmdlet help.

Set-NaCifs -CifsServer DUNN -AuthType workgroup -SecurityStyle ntfs -Domain cifsworkgroup

View solution in original post

2 REPLIES 2

vinith
4,711 Views

hello, did you specify the domain parameter?, here's an sample from the cmdlet help.

Set-NaCifs -CifsServer DUNN -AuthType workgroup -SecurityStyle ntfs -Domain cifsworkgroup

axsys
4,710 Views

Well done, now I feel very stupid 😉

Yeah it worked of course. I forgot to add the workgroup/domain. I was abit confused by the term Domain I guess that's why I didn't include it. Makes sense tho.

Thanks a lot

Carlos

Public