Showing posts with label cmd. Show all posts
Showing posts with label cmd. Show all posts

Monday, March 12, 2012

COPY, XCOPY, and MOVE Command lines

http://support.microsoft.com/kb/240268
    or
Start -- Run -- Cmd -- copy /?
Start -- Run -- Cmd -- xcopy /?
Start -- Run -- Cmd -- move /?

General Syntax for finding Command line parameters for any .exe or .msi file:
Start -- Run -- Cmd -- "filename.exe / ?"

Start -- Run -- Cmd -- "filename.msi / ?"

This command will generally give you all the command lines and/or silent switches for any .exe or .msi file.

Note that if the command line parameters are not added in the installers (mostly custom installers), then it won't result anything.

Tuesday, February 22, 2011

Active Directory Certificate Services - Command Reference

Applies To: Windows Server 2008
   Active Directory Certificate Services (AD CS) provides customizable services for issuing and managing public key certificates used in software security systems that employ public key technologies. The following commands allow you to issue and manage public key certificates used in software security systems that employ public key technologies.

Certreq
Certreq can be used to:
  1. Request certificates from a certification authority (CA).
  2. Retrieve a response to a previous request from a CA.
  3. Create a new request from an .inf file.
  4. Accept and install a response to a request.
  5. Construct a cross-certification or qualified subordination request from an existing CA certificate or request.
  6. Sign a cross-certification or qualified subordination request.
Certutil
Displays certification configuration information, and configures Certificate Services.

Ref: http://technet.microsoft.com/en-us/library/cc772497%28WS.10%29.aspx

Active Directory Domain Services - Command Reference

Applies To: Windows Server 2008
   Active Directory Domain Services (AD DS) command-line tools are built into Windows Server 2008. They are available if you have the AD DS or Active Directory Lightweight Directory Services (AD LDS) server role installed. To use these tools, you must run them from an elevated command prompt. To open an elevated command prompt, click Start, right-click Command Prompt, and then click Run as administrator.
  • Adprep - Extends the Active Directory schema and updates permissions as necessary to prepare a forest and domain for a domain controller that runs the Windows Server 2008 operating system.
  • Csvde - Imports and exports data from Active Directory using files that store data in the comma-separated value (CSV) format. You can also support batch operations based on the CSV file format standard.
  • Dcdiag - Analyzes the state of domain controllers in a forest or enterprise and reports any problems to help in troubleshooting.
  • Dcpromo - Installs and removes Active Directory Domain Services (AD DS).
  • Dsacls - Displays and changes permissions (access control entries) in the access control list (ACL) of objects in AD DS.
  • Dsadd - Adds specific types of objects to the directory.
  • Dsamain - Exposes Active Directory data that is stored in a snapshot or backup as a Lightweight Directory Access Protocol (LDAP) server.
  • Dsdbutil - Provides database utilities for Active Directory Lightweight Directory Services (AD LDS).
  • Dsget - Displays the selected properties of a specific object in the directory.
  • Dsmgmt - Provides management facilities for Active Directory Lightweight Directory Services (AD LDS).
  • Dsmod - Modifies an existing object of a specific type in the directory.
  • Dsmove - Moves a single object in a domain from its current location in the directory to a new location or renames a single object without moving it in the directory tree.
  • Dsquery - Queries AD DS according to specified criteria.
  • Dsrm - Deletes an object of a specific type or any general object from the directory.
  • Ldifde - Creates, modifies, and deletes directory objects on computers running Windows Server 2003 or Windows XP Professional operating systems.
  • Ldp - Makes it possible for users to perform operations against an LDAP-compatible directory, such as AD DS. These operations include connect, bind, search, modify, add, and delete.
  • Netdom - Makes it possible for administrators to manage Windows Server 2003 and Windows 2000 domains and trust relationships from a command prompt.
  • Net computer - Adds or deletes a computer from a domain database.
  • Net group - Adds, displays, or modifies global groups in domains.
  • Net user - Adds or modifies user accounts, or displays user account information.
  • Nltest - Performs network administrative tasks.
  • Ntdsutil - Provides management facilities for AD DS.
  • Redircmp - Redirects the default container for newly created computers to a specified target organizational unit (OU) so that newly created computer objects are created in the specific target OU instead of in CN=Computers.
  • Redirusr - Redirects the default container for newly created users to a specified target OU so that newly created user objects are created in the specific target OU instead of in CN=Users.
  • Repadmin - Makes it possible for administrators to diagnose Active Directory replication problems between domain controllers running Windows operating systems.
  • Setspn - Makes it possible for administrators to read, modify, and delete the Service Principal Names (SPN) directory property for an Active Directory service account.
Ref: http://technet.microsoft.com/en-us/library/cc771131%28WS.10%29.aspx

Terminal Services - Command Reference

