@@ -45,16 +45,16 @@ Remove-GPLink -Name "MyGPO" -Target "OU=MyOU,dc=contoso,dc=com"
45
45
```
46
46
47
47
``` Output
48
- DisplayName : MyGPO
49
- DomainName : contoso.com
50
- Owner : CONTOSO\Domain Admins
51
- Id : 375865b2-3b5f-480f-8f56-2a994ea6e725
52
- GpoStatus : AllSettingsEnabled
53
- Description :
54
- CreationTime : 2/26/2009 11:28:08 PM
55
- ModificationTime : 3/5/2009 3:36:34 PM
56
- UserVersion : AD Version: 0, SysVol Version: 0
57
- ComputerVersion : AD Version: 1, SysVol Version: 1
48
+ DisplayName : MyGPO
49
+ DomainName : contoso.com
50
+ Owner : CONTOSO\Domain Admins
51
+ Id : 375865b2-3b5f-480f-8f56-2a994ea6e725
52
+ GpoStatus : AllSettingsEnabled
53
+ Description :
54
+ CreationTime : 2/26/2009 11:28:08 PM
55
+ ModificationTime : 3/5/2009 3:36:34 PM
56
+ UserVersion : AD Version: 0, SysVol Version: 0
57
+ ComputerVersion : AD Version: 1, SysVol Version: 1
58
58
WmiFilter :
59
59
```
60
60
@@ -76,28 +76,28 @@ This command removes the link between the GPO named MyGPO and the default site.
76
76
```
77
77
78
78
``` Output
79
- DisplayName : TestGPO-3
80
- DomainName : contoso.com
81
- Owner : CONTOSO\Domain Admins
82
- Id : d02126d4-82e8-4e87-b4a0-2d44b6891411
83
- GpoStatus : AllSettingsEnabled
84
- Description :
85
- CreationTime : 2/27/2009 2:59:51 PM
86
- ModificationTime : 3/5/2009 3:36:37 PM
87
- UserVersion : AD Version: 13, SysVol Version: 13
88
- ComputerVersion : AD Version: 0, SysVol Version: 0
89
- WmiFilter :
90
-
91
- DisplayName : TestGPO-2
92
- DomainName : contoso.com
93
- Owner : CONTOSO\Domain Admins
94
- Id : 375865b2-3b5f-480f-8f56-2a994ea6e725
95
- GpoStatus : AllSettingsEnabled
96
- Description :
97
- CreationTime : 2/26/2009 11:28:08 PM
98
- ModificationTime : 3/5/2009 3:36:34 PM
99
- UserVersion : AD Version: 0, SysVol Version: 0
100
- ComputerVersion : AD Version: 1, SysVol Version: 1
79
+ DisplayName : TestGPO-3
80
+ DomainName : contoso.com
81
+ Owner : CONTOSO\Domain Admins
82
+ Id : d02126d4-82e8-4e87-b4a0-2d44b6891411
83
+ GpoStatus : AllSettingsEnabled
84
+ Description :
85
+ CreationTime : 2/27/2009 2:59:51 PM
86
+ ModificationTime : 3/5/2009 3:36:37 PM
87
+ UserVersion : AD Version: 13, SysVol Version: 13
88
+ ComputerVersion : AD Version: 0, SysVol Version: 0
89
+ WmiFilter :
90
+
91
+ DisplayName : TestGPO-2
92
+ DomainName : contoso.com
93
+ Owner : CONTOSO\Domain Admins
94
+ Id : 375865b2-3b5f-480f-8f56-2a994ea6e725
95
+ GpoStatus : AllSettingsEnabled
96
+ Description :
97
+ CreationTime : 2/26/2009 11:28:08 PM
98
+ ModificationTime : 3/5/2009 3:36:34 PM
99
+ UserVersion : AD Version: 0, SysVol Version: 0
100
+ ComputerVersion : AD Version: 1, SysVol Version: 1
101
101
WmiFilter :
102
102
```
103
103
@@ -111,22 +111,6 @@ inherited from higher-level containers are not included. This collection is pipe
111
111
112
112
## PARAMETERS
113
113
114
- ### -Confirm
115
-
116
- Prompts you for confirmation before running the cmdlet.
117
-
118
- ``` yaml
119
- Type : System.Management.Automation.SwitchParameter
120
- Parameter Sets : (All)
121
- Aliases : cf
122
-
123
- Required : False
124
- Position : Named
125
- Default value : False
126
- Accept pipeline input : False
127
- Accept wildcard characters : False
128
- ` ` `
129
-
130
114
### -Domain
131
115
132
116
Specifies the domain for this cmdlet. You must specify the fully qualified domain name (FQDN) of the
@@ -139,9 +123,9 @@ For the `Remove-GPLink` cmdlet:
139
123
- The Active Directory container (site, domain, or OU) that is linked must exist in a domain that
140
124
has a trust relationship with this domain.
141
125
142
- Note : To specify a domain to link to, use the Target parameter.
126
+ Note: To specify a domain to link to, use the ** Target** parameter.
143
127
144
- If you do not specify the Domain parameter, the domain of the user that is running the current
128
+ If you do not specify the ** Domain** parameter, the domain of the user that is running the current
145
129
session is used. If the cmdlet is being run from a computer startup or shutdown script, the domain
146
130
of the computer is used. For more information, see the Notes section in the full Help.
147
131
@@ -167,7 +151,7 @@ Accept wildcard characters: False
167
151
### -Guid
168
152
169
153
Specifies the GPO for which to remove the link by its globally unique identifier (GUID).
170
- The GUID uniquely identifies the GPO.
154
+ The ` GUID` uniquely identifies the GPO.
171
155
172
156
You can also refer to the **Guid** parameter by its built-in aliases, **id** and **gpoid**. For more
173
157
information, see [about_Aliases](/powershell/module/microsoft.powershell.core/about/about_aliases).
@@ -212,8 +196,8 @@ Accept wildcard characters: False
212
196
Specifies the name of the domain controller that this cmdlet contacts to complete the operation. You
213
197
can specify either the fully qualified domain name (FQDN) or the host name.
214
198
215
- If you do not specify the name by using the **Server** parameter, the primary domain controller
216
- (PDC) emulator is contacted.
199
+ If you do not specify the name using the **Server** parameter, the primary domain controller (PDC)
200
+ emulator is contacted.
217
201
218
202
You can also refer to the **Server** parameter by its built-in alias, **DC**. For more information,
219
203
see [about_Aliases](/powershell/module/microsoft.powershell.core/about/about_aliases).
@@ -239,7 +223,7 @@ or OU from which to remove the link. For instance, for the `MyOU` organizational
239
223
` ` ` yaml
240
224
Type: System.String
241
225
Parameter Sets: (All)
242
- Aliases:
226
+ Aliases:
243
227
244
228
Required: True
245
229
Position: Named
@@ -248,6 +232,22 @@ Accept pipeline input: True (ByPropertyName)
248
232
Accept wildcard characters: False
249
233
` ` `
250
234
235
+ # ## -Confirm
236
+
237
+ Prompts you for confirmation before running the cmdlet.
238
+
239
+ ` ` ` yaml
240
+ Type: System.Management.Automation.SwitchParameter
241
+ Parameter Sets: (All)
242
+ Aliases: cf
243
+
244
+ Required: False
245
+ Position: Named
246
+ Default value: False
247
+ Accept pipeline input: False
248
+ Accept wildcard characters: False
249
+ ` ` `
250
+
251
251
# ## -WhatIf
252
252
253
253
Shows what would happen if the cmdlet runs. The cmdlet is not run.
@@ -276,7 +276,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
276
276
# # INPUTS
277
277
278
278
# ## Microsoft.GroupPolicy.GpoLink
279
- ~~~~
279
+
280
280
This cmdlet accepts an object that represents the link between a GPO and a site, domain, or OU.
281
281
282
282
# # OUTPUTS
@@ -292,4 +292,3 @@ This cmdlet returns the GPO for which the link has been removed.
292
292
[New-GPLink](./New-GPLink.md)
293
293
294
294
[Set-GPLink](./Set-GPLink.md)
295
-
0 commit comments