Data ONTAP® PowerShell Toolkit

Switch to clustered Data ONTAP documentation.

Cmdlet: Disable-NaCifs


NAME
Disable-NaCifs

SYNOPSIS
Stops the CIFS service for all users or a particular workstation, if specifi
ed.

SYNTAX
Disable-NaCifs [[-Workstation] <String>] [-Controller <NaController>] [<Comm
onParameters>]


DESCRIPTION
Stops the CIFS service for all users or a particular workstation, if specifi
ed. Appropriate warning should be given to connected clients before calling
this API, as it will immediately terminate those sessions regardless of thei
r current state. See the Get-NaCifsSession API for the list of clients that
are currently connected.


PARAMETERS
-Workstation <String>
The name or IP address of a workstation that will be disconnected from t
he CIFS service. Note that the CIFS service does not stop if this value
is specified, it simply disconnects related sessions.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES


Category: cifs
API: cifs-stop

-------------- Example 1 --------------

C:\PS>Connect-NaController dunn -Credential (Get-Credential)
Disable-NaCifs


Stop the CIFS service. This is best accomplished while connected via HTTP r
ather than RPC.






RELATED LINKS
Enable-NaCifs
Test-NaCifs







 Data ONTAP® PowerShell Toolkit