Window Technical Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Monday, 13 May 2013

Windows Server Command Syntax

Posted on 01:59 by Unknown

ipconfig

USAGE:
ipconfig [/allcompartments] [/? | /all |
/renew [adapter] | /release [adapter] |
/renew6 [adapter] | /release6 [adapter] |
/flushdns | /displaydns | /registerdns |
/showclassid adapter |
/setclassid adapter [classid] |
/showclassid6 adapter |
/setclassid6 adapter [classid] ]
where
adapter             Connection name
(wildcard characters * and ? allowed, see examples)
Options:
/?               Display this help message
/all             Display full configuration information.
/release         Release the IPv4 address for the specified adapter.
/release6        Release the IPv6 address for the specified adapter.
/renew           Renew the IPv4 address for the specified adapter.
/renew6          Renew the IPv6 address for the specified adapter.
/flushdns        Purges the DNS Resolver cache.
/registerdns     Refreshes all DHCP leases and re-registers DNS names
/displaydns      Display the contents of the DNS Resolver Cache.
/showclassid     Displays all the dhcp class IDs allowed for adapter.
/setclassid      Modifies the dhcp class id.
/showclassid6    Displays all the IPv6 DHCP class IDs allowed for adapter.
/setclassid6     Modifies the IPv6 DHCP class id. The default is to display only the IP address, subnet mask and
default gateway for each adapter bound to TCP/IP.
For Release and Renew, if no adapter name is specified, then the IP address
leases for all adapters bound to TCP/IP will be released or renewed.
For Setclassid and Setclassid6, if no ClassId is specified, then the ClassId is removed.
Examples:
> ipconfig                       … Show information
> ipconfig /all                  … Show detailed information
> ipconfig /renew                … renew all adapters
> ipconfig /renew EL*            … renew any connection that has its
name starting with EL
> ipconfig /release *Con*        … release all matching connections,
eg. “Local Area Connection 1″ or
“Local Area Connection 2″
> ipconfig /allcompartments      … Show information about all
compartments
> ipconfig /allcompartments /all … Show detailed information about all
compartments


dsadd user


Description:  Adds a user to the directory.


