Showing posts with label OS. Show all posts
Showing posts with label OS. Show all posts

Tuesday, September 6, 2011

Managing AD objects

3 Ways to Move AD Objects
1. Open ADUC and drag and drop object
2. Context Menu - right click
3. DSMove - Command line

Example
To move user tunger from the users container to the sales users ou under corp users ou here is the command
dsmove "cn=tunger,cn=users,dc=tonyunger,dc=com" -newparent "ou=sales users,ou=corp users,dc=tonyunger,dc=com"

3 Ways to Delete Objects
1. Highlight object and hit delete button on keyboard
2. context Menu - right click and choose delete
3. DSRM - command line

Delete User:
DSRM "cn=tunger,cn=users,dc=tonyunger,dc=com"
Delete OU:

Remove an ou named sales users and all objects under the ou
DSRM -subtree - nopromp -c "ou=sales users,ou=corp users,dc=tonyunger,dc=com"
To remove all objects under an OU named sales, but leave the ou intact
DSRM - subtree -exclude -noprompt -c "ou=sales users,ou=corp users,dc=tonyunger,dc=com"

Add a user
dsadd user "cn=tunger,cn=users,dc=tonyunger,dc=com" -fn Tony -ln Unger -pwd 1234 -mustchpwd yes

Monday, September 5, 2011

Active Directory Service command-line tools

High overview

dsadd adding objects.
dsget displaying objects.
dsmod modifying objects.
dsmove moving objects.
dsquery finding objects matching search criteria.
dsrm deleting objects.

Friday, August 26, 2011

Performance log

http://technet.microsoft.com/en-us/library/cc737657(WS.10).aspx

Monitoring performance from the command line
Updated: January 21, 2005

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Monitoring performance from the command line

In addition to using the Performance graphical interface, you can use the following command line utilities:

Logman manages and schedules performance counter and event trace log collections on local and remote systems.

Perfmon allows you to open a Performance console configured with the System Monitor ActiveX control and Performance Logs and Alerts Service.

Relog extracts performance counters from performance counter logs into other formats, such as text file (tab delimited), text file (comma delimited), binary-BIN, or SQL.

Tracerpt processes event trace logs or real-time data from instrumented event trace providers and allows you to generate trace analysis reports and CSV (comma-delimited) files for the events generated.

Typeperf writes performance counter data to the command window, or to a supported log file format.

Lodctr registers new Performance counter names and Explain text for a service or device driver, and saves and restores counter settings and Explain text.

Unlodctr removes Performance counter names and Explain text for a service or device driver from the system registry.

For more information about incorporating these Performance commands into your Windows Management Instrumentation (WMI), see "Part One: Operating System Performance" in the System Performance and Troubleshooting Guide, available at the Microsoft Windows Resource Kits Web site.

For information about other command-line utilities, see Command-line reference. For more information about manageability, see Management Strategies and Tools.

Powershell: Microsoft Graph to add new roles to application registration

PowerShell Script Bulk add new roles to application registration in azure. Update $roles with ,Us...