Data ONTAP® PowerShell Toolkit

Cmdlet: Get-NaCifsSite


NAME
Get-NaCifsSite

SYNOPSIS
Gathers a list of joinable sites units from Active Directory.

SYNTAX
Get-NaCifsSite [-Domain] <String> [-User] <String> [-Password] <String> [-Co
ntroller <NaController>] [-DefaultSite] [-WarningAction <ActionPreference>]
[-WarningVariable <String>] [<CommonParameters>]


DESCRIPTION
Gathers a list of joinable sites from Active Directory for the login-user sp
ecified. For more information regarding Active Directory sites and their us
e, please reference Microsoft's Active Directory documentation.


PARAMETERS
-Domain <String>
The name of the domain that the CIFS server will join. Examples: cifsdo
main, cifs.domain.com

Required? true
Position? 1
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
user's domain), cifsdomain\username, cifs.domain.com\username

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

-Password <String>
The password for User.

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

-Controller <NaController>
The DataONTAP controller object, embodied by an NaController object. Th
is parameter is returned by the Connect-NaController cmdlet. If not spe
cified, the value in the global variable CurrentNaController is used.

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

-DefaultSite
Specify to limit the results to the default site listed in Active Direct
ory.

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

-WarningAction <ActionPreference>


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

-WarningVariable <String>


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
NetApp.Ontapi.Filer.Cifs.CifsSetupSite


NOTES


Category: cifs
API: cifs-setup-site-list-iter-start, cifs-setup-site-list-iter-next, ci
fs-setup-site-list-iter-end

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

C:\PS>Get-NaCifsSite rtprre.testdomain Administrator my@passw0rd


List all sites known to AD.


Site
----
Default-First-Site-Name
Test-Site
Test-Site2



RELATED LINKS
Get-NaCifsOrganizationalUnits







 Data ONTAP® PowerShell Toolkit