Community Forums
Results 1 to 2 of 2

Thread: How to Run cmd Command in package

  1. #1
    Join Date
    Feb 2018
    Posts
    1

    How to Run cmd Command in package

    Hi
    How to run cmd command in this package afther instalation
    Code:
    REM Create Port
    cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\Prnport.vbs" -a -r CRM-Printer -h 192.168.202.52 -o raw -n 9100 
    
    REM Install Driver
    cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\Prndrvr.vbs" -a -m "HP LaserJet 500 color M551 PCL6" -i "\\sccm2016\Source\APP\Script\Printers\Driver\hpcm500u.inf" 
    
    REM Create Printer
    cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -a -p "CRM-Printer1" -m "HP LaserJet 500 color M551 PCL6" -r CRM-Printer 
    
    Set Default Printer
    cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -t -p "CRM-Printer1"
    
    
    
    Exit

  2. #2
    Join Date
    Jan 2002
    Posts
    513

    Question

    Hi,
    what kind of installation ?

    MSI-Basic or InstallScript ?
    Sincerelly,

    roman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •