-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with New-NetShare related to WMI #12
Comments
Is there a share already ? Could you please list this share with Get-NetFileShares -Server 10.82.72.8 ? |
Hi yes SMB Shares are showing when trying to retrieve them Name Path EUWDRVolume01_share C: my issue is only when trying to create a new file shares, just to let you know, the storage is NetApp Cloud Volume |
Thanks. I am shure now, that your fault is the path you use in your command. Try it like this: New-NetShare -Name "testscript" -Path "C:\EUWDRVolume01_share\G_Drive\testfromCVO" -Server 10.82.72.8 You have to use C:\ and backslashes ( \ ) |
thanks alot for your quick reply, actually when I was trying with C:\ path i'm getting an error. New-NetShare -Name "testscript" -Path "C:\EUWDRVolume01_share\G_Drive\testfromCVO" -Server 10.82.72.8
the backend storage is NetApp Cloud Volume and actually the path on the system has to be in the format /EUWDRVolume01_share/G_Drive/testfromCVO, and the error i'm getting is Incorrect parameters, New-NetShare -Name "testscript" -Path "/EUWDRVolume01_share/G_Drive/testfromCVO" -Server 10.82.72.8
when using Windows based shares it is working fine on other windows file servers, the problem I'm facing is just only with NetApp storage |
trying to create share on NetApp CVO (cloud volumes) it is returning WMI errors, the current logged in account is built-in Administrator on the SVM
PS C:\Windows\system32> New-NetShare -Name "testscript" -Path "/EUWDRVolume01_share/G_Drive/testfromCVO" -Server 10.82.72.8
Error during NetShareAdd: The parameter is incorrect (Win32 ErrorCode 87 - 0x00000057)
At C:\Program Files\WindowsPowerShell\Modules\FileShareUtils\1.0.24\FileShareUtils.psm1:1131 char:13
The text was updated successfully, but these errors were encountered: