Auto launch DS ControlPoint on system restart.

Issue

Automatically start DS ControlPoint when Windows loads on a system reboot.

Product Line

Pelco Video Management

Environment

  • DS ControlPoint 7.0.24 - latest release
  • DSSRV
  • DS NVs
  • Digital Sentry

Cause

Scheduled weekly reboot on client PC requires DS ControlPoint to launch on it's own.

Resolution


DS ControlPoint can launch and load certain configurations based on a XML file or command line arguments. 

Note:  DS ControlPoint version 7.3.x can display a white border at the bottom of the screen when the display is auto launched, recommend upgrading to DS ControlPoint 7.6 or greater to resolve. DS ControlPoint version 7.14.x can display a white screen and crash when launched, recommecnd upgrading to DS ControlPoint 7.16 to resolve.




Commands that can be used in the configuration xml file:

  • monitor number="x"
  • fullscreen
  • group
  • tour
     

XML Schema:



The above example would call up group 1 full screen on monitor 1, group 2 full screen on monitor 2.
 

The above example would call up group1 full screen on monitor 1, then tour1 full screen on monitor 2 and group2 on monitor 3 but not full screen. These commands can be repeated for additional monitor configuration.

The command line parameter used to point to the xml file is -multimonitorxml "path to xml file"


There are some single command line options that can also be used without using the xml file.  These would be added to the Target: field in the shortcut properties.
-fullscreen [Monitor Number]
-group "Group Name"
-tour "Tour Name"
-noautoconnect

*Brackets [] indicates optional parameter

 

 Example:  "C:\Program Files (x86)\Pelco\ControlPoint\DSControlPoint.exe" -group "NorthParking"

 

DS ControlPoint running on a client PC

  1. Open notepad (Start > Search Bar and type in notepad)
     
  2. Add the above commands that will configure DS ControlPoint to way needed.

    Example: Configure to launch DS ControlPoint in full screen using a saved camera group on monitor 1.



     
  3. Once the commands have been added in notepad, click on File > Save As
     
  4. In the Save As window select a location like Documents to save the file. 
    Change the "Save as type:" from Text Documents to All Files, give the file a name and add the extension .xml (e.g. DSCP.xml). 
     
  5. Click Save
     
  6. Navigate to Start > All Programs > Pelco and right-click on the DS ControlPoint icon.  Select Send To > Desktop (create shortcut)
     
  7. Locate the newly created DS ControlPoint shortcut on the desktop, right-click and select Properties > Shortcut tab.
     
  8. In the "Target:" field, add the -multimonitorxml "path to xml file" after the quote.

    Example:

    "C:\Program Files (x86)\Pelco\ControlPoint\DSControlPoint.exe" -multimonitorxml "C:\Users\Public\Documents\DSCP.xml"



     
  9. Click OK
     
  10. Navigate to Start > All Programs > Startup right-click on the startup folder and select Open (or "Open all users" if this should load on any login).
     
  11. Copy-n-Paste or Move the DS ControlPoint shortcut to the Startup folder.
     
  12. Reboot the system and verify DS ControlPoint auto launches with the correct configuration.

 

 

DS ControlPoint running on a DSSRV recorder



Note: Generally it is not recommended to use the DSSRV as the DS ControlPoint viewing station due to resource usage.  If DS ControlPoint must be run on the recorder, recommend using the bandwidth throttle option in Setup > Application Settings > Bandwidth tab and configuring the bandwidth to something around 5FPS if running 16 or more cameras.

 

  1. Create the XML file DS ControlPoint will use when launching.
    1. Open notepad (Start > Search Bar and type in notepad)
       
    2. Add the above commands that will configure DS ControlPoint to way needed.

      Example: Configure to launch DS ControlPoint in full screen using a saved camera group on monitor 1.


       
    3. Once the commands have been added in notepad, click on File > Save As.
       
    4. In the Save As window select a location like Documents to save the file. 
      Change the "Save as type:" from Text Documents to All Files, give the file a name and add the extension .xml (e.g. DSCP.xml).
       
    5. Click Save

       
  2. Disable UAC on the recorder.
    1. Navigate to START > Search Bar and type in uac > select "Change User Account Control settings" listed under Control Panel.
       
    2. Slide the adjustment bar down to Never notify



       
    3. Click OK and then restart the system.

       
  3. Configure the DSSRV to auto login using the DSServiceUser account.
    1. Refer to knowledge base article : How to configure the DSSRV to auto login to the Windows desktop using the DSServiceUser account.

       
  4. Use Task Scheduler to launch DS ControlPoint on user login.
    1. Click on Start > Search Bar and type in task scheduler > select "Task Scheduler" listed under Programs.
       
    2. Click the Action menu, and then click "Create Task".
       
    3. Under the General tab type a name for the task and an optional description.


       
    4. Click on the Triggers tab and then click the New... button.
       
    5. Change the "Begin the task:" to At log on

      Select Specific user: and verify systemname\DSServiceUser is displayed. Under Advanced settings check the box next to "Delay task for:", then click the drop down and select 1 minute (can manually type a time in if needed, recommend 1 - 5 minutes of delay).

      Note: The DSSRV when using ENC5416 encoders can take 1 to 5 minutes to display video after the video services are started.


       
    6. Click OK.
       
    7. Click on the Actions tab and then the New... button.  For the

      Action: verify Start a program is selected.  In the Program/script: field click Browse and browse to the DS ControlPoint shortcut on the desktop or C:\Program Files (x86)\Pelco\ControlPoint\DSControlPoint.exe and then click Open.


       
    8. In the "Add arguments" field add the -multimonitorxml "path to xml file" argument.

      Example
      Programs/script: "C:\Program Files (x86)\Pelco\ControlPoint\DSControlPoint.exe"

      Add arguments: -multimonitorxml "C:\Users\DSServiceUser\Documents\DSCPAutoStart.xml"    <----path to the XML file you created.
       
    9. Click OK to add the Action.
       
    10. Leave Conditions and Settings default and click OK.
       
    11. Restart the DSSRV and verify DS ControlPoint launches successfully after the delay.

       

Related Articles:
Enabling Auto-Reboot on Windows 7