NewGpoCommand.Name Property

 

Gets and sets the value of the Name parameter of the New-Gpo cmdlet.

Namespace:   Microsoft.GroupPolicy.Commands
Assembly:  Microsoft.GroupPolicy.Commands (in Microsoft.GroupPolicy.Commands.dll)

Syntax

[ParameterAttribute(Mandatory = true, ParameterSetName = "New", 
    Position = 0)]
[ParameterAttribute(Mandatory = true, ParameterSetName = "NewStarterGUID", 
    Position = 0)]
[ParameterAttribute(Mandatory = true, ParameterSetName = "NewStarterName", 
    Position = 0)]
[AliasAttribute(new string[] { ... })]
[ValidateGpoNameAttribute]
public string Name { get; set; }
public:
[ParameterAttribute(Mandatory = true, ParameterSetName = "New", 
    Position = 0)]
[ParameterAttribute(Mandatory = true, ParameterSetName = "NewStarterGUID", 
    Position = 0)]
[ParameterAttribute(Mandatory = true, ParameterSetName = "NewStarterName", 
    Position = 0)]
[AliasAttribute(new array<String^>^ { ... })]
[ValidateGpoNameAttribute]
property String^ Name {
    String^ get();
    void set(String^ value);
}
[<ParameterAttribute(Mandatory = true, ParameterSetName = "New",
    Position = 0)>]
[<ParameterAttribute(Mandatory = true, ParameterSetName = "NewStarterGUID",
    Position = 0)>]
[<ParameterAttribute(Mandatory = true, ParameterSetName = "NewStarterName",
    Position = 0)>]
[<AliasAttribute([| ... |])>]
[<ValidateGpoNameAttribute>]
member Name : string with get, set
<ParameterAttribute(Mandatory := True, ParameterSetName := "New",
    Position := 0)>
<ParameterAttribute(Mandatory := True, ParameterSetName := "NewStarterGUID",
    Position := 0)>
<ParameterAttribute(Mandatory := True, ParameterSetName := "NewStarterName",
    Position := 0)>
<AliasAttribute(New String() { ... })>
<ValidateGpoNameAttribute>
Public Property Name As String

Property Value

Type: System.String

Returns String.

Remarks

This topic is included in this SDK for completeness only.For more information about this cmdlet, see New-Gpo in the Microsoft TechNet library.

For Help at the command line, type:

get-help new-gpo

See Also

NewGpoCommand Class
Microsoft.GroupPolicy.Commands Namespace

Return to top