Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

Cmdlet: Add-NcCifsServer


NAME
Add-NcCifsServer

SYNOPSIS
Configure and setup CIFS services on a Vserver.

SYNTAX
Add-NcCifsServer [-Name] <String> [-Domain] <String> [-OrganizationalUnit <S
tring>] [-DefaultSite <String>] [-AdminUsername] <String> [-AdminPassword] <
String> [-Force] [-VserverContext <String>] [-Controller <NcController[]>] [
-WhatIf] [-Confirm] [<CommonParameters>]

Add-NcCifsServer [-Name] <String> [-Domain] <String> [-OrganizationalUnit <S
tring>] [-DefaultSite <String>] [-AdminCredential] <PSCredential> [-Force] [
-VserverContext <String>] [-Controller <NcController[]>] [-WhatIf] [-Confirm
] [<CommonParameters>]


DESCRIPTION
Configure and setup CIFS services on a Vserver.


PARAMETERS
-Name <String>
The NetBIOS name to give the CIFS server.

Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Domain <String>
The Fully Qualified Domain Name of the Windows Active Directory this CIF
S server belongs to.

Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false

-OrganizationalUnit <String>
The Organizational Unit (OU) within the Windows Active Directory this CI
FS server belongs to.

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

-DefaultSite <String>
The default site used by LIFs that do not have a site membership.

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

-AdminUsername <String>
The username of the account used to add this CIFS server to the Active D
irectory.

Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false

-AdminPassword <String>
The password for the account used to add this CIFS server to the Active
Directory.

Required? true
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Force
If this is set and a machine account with the same name as specified in
'Name' exists in the Active Directory, it will be overwritten and reused
. The default value for this field is false.

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

-VserverContext <String>
Vserver to which to direct this command. If the currently connected con
troller (as embodied by an NcController object) represents a cluster, th
ere are multiple means to address commands to one of its vservers. Eith
er set the Vserver field on the NcController object to direct all subseq
uent commands to that vserver, or supply the VserverContext parameter to
an individual cmdlet. Only cmdlets which may be invoked on vservers of
fer the VserverContext parameter.

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

-Controller <NcController[]>
A clustered Data ONTAP controller to receive this cmdlet, as embodied by
an NcController object. This parameter is returned by the Connect-NcCo
ntroller cmdlet. If not specified, the value in the global variable Cur
rentNcController is used. In the latter case, if CurrentNcController co
ntains a collection of NcController objects, this cmdlet is invoked on e
ach controller in succession.

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

-WhatIf


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

-Confirm


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

-AdminCredential <PSCredential>
PSCredential object containing the credentials for the account used to a
dd this CIFS server to the Active Directory.

Required? true
Position? 3
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
DataONTAP.C.Types.Cifs.CifsServerConfig


NOTES


Category: cifs
API: cifs-server-create
Family: vserver

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

C:\PS>Add-NcCifsServer -Name CIFS01 -Domain TESTDOMAIN -AdminUsername Admini
strator -AdminPassword p@ssword


Creates the CIFS server CIFS01 and adds it to the domain TESTDOMAIN.


CifsServer AuthStyle Domain
OrganizationalUnit
---------- --------- ------
------------------
CIFS01 domain TESTDOMAIN



RELATED LINKS
Set-NcCifsServer
Remove-NcCifsServer
Get-NcCifsServer







 Data ONTAP® PowerShell Toolkit