GPDomain.CreateStarterGpo Method (String)
Creates a new Starter Group Policy object (GPO) with the specified display name in the domain.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)
Syntax
public StarterGpo CreateStarterGpo(
string starterGpoDisplayName
)
public:
StarterGpo^ CreateStarterGpo(
String^ starterGpoDisplayName
)
member CreateStarterGpo :
starterGpoDisplayName:string -> StarterGpo
Public Function CreateStarterGpo (
starterGpoDisplayName As String
) As StarterGpo
Parameters
starterGpoDisplayName
Type: System.StringThe display name for the new Starter GPO.
Return Value
Type: Microsoft.GroupPolicy.StarterGpo
Returns StarterGpo. The new Starter GPO.
Exceptions
Exception | Condition |
---|---|
ArgumentException | starterGpoDisplayName is an empty string (“”). |
ArgumentNullException | starterGpoDisplayName is null. |
See Also
GPDomain Class
Microsoft.GroupPolicy Namespace
Return to top