New‐SMBSecurityOwner - microsoft/SMBSecurity GitHub Wiki
Creates an SMBSecOwner object.
New-SMBSecurityOwner [-Account] <Object> [-ForceDomain] [<CommonParameters>]
Creates an SMBSecOwner object. The owner can be added to the SMBSecurityDescriptor via Set-SMBSecurityOwner. The command will fail if the account's SID cannot be resolved by the system.
PS C:\> $account = "NT AUTHORITY\SYSTEM"
PS C:\> $Owner = New-SMBSecurityOwner -Account $accountCreates an SMBSecurity Owner using the SYSTEM account. This is the recommended owner account.
The owner name. String SID or account name, [System.Security.Principal.NTAccount], [System.Security.Principal.SecurityIdentifier] (SID), [SMBSecAccount], and ,[SMBSecGroup] objects are accepted. Strings accept input in 'username', 'domain\username', and 'user@domain' format.
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False[Experimental] Certain domain configurations, namely Azure AD joined, may cause the Account lookup to fail. This parameter adds extra domain lookup logic that should be AAD compatible. Hybrid joined and traditional AD joined systems should not need this parameter.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.