ExchMbx is a command-line utility that lets you create user mailboxes, mail enable an AD object, move mailboxes and delete mailboxes among other tasks that can be done using the GUI.

Ex1:
ExchMbx -b cn=joe,dc=joe,dc=net -cr srv1:sg1:db2
Create mailbox for joe in Server srv1, storage group sg1, database db2.

Ex2:
ExchMbx -b cn=joe,dc=joe,dc=net -move srv1:sg1:db2
Ditto ex1 but move.

Ex3:
ExchMbx -b cn=joe,cn=users,dc=joe,dc=net -clear
Clear Exchange attrs for joe, will delete mailbox or
clean email addresses of mailenabled objects.

Ex4:
ExchMbx -b cn=gr1,cn=users,dc=joe,dc=net -me
Mail Enable group gr1

Ex5:
ExchMbx -b cn=con1,cn=users,dc=joe,dc=net -me joe@joeware.net
Mail Enable contact con1 with email address joe@joeware.net

ExchMbx can be obtained from joeware.net along with many other useful tools.

[examples sourced from the ExchMbx Usage page]

 

Windows Administrators can change the power configuration policy from the command line using the powercfg.exe ultility present on all Windows XP/2003 systems.

To list the current policies
POWERCFG /list

To change the active policy
POWERCFG /SETACTIVE "policy_name" (replace policy_name with a real policy name)

The following example sets the “Home/Office Desk” profile to the given values.
POWERCFG /CHANGE "Home/Office Desk" /monitor-timeout-ac 15
POWERCFG /CHANGE "Home/Office Desk" /monitor-timeout-dc 10
POWERCFG /CHANGE "Home/Office Desk" /disk-timeout-ac 20
POWERCFG /CHANGE "Home/Office Desk" /disk-timeout-dc 15
POWERCFG /CHANGE "Home/Office Desk" /standby-timeout-ac 25
POWERCFG /CHANGE "Home/Office Desk" /standby-timeout-dc 20
POWERCFG /CHANGE "Home/Office Desk" /hibernate-timeout-ac 0
POWERCFG /CHANGE "Home/Office Desk" /hibernate-timeout-dc 0
POWERCFG /CHANGE "Home/Office Desk" /processor-throttle-ac ADAPTIVE
POWERCFG /CHANGE "Home/Office Desk" /processor-throttle-dc ADAPTIVE

You can also change profiles being used.
POWERCFG /SETACTIVE "Always On"

To create a new profile
POWERCFG /CREATE "New Policy"
POWERCFG /CHANGE "New Policy" /monitor-timeout-ac 15
POWERCFG /CHANGE "New Policy" /monitor-timeout-dc 10
...
...
POWERCFG /CHANGE "New Policy" /processor-throttle-ac ADAPTIVE
POWERCFG /CHANGE "New Policy" /processor-throttle-dc ADAPTIVE
POWERCFG /SETACTIVE "New Policy"

Links
How to use Powercfg.exe in Windows Server 2003
Powercfg Command-Line Options
Using Powerconfig.exe in a logon script to configure power management settings

© 2012 !NSFW Suffusion theme by Sayontan Sinha