Saturday, November 27, 2010

COMMAND PROMPT FOR SYSTEM ADMINISTRATORS

Here I post something for the System Administrators, a set of most useful commands those can be executed from a Command Prompt.

In a Windows Server Domain, it become inevitable to make a change in certain client's Policy or update the Group Policy of a single PC. Administrators always prefer the Snap-in management Method... but here let's do it in old school method.
TO ACCESS THE POLICY SNAP IN OF REMOTE PC:-
Open Command Prompt
gpedit.msc /gpcomputer:
Here you may address the PC either by its IP Address or by its Domain Name
for example-
gpedit.msc /gpcomputer: 192.168.1.75
OR
gpedit.msc /gpcomputer: adminspc

The Group Policy Snap In of the specified PC opens up. You may amend as required and close the SNAP IN.

Now to make the change effective immediately-
GPUpdate /target: User /force /wait
The Wait indicates the time wait (default is 600 second) before applying the policy.
Example
GPUpdate /target: adminpc User /force /wait:2
Here wait:2 is waiting 2 seconds.

You may delve into much more- On Command Prompt, try
Gpedit /?

No comments:

Post a Comment