TestimoX

API Reference

Command

Set-CxFileOwner

Namespace ComputerX.PowerShell
Outputs
System.Boolean

Sets the owner of a file or directory.

Examples

Authored help example

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 requiredposition: 0pipeline: false
File system path to the target resource.
Owner string requiredposition: 1pipeline: false
Gets or sets the Owner parameter.

Outputs

System.Boolean