Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Powershell

AddAFSecurityMapping.WindowsAccount Property

  • Last UpdatedDec 15, 2025
  • 2 minute read
AddAFSecurityMapping.WindowsAccount Property

Windows Account to add to the AF Security Mapping. The parameter can be provided as a string, for example:

"domain\user"

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 3.1.1.0 (3.1.1.466)

Syntax

[ParameterAttribute(Position = 1, Mandatory = true, ValueFromPipeline = false, 
	ParameterSetName = "WindowsAccount", HelpMessage = "Security Mapping Windows Account")]
[ValidateNotNullOrEmptyAttribute]
public NTAccount WindowsAccount { get; set; }
<ParameterAttribute(Position := 1, Mandatory := true, ValueFromPipeline := false, 
	ParameterSetName := "WindowsAccount", HelpMessage := "Security Mapping Windows Account")>
<ValidateNotNullOrEmptyAttribute>
Public Property WindowsAccount As NTAccount
	Get
	Set

Dim instance As AddAFSecurityMapping
Dim value As NTAccount

value = instance.WindowsAccount

instance.WindowsAccount = value
public:
[ParameterAttribute(Position = 1, Mandatory = true, ValueFromPipeline = false, 
	ParameterSetName = L"WindowsAccount", HelpMessage = L"Security Mapping Windows Account")]
[ValidateNotNullOrEmptyAttribute]
property NTAccount^ WindowsAccount {
	NTAccount^ get ();
	void set (NTAccount^ value);
}
[<ParameterAttribute(Position = 1, Mandatory = true, ValueFromPipeline = false, 
	ParameterSetName = "WindowsAccount", HelpMessage = "Security Mapping Windows Account")>]
[<ValidateNotNullOrEmptyAttribute>]
member WindowsAccount : NTAccount with get, set

Property Value

Type: NTAccount

See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in