text stringlengths 0 4.23k |
|---|
To retrieve RSoP data for only the remote user, maindom\hiropln with the password p@ssW23, who's on the computer srvmain, type: |
gpresult /s srvmain /u maindom\hiropln /p p@ssW23 /user targetusername /scope user /r |
To save all available information about Group Policy to a file named, policy.txt, for only the remote user maindom\hiropln with the password p@ssW23, on the computer srvmain, type: |
gpresult /s srvmain /u maindom\hiropln /p p@ssW23 /user targetusername /z > policy.txt |
To display RSoP data for the logged on user, maindom\hiropln with the password p@ssW23, for the computer srvmain, type: |
gpresult /s srvmain /u maindom\hiropln /p p@ssW23 /r |
gpt |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
On basic GUID partition table (gpt) disks, this command assigns the gpt attribute(s) to the partition with focus. Gpt partition attributes give additional information about the use of the partition. Some attributes are specific to the partition type GUID. |
You must choose a basic gpt partition for this operation to succeed. Use the select partition command to select a basic gpt partition and shift the focus to it. |
Caution |
Changing the gpt attributes might cause your basic data volumes to fail to be assigned drive letters, or to prevent the file system from mounting. We strongly recommend that you don't change the gpt attributes unless you're an original equipment manufacturer (OEM) or an IT professional who's experienced with gpt disks. |
Syntax |
gpt attributes=<n> |
Parameters |
Parameter |
Description |
attributes=<n> |
Specifies the value for the attribute that you want to apply to the partition with focus. The gpt attribute field is a 64-bit field that contains two subfields. The higher field is interpreted only in the context of the partition ID, while the lower field is common to all partition IDs. Accepted values include:0x000000... |
<n> |
For more information about these attributes, see the attributes section at create_PARTITION_PARAMETERS Structure. |
Remarks |
Examples |
To prevent the computer from automatically assigning a drive letter to the partition with focus, while moving a gpt disk, type: |
gpt attributes=0x8000000000000000 |
gpupdate |
Updates Group Policy settings. |
Syntax |
gpupdate [/target:{computer | user}] [/force] [/wait:<VALUE>] [/logoff] [/boot] [/sync] [/?] |
Parameters |
Parameter |
Description |
/target:{computer|user} |
Specifies that only User or only Computer policy settings are updated. By default, both User and Computer policy settings are updated. |
/force |
Reapplies all policy settings. By default, only policy settings that have changed are applied. |
/wait:<VALUE> |
Sets the number of seconds to wait for policy processing to finish before returning to the command prompt. When the time limit is exceeded, the command prompt appears, but policy processing continues. The default value is 600 seconds. The value 0 means not to wait. The value -1 means to wait indefinitely.In a script, b... |
/logoff |
Causes a logoff after the Group Policy settings are updated. This is required for those Group Policy client-side extensions that do not process policy on a background update cycle but do process policy when a user logs on. Examples include user-targeted Software Installation and Folder Redirection. This option has no e... |
/boot |
Causes a computer restart after the Group Policy settings are applied. This is required for those Group Policy client-side extensions that do not process policy on a background update cycle but do process policy at computer startup. Examples include computer-targeted Software Installation. This option has no effect if ... |
/sync |
Causes the next foreground policy application to be done synchronously. Foreground policy is applied at computer boot and user logon. You can specify this for the user, computer, or both, by using the /target parameter. The /force and /wait parameters are ignored if you specify them. |
/? |
Displays Help at the command prompt. |
{computer|user} |
<VALUE> |
In a script, by using this command with a time limit specified, you can run gpupdate and continue with commands that do not depend upon the completion of gpupdate. Alternatively, you can use this command with no time limit specified to let gpupdate finish running before other commands that depend on it are run. |
Examples |
To force a background update of all Group Policy settings, regardless of whether they've changed, type: |
gpupdate /force |
graftabl |
Enables Windows operating systems to display an extended character set in graphics mode. If used without parameters, graftabl displays the previous and the current code page. |
Important |
The graftabl command is a legacy command, and therefore outdated. It is normally not installed in modern Windows versions. Please see the chcp page for codepage handling. |
Syntax |
graftabl <codepage> |
graftabl /status |
Parameters |
Parameter |
Description |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.