Syntax:  dsadd user <UserDN> [-samid <SAMName>] [-upn <UPN>] [-fn <FirstName>]
        [-mi <Initial>] [-ln <LastName>] [-display <DisplayName>]
        [-empid <EmployeeID>] [-pwd {<Password> | *}] [-desc <Description>]
        [-memberof <Group ...>] [-office <Office>] [-tel <Phone#>]
        [-email <Email>] [-hometel <HomePhone#>] [-pager <Pager#>]
        [-mobile <CellPhone#>] [-fax <Fax#>] [-iptel <IPPhone#>]
        [-webpg <WebPage>] [-title <Title>] [-dept <Department>]
        [-company <Company>] [-mgr <Manager>] [-hmdir <HomeDir>]
        [-hmdrv <DriveLtr:>] [-profile <ProfilePath>] [-loscr <ScriptPath>]
        [-mustchpwd {yes | no}] [-canchpwd {yes | no}]
        [-reversiblepwd {yes | no}] [-pwdneverexpires {yes | no}]
        [-acctexpires <NumDays>] [-disabled {yes | no}]
        [{-s <Server> | -d <Domain>}] [-u <UserName>]
        [-p {<Password> | *}] [-q] [{-uc | -uco | -uci}]
        [-fnp <FirstNamePhonetic>] [-lnp <LastNamePhonetic>]
        [-displayp <DisplayNamePhonetic>]
Parameters:
Value                   Description
<UserDN>                Required. Distinguished name (DN) of user to add.
   If the target object is omitted, it will be taken
   from standard input (stdin).
-samid <SAMName>        Set the SAM account name of user to <SAMName>.
   If not specified, dsadd will attempt
   to create SAM account name using up to
   the first 20 characters from the
   common name (CN) value of <UserDN>.
-upn <UPN>              Set the upn value to <UPN>.
-fn <FirstName>         Set user first name to <FirstName>.
-fnp <FirstNamePhonetic>
                        Set user first name phonetic to <FirstNamePhonetic>.
-mi <Initial>           Set user middle initial to <Initial>.
-ln <LastName>          Set user last name to <LastName>.
-lnp <LastNamePhonetic> Set user last name phonetic to <LastNamePhonetic>.
-display <DisplayName>  Set user display name to <DisplayName>.
-displayp <DisplayNamePhonetic>
                        Set user display name phonetic to
                        <DisplayNamePhonetic>.
-empid <EmployeeID>     Set user employee ID to <EmployeeID>.
-pwd {<Password> | *}   Set user password to <Password>. If *, then you are
                        prompted for a password.
-desc <Description>     Set user description to <Description>.
-memberof <Group …>   Make user a member of one or more groups <Group …>
-office <Office>        Set user office location to <Office>.
-tel <Phone#>           Set user telephone# to <Phone#>.
-email <Email>          Set user e-mail address to <Email>.
-hometel <HomePhone#>   Set user home phone# to <HomePhone#>.
-pager <Pager#>         Set user pager# to <Pager#>.
-mobile <CellPhone#>    Set user mobile# to <CellPhone#>.
-fax <Fax#>             Set user fax# to <Fax#>.
-iptel <IPPhone#>       Set user IP phone# to <IPPhone#>.
-webpg <WebPage>        Set user web page URL to <WebPage>.
-title <Title>          Set user title to <Title>.
-dept <Department>      Set user department to <Department>.
-company <Company>      Set user company info to <Company>.
-mgr <Manager>          Set user’s manager to <Manager> (format is DN).
-hmdir <HomeDir>        Set user home directory to <HomeDir>. If this is
                        UNC path, then a drive letter that will be mapped to
                        this path must also be specified through -hmdrv.
-hmdrv <DriveLtr:>      Set user home drive letter to <DriveLtr:>
-profile <ProfilePath>  Set user’s profile path to <ProfilePath>.
-loscr <ScriptPath>     Set user’s logon script path to <ScriptPath>.
-mustchpwd {yes | no}   User must change password at next logon or not.
                        Default: no.
-canchpwd {yes | no}    User can change password or not. This should be
                        “yes” if the -mustchpwd is “yes”. Default: yes.
-reversiblepwd {yes | no}
                        Store user password using reversible encryption or
                        not. Default: no.
-pwdneverexpires {yes | no}
                        User password never expires or not. Default: no.
-acctexpires <NumDays>  Set user account to expire in <NumDays> days from
                        today. A value of 0 implies account expires
                        at the end of today; a positive value
                        implies the account expires in the future;
                        a negative value implies the account already expired
                        and sets an expiration date in the past;
                        the string value “never” implies that the
                        account never expires.
-disabled {yes | no}    User account is disabled or not. Default: no.
{-s <Server> | -d <Domain>}
                        -s <Server> connects to the AD DC/LDS instance
                        with name <Server>.
                        -d <Domain> connects to an AD DC in domain <Domain>.
                        Default: an AD DC in the logon domain.
-u <UserName>           Connect as <UserName>. Default: the logged in user.
                        User name can be: user name, domainuser name,
                        or user principal name (UPN).
-p {<Password> | *}     Password for the user <UserName>. If * is entered,
                        then you are prompted for a password.
-q                      Quiet mode: suppress all output to standard output.
{-uc | -uco | -uci} -uc Specifies that input from or output to pipe is
   formatted in Unicode.
   -uco Specifies that output to pipe or file is
   formatted in Unicode.
   -uci Specifies that input from pipe or file is
   formatted in Unicode. Remarks:
If you do not supply a target object at the command prompt, the target
object is obtained from standard input (stdin). Stdin data can be
accepted from the keyboard, a redirected file, or as piped output from
another command. To mark the end of stdin data from the keyboard or
in a redirected file, use Control+Z, for End of File (EOF).
If a value that you supply contains spaces, use quotation marks
around the text (for example, “CN=John Smith,CN=Users,DC=microsoft,DC=com”).
If you enter multiple values, the values must be separated by spaces
(for example, a list of distinguished names).
The special token $username$ (case insensitive) may be used to place the SAM
account name in the value of a parameter. For example, if the target user DN
is CN=Jane Doe,CN=users,CN=microsoft,CN=com and the SAM account name
attribute is “janed,” the -hmdir parameter can have
the following substitution:
-hmdir users$username$home
The value of the -hmdir parameter is modified to the following value:
- hmdir usersjanedhome
See also:
dsadd computer /? – help for adding a computer to the directory.
dsadd contact /? – help for adding a contact to the directory.
dsadd group /? – help for adding a group to the directory.
dsadd ou /? – help for adding an organizational unit to the directory.
dsadd user /? – help for adding a user to the directory.
dsadd quota /? – help for adding a quota to the directory.
Directory Service command-line tools help:
dsadd /? – help for adding objects.
dsget /? – help for displaying objects.
dsmod /? – help for modifying objects.
dsmove /? – help for moving objects.
dsquery /? – help for finding objects matching search criteria.
dsrm /? – help for deleting objects

 

 

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Block IP address with Windows Firewall 2008
    If you ever feel that someone may be trying to break into your server or know an IP address that you want to block from accessing ...
  • Windows Server 2008 Command-line Tool
    On an installed and running system the Windows command-prompt window may be accessed from the main panel of the Start menu. The command-pro...
  • Creating a Capture Image in WDS
    How to Create a Capture Image by Using WDS Console " A capture image is created from an existing boot image. You will create a new ca...
  • Configuring Windows Server 2008 Remote Desktop Administration
    Windows Server 2008 is, as the name suggests, a server operating system. In the real world this means that systems running Windows Server ...
  • SMTP Server Configure on Windows Server 2008 R2
    Installing the SMTP feature 1 . Click Start > Run and then enter servermanager.msc in the Open dialogue box then click OK to load Se...
  • Windows Deployment Services Configure in Windows Server 2008 r2
    How to use Windows Deployment Service  1.1 Introduction: Windows Deployment Service (WDS) is an enhanced and redesigned version of Remote I...
  • How to configure ftp server in windows
      FTP Server using IIS 7.0 and Windows Server 2008 Open Server Manager, go to Roles and click “Add Roles” In the Add Role Wizard, select Web...
  • configure Active Directory in Windows Server 2008 R2 Part-2
    Configure Active Directory At the Server Management screen you should now see that you have 1 role installed.  The Active Directory D...
  • VPN connection Configuring on server 2008 R2 using RRAS and configuring clients
    A virtual private network (VPN) is a network that uses a public telecommunication infrastructure, such as the Internet, to provide remote of...
  • FTP Server and its Commands
    What is FTP? The FTP ( F ile T ransfer P rotocol) utility program is commonly used for copying files to and from other computers. These co...

Blog Archive

  • ▼  2013 (91)
    • ►  December (2)
    • ►  November (10)
    • ►  October (5)
    • ►  September (15)
    • ►  August (26)
    • ►  July (1)
    • ►  June (5)
    • ▼  May (14)
      • Windows Server 2008 Course details Syllabus | Wind...
      • Server Maintenance
      • Windows Server 2008 Active Directory Interview Que...
      • Windows Server 2008 Active Directory Interview Que...
      • RAID 2, RAID 3, RAID 4, RAID 6 Explanation
      • RAID 0, RAID 1, RAID 5, RAID 10 Explanation
      • Windows Deployment Services Configure in Windows S...
      • List of Windows Snap-ins (.msc) and Applets (.cpl)
      • Windows Server Command Syntax
      • All Keyboard Shortcuts of Windows
      • Adding a Windows 8 Computer to a Domain
      • Configuring DNS Server for Secure Only Dynamic Upd...
      • Adding Host (A) DNS Records in Windows Server 2008 R2
      • Installing Microsoft Windows Server 2008 R2
    • ►  April (5)
    • ►  March (1)
    • ►  February (1)
    • ►  January (6)
Powered by Blogger.

About Me

Unknown
View my complete profile