Data ONTAP® PowerShell Toolkit

Cmdlet: Get-NaCifsHomeDirectory


NAME
Get-NaCifsHomeDirectory

SYNOPSIS
Return path to the user's CIFS home directory if it exists, or return the pa
ths to all home directories.

SYNTAX
Get-NaCifsHomeDirectory [[-User] <String>] [-Controller <NaController>] [-Wa
rningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParamete
rs>]


DESCRIPTION
Return path to the user's CIFS home directory if it exists, or return the pa
ths to all home directories.


PARAMETERS
-User <String>
Name of the user. If the filer is using the "mapped" CIFS home directory
naming style, then a mapped Unix name is provided. For the domain namin
g style, a domain/user is provided. Otherwise the filer will expect the
NT name for the user. The filer's CIFS home directory naming style can b
e obtained with the Get-NaOption cmdlet, using parameter "cifs.home_dir_
namestyle".

Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, 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

-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
System.String


NOTES


Category: cifs
API: cifs-homedir-paths-get, cifs-homedir-path-get-for-user

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

C:\PS>Get-NaCifsHomeDirectory


Return the list of home directories on the current controller.


/vol/vol0/user1
/vol/vol0/user2



RELATED LINKS
Set-NaCifsHomeDirectory







 Data ONTAP® PowerShell Toolkit