You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This command backs up the GPO with the specified GUID in the contoso.com domain to the \\\\Server1\GpoBackups directory.
69
-
The domain controller at DC1.contoso.com is contacted to complete the operation.
78
+
This command backs up the GPO with the specified **GUID** in the `contoso.com` domain to the
79
+
`\\Server1\GpoBackups` directory. The domain controller at `DC1` is contacted to complete
80
+
the operation.
70
81
71
-
If the domain of the user running the session (or, for startup and shutdown scripts, the computer) is different from the contoso.com domain, a trust must exist between the two domains or the command fails.
82
+
If the domain of the user running the session (or, for startup and shutdown scripts, the computer)
83
+
is different from the `contoso.com` domain, a trust must exist between the two domains or the
84
+
command fails.
72
85
73
86
### Example 3: Backup all GPOs in the domain of the user that is running the session
This command backs up all the GPOs in the domain of the user that is running the session (or, for startup and shutdown scripts, the computer) to the \\\\Server1\GpoBackups directory.
92
+
This command backs up all the GPOs in the domain of the user that is running the session (or, for
93
+
startup and shutdown scripts, the computer) to the `\\Server1\GpoBackups` directory.
79
94
80
95
## PARAMETERS
81
96
82
97
### -All
98
+
83
99
Specifies that all the GPOs in the domain are backed up.
You must specify the fully qualified domain name (FQDN) of the domain (for example: sales.contoso.com).
147
+
148
+
Specifies the domain for this cmdlet. You must specify the fully qualified domain name (FQDN) of the
149
+
domain (for example: sales.contoso.com).
131
150
132
151
For the **Backup-GPO** cmdlet, the GPO to back up must exist in this domain.
133
152
134
-
If you do not specify the *Domain* parameter, the domain of the user that is running the current session is used.
135
-
(If the cmdlet is being run from a computer startup or shutdown script, the domain of the computer is used.) For more information, see the Notes section in the full Help.
153
+
If you do not specify the **Domain** parameter, the domain of the user that is running the current
154
+
session is used. (If the cmdlet is being run from a computer startup or shutdown script, the domain
155
+
of the computer is used.) For more information, see the Notes section in the full Help.
136
156
137
-
If you specify a domain that is different from the domain of the user that is running the current session (or, for a startup or shutdown script, the computer), a trust must exist between that domain and the domain of the user (or the computer).
157
+
If you specify a domain that is different from the domain of the user that is running the current
158
+
session (or, for a startup or shutdown script, the computer), a trust must exist between that domain
159
+
and the domain of the user (or the computer).
138
160
139
-
You can also refer to Domain by its built-in alias, domainname.
140
-
For more information, see about_Aliases.
161
+
You can also refer to Domain by its built-in alias, domain name. For more information, see
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
272
+
273
+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
Collections that contain GPOs from different domains are not supported.
252
284
253
285
## OUTPUTS
254
286
255
287
### Microsoft.GroupPolicy.GpoBackup
288
+
256
289
This cmdlet returns an object that represents the file that holds the settings of the backed-up GPO.
257
290
258
291
## NOTES
259
-
* You can use the *Domain* parameter to explicitly specify the domain for this cmdlet.
260
-
261
-
If you do not explicitly specify the domain, the cmdlet uses a default domain.
262
-
The default domain is the domain that is used to access network resources by the security context under which the current session is running.
263
-
This domain is typically the domain of the user that is running the session.
264
-
For instance, the domain of the user who started the session by opening Windows PowerShell from the Program Files menu, or the domain of a user that is specified in a runas command.
265
-
However, computer startup and shutdown scripts run under the context of the LocalSystem account.
266
-
The LocalSystem account is a built-in local account, and it accesses network resources under the context of the computer account.
267
-
Therefore, when this cmdlet is run from a startup or shutdown script, the default domain is the domain to which the computer is joined.
292
+
293
+
* You can use the **Domain** parameter to explicitly specify the domain for this cmdlet.
294
+
295
+
If you do not explicitly specify the domain, the cmdlet uses a default domain. The default domain
296
+
is the domain that is used to access network resources by the security context under which the
297
+
current session is running. This domain is typically the domain of the user that is running the
298
+
session. For instance, the domain of the user who started the session by opening Windows
299
+
PowerShell from the Program Files menu, or the domain of a user that is specified in a runas
300
+
command. However, computer startup and shutdown scripts run under the context of the LocalSystem
301
+
account. The LocalSystem account is a built-in local account, and it accesses network resources
302
+
under the context of the computer account. Therefore, when this cmdlet is run from a startup or
303
+
shutdown script, the default domain is the domain to which the computer is joined.
0 commit comments