|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Set-NaCifs
NAME
Set-NaCifs
SYNOPSIS
Configures the filer's CIFS service.
SYNTAX
Set-NaCifs [-CifsServer] <String> [-AuthType] <String> [-SecurityStyle] <Str
ing> [-Domain <String>] [-DCAddress <String>] [-User <String>] [-Password <S
tring>] [-Credential <PSCredential>] [-OrganizationalUnit <String>] [-Site <
String>] [-Controller <NaController>] [-WhatIf] [-Confirm] [<CommonParameter
s>]
DESCRIPTION
Configures the filer's CIFS service. The CIFS service will start automatical
ly once this call completes successfully.
PARAMETERS
-CifsServer <String>
The resulting CIFS server name.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-AuthType <String>
The authentication style that determines the method by which clients wil
l be authenticated when connecting to this CIFS server. These styles are
subject to change in a future release. Possible values: ad, nt4, workgr
oup, passwd Note: The Domain, User and Password fields are optional unle
ss the AuthType is ad.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-SecurityStyle <String>
The security style determines whether or not the CIFS service will suppo
rt multiprotocol access. These styles are subject to change in a future
release. Possible values: ntfs, multiprotocol
Required? true
Position? 3
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Domain <String>
The name of the domain or workgroup that the CIFS server will join. This
can be the NetBIOS or fully qualified domain name. Examples: cifsdomain
, cifs.domain.com, cifsworkgroup
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-DCAddress <String>
If this value is defined, CIFS will attempt to communicate with the doma
in controller directly using this address. Note: This information is onl
y used when the AuthType is 'nt4'.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-User <String>
The name of a domain user that has the ability to add the CIFS server to
the domain given in Domain. Examples: username (assumes Domain is the u
ser's domain), cifsdomain\username, cifs.domain.com\username
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Password <String>
The password for User.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Credential <PSCredential>
Credentials of a domain user that has the ability to add the CIFS server
to the domain.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OrganizationalUnit <String>
The distinguished name of the organizational unit that the CIFS service
will become a member of. This value must be one of the organizational un
its retrieved from a call to Get-NaCifsOrganizationalUnit. By default, t
he controller will join the 'CN=Computers' organizational unit. Note: Th
is information is only used when AuthType is 'ad'.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Site <String>
The name of the site that the CIFS service will become a member of. This
value must be one of the sites retrieved from a call to Get-NaCifsSite.
If a default site was returned, it is the recommended choice. Sites wil
l be ignored if this value is left blank. Note: This information is only
used when AuthType is 'ad'.
Required? false
Position? named
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
-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
<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-setup
-------------- Example 1 --------------
C:\PS>Set-NaCifs -CifsServer DUNN -AuthType ad -SecurityStyle ntfs -Domain r
tprre.testdomain -User Administrator -Password p@ssw0rd
Invoke the equivalent of 'cifs setup' by having controller 'dunn' join an Ac
tive Directory domain.
-------------- Example 2 --------------
C:\PS>Set-NaCifs -CifsServer DUNN -AuthType workgroup -SecurityStyle ntfs -D
omain cifsworkgroup
Invoke the equivalent of 'cifs setup' by having controller 'dunn' join the '
cifsworkgroup' workgroup.
RELATED LINKS
Get-NaCifs
Test-NaCifs
Get-NaCifsOrganizationalUnit
Get-NaCifsSite
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|