< Back

Set-NsFilesystemOwner

Sat Jan 18, 2020 5:15 pm

NAME Set-NsFilesystemOwner



SYNOPSIS

Sets the Owner on a filesystem





SYNTAX

Set-NsFilesystemOwner [-Path] <String> [-User <String>] [-Group <String>] [-NoWait] [-WhatIf] [-Confirm]

[<CommonParameters>]





DESCRIPTION

Sets the Owner on a filesystem





PARAMETERS

-Path <String>



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-User <String>



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Group <String>



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-NoWait [<SwitchParameter>]

Invoke to make the cmdlet start the job and return the GUID of the JobID



Required? false

Position? named

Default value False

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



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, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

True, if the owner is changed





-------------------------- EXAMPLE 1 --------------------------



PS C:\\temp>Set-FilesystemOwner p1/nfstest -User 6465



True



Sets the user with the uid 6564 as the owner of the filesyste,









-------------------------- EXAMPLE 2 --------------------------



PS C:\\temp>Set-FilesystemOwner p1/nfstest -User root -Group 6465



True



Sets root as the owner and the group with the gid 6465 as the group











RELATED LINKS