The following is a list of Terminal Services command-line tools.
  • Change - Changes terminal server settings for log-on, COM port mappings, and install mode.
  • Change logon - Enables or disables log-on from client sessions on a terminal server, or displays current log-on status.
  • Change port - Lists or changes the COM port mappings to be compatible with MS-DOS applications.
  • Change user - Changes the install mode for the terminal server.
  • Chglogon - Enables or disables log-on from client sessions on a terminal server, or displays current log-on status.
  • Chgport - Lists or changes the COM port mappings to be compatible with MS-DOS applications.
  • Chguser - Changes the install mode for the terminal server.
  • Flattemp - Enables or disables flat temporary folders.
  • Logoff - Logs off a user from a session on a terminal server and deletes the session from the server.
  • Msg - Sends a message to a user on a terminal server.
  • Mstsc - Creates connections to terminal servers or other remote computers.
  • Qappsrv - Displays a list of all terminal servers on the network.
  • Qprocess - Displays information about processes that are running on a terminal server.
  • Query - Displays information about processes, sessions, and terminal servers.
  • Query process - Displays information about processes that are running on a terminal server.
  • Query session - Displays information about sessions on a terminal server.
  • Query termserver - Displays a list of all terminal servers on the network.
  • Query user - Displays information about user sessions on a terminal server.
  • Quser - Displays information about user sessions on a terminal server.
  • Qwinsta - Displays information about sessions on a terminal server.
  • Rdpsign - Enables you to digitally sign a Remote Desktop Protocol (.rdp) file.
  • Reset session - Enables you to reset (delete) a session on a terminal server.
  • Rwinsta - Enables you to reset (delete) a session on a terminal server.
  • Shadow - Enables you to remotely control an active session of another user on a terminal server.
  • Tscon - Connects to another session on a terminal server.
  • Tsdiscon - Disconnects a session from a terminal server.
  • Tskill - Ends a process running in a session on a terminal server.
  • Tsprof - Copies the Terminal Services user configuration information from one user to another.
Ref: http://technet.microsoft.com/en-us/library/cc725766%28WS.10%29.aspx

Print - Command Reference

The following is a list of Print command-line tools.
  • Lpq - Displays the status of a print queue on a computer running Line Printer Daemon (LPD).
  • Lpr - Sends a file to a computer or printer sharing device running the Line Printer Daemon (LPD) service in preparation for printing.
  • Net print - Displays information about a specified printer queue, displays information about a specified print job, or controls a specified print job.
  • Print - Sends a text file to a printer.
  • Prncnfg.vbs - Configures or displays configuration information about a printer.
  • Prndrvr.vbs - Adds, deletes, and lists printer drivers.
  • Prnjobs.vbs - Pauses, resumes, cancels, and lists print jobs.
  • Prnmngr.vbs - Adds, deletes, and lists printers or printer connections, in addition to setting and displaying the default printer.
  • Prnport.vbs - Creates, deletes, and lists standard TCP/IP printer ports, in addition to displaying and changing port configuration.
  • Prnqctl.vbs - Prints a test page, pauses or resumes a printer, and clears a printer queue.
  • Pubprn.vbs - Publishes a printer to the Active Directory directory service.
Ref: http://technet.microsoft.com/en-us/library/cc771846%28WS.10%29.aspx

Windows Server Backup - Command Reference

   The following sub-commands for wbadmin provide backup and recovery functionality from a command prompt.
   To configure a backup schedule, you must be a member of the Administrators group. To perform all other tasks with this command, you must be a member of the Backup Operators or the Administrators group, or you must have been delegated the appropriate permissions.
   You must run wbadmin from an elevated command prompt. (To open an elevated command prompt, click Start, right-click Command Prompt, and then click Run as administrator.)
  • Wbadmin enable backup - Configures and enables a daily backup schedule. (This sub-command applies only to Windows Server 2008.)
  • Wbadmin disable backup - Disables your daily backups. (This sub-command applies only to Windows Server 2008.)
  • Wbadmin start backup - Runs a one-time backup. If used with no parameters, uses the settings from the daily backup schedule.
  • Wbadmin stop job - Stops the currently running backup or recovery operation.
  • Wbadmin get versions - Lists details of backups recoverable from the local computer or, if another location is specified, from another computer.
  • Wbadmin get items - Lists the items included in a specific backup.
  • Wbadmin start recovery - Runs a recovery of the volumes, applications, files, or folders specified. (This sub-command applies only to Windows Server 2008.)
  • Wbadmin get status - Shows the status of the currently running backup or recovery operation.
  • Wbadmin get disks - Lists disks that are currently online. (This sub-command applies only to Windows Server 2008.)
  • Wbadmin start systemstaterecovery - Runs a system state recovery. (This sub-command applies only to Windows Server 2008.)
  • Wbadmin start systemstatebackup - Runs a system state backup. (This sub-command applies only to Windows Server 2008.)
  • Wbadmin delete systemstatebackup - Deletes one or more system state backups. (This sub-command applies only to Windows Server 2008.)
  • Wbadmin start sysrecovery - Runs a recovery of the full system (at least all the volumes that contain the operating system's state). (This sub-command applies only to Windows Server 2008, and it is only available if you are using the Windows Recovery Environment.)
  • Wbadmin restore catalog - Recovers a backup catalog from a specified storage location in the case where the backup catalog on the local computer has been corrupted. (This sub-command applies only to Windows Server 2008.)
  • Wbadmin delete catalog - Deletes the backup catalog on the local computer. Use this command only if the backup catalog on this computer is corrupted and you have no backups stored at another location that you can use to restore the catalog. (This sub-command applies only to Windows Server 2008.)
Ref: http://technet.microsoft.com/en-us/library/cc770340%28WS.10%29.aspx