API Reference
Command
Set-CxFileOwner
Sets the owner of a file or directory.
Examples
Example 1
Set-CxFileOwner -Path 'C:\\Data' -Owner 'CONTOSO\\Admins'
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Set-CxFileOwner -Path <string> -Owner <string> [<CommonParameters>]#Parameters
- Path string
- File system path to the target resource.
- Owner string
- Gets or sets the Owner parameter.
Outputs
System.Boolean