How to install 7-Zip silently

The following process shows how to setup a silent install that will work with 32-bit and 64-bit versions of Windows. It can be used to distribute 7-Zip to computers using a software management tool such as SCCM (System Config Configuration Manager).

It has been written for version 16.04 but should work for other versions.

Having troubles with the instructions? Take a look at the example download.
Full Download: 7ZipSilentInstall.zip
  1. Download both the 32-bit and 64-bit versions of the MSI installation files from http://www.7-zip.org/download.html
  2. Create a text file called install.cmd and copy in the following information
@echo off
cls
echo --------------------------------------------------------
echo .
echo .           Installing 7-Zip - Please Wait.
echo .         (This window will close once installed)
echo .

REM Silent install 7-Zip for 64-bit
if defined ProgramFiles(x86) "%~dp07z1604-x64.msi" /q"
if defined ProgramFiles(x86) exit

REM Silent install 7-Zip for 32-bit
"%~dp07z1604.msi" /q"
  1. Copy the two exe install files and install.cmd to your software package share
  2. You can now create your SCCM package or deploy the software by using install.cmd

For more information on creating SCCM packages see distribute software using SCCM.

For more information on silent installs with 7-Zip see http://www.7-zip.org/faq.html

How to install Adobe Reader XI silently using SCCM

The following process has been tested and confirmed as working with Adobe Acrobat Reader 11 and SCCM R2.

It does the following tasks:

  • Silently installs Adobe Acrobat Reader 11
    • Agree to license
    • Accept EULA agreement
    • Disable automatic updates
Having troubles with the instructions? Take a look at the example download.
Full Download: AdobeReaderSilentInstall.zip
  1. Download the latest installer (11.0.01) from http://get.adobe.com/reader/enterprise/
  2. SCCM-Adobe10Install1
  3. Create a text file called install.cmd and add the following information:
  4. @echo off
    REM  Installs Adobe Reader 11.0.10 and disables autoupdate checking
    REM  itsupportguides.com 02/11/2016
    cls
    echo --------------------------------------------------------
    echo .
    echo .
    echo Installing Adobe Reader silently
    "%~dp0AdbeRdr11010_en_US.exe" /sAll /rs /msi EULA_ACCEPT=YES
    echo disable auto updates
    reg add "HKEY_LOCAL_MACHINE\software\policies\adobe\acrobat reader\10.0\featurelockdown" /v bUpdater /t REG_DWORD /d 00000000 /f
  5. Copy the installer file and install.cmd to your software package share
  6. SCCM-Adobe10Install2
  7. You can now create your SCCM package or deploy the software by using install.cmd

 

 

For more information on creating SCCM packages see distribute software using SCCM

How to install and configure FileZilla silently

The following process has been tested and confirmed working with FileZilla 3.22.x and ConfigMgr / SCCM R2.

It does the following tasks:

  • Uninstalls any existing versions of FileZilla
  • Installs FileZilla for the operating systems architecture (32-bit or 64-bit)
Having troubles with the instructions? Take a look at the example download.
Full Download: FileZillaSilentInstall.zip

 

  1. Download both the 32-bit and 64-bit versions of the EXE installation files from https://filezilla-project.org/download.php?show_all=1
  2. Create a text file called install.cmd and copy in the following information
@echo off
cls
echo --------------------------------------------------------
echo .
echo .
echo .           Installing FileZilla - Please Wait.
echo .         (This window will close once installed)
echo .

REM Uninstall any previous version of FileZilla
if exist "%programfiles%\FileZilla FTP Client\uninstall.exe" "%programfiles%\FileZilla FTP Client\uninstall.exe" /S
if exist "%programfiles(x86)%\FileZilla FTP Client\uninstall.exe" "%programfiles(x86)%\FileZilla FTP Client\uninstall.exe" /S

REM Silent install FileZilla for 64-bit
if defined ProgramFiles(x86) "%~dp0FileZilla_3.22.1_win64-setup.exe" /S
if defined ProgramFiles(x86) exit

REM Silent install FileZilla for 32-bit
"%~dp0FileZilla_3.22.1_win32-setup.exe" /S
  1. Copy the two exe install files and install.cmd to your software package share
  2. You can now create your SCCM package or deploy the software by using install.cmd

For more information on creating SCCM packages see distribute software using SCCM.

Install VLC Media Player 2.2.4 Silently using SCCM

The following process has been tested and confirmed as working with VLC Media Player (Version: 2.2.4) and SCCM R2.

It does the following tasks:

  • Un-installs previous versions of VLC Media Player
  • Installs VLC Media Player silently
  • Removes desktop shortcut
Having troubles with the instructions?
Take a look at the example download:
Full Download: VLCSilentInstall.zip

 

  1. Download the latest install file from www.videolan.org/vlc
  2. SCCM-VLCInstall1
  3. Create a text file called install.cmd and copy in the following information
@echo off
cls
echo --------------------------------------------------------
echo .
echo .
echo .      Installing VLC Media Player - Please Wait
echo .         Window will close once installed

REM Uninstall existing VLC version
if exist "%PROGRAMFILES%\VideoLAN\VLC\uninstall.exe" "%PROGRAMFILES%\VideoLAN\VLC\uninstall.exe" /S
if exist "%PROGRAMFILES(x86)%\VideoLAN\VLC\uninstall.exe" "%PROGRAMFILES% (x86)\VideoLAN\VLC\uninstall.exe" /S
:: Wait for 20 seconds
ping -n 20 127.0.0.1 > NUL

REM Run VLC Installer
"%~dp0vlc-2.2.4-win32.exe" /language=en_GB /S

REM Removes VLC Desktop Icon - Windows XP
if exist "%allusersprofile%\Desktop\VLC media player.lnk" del "%allusersprofile%\Desktop\VLC media player.lnk" /S

REM Removes VLC Desktop Icon - Windows 7
if exist "%public%\Desktop\VLC media player.lnk" del "%public%\Desktop\VLC media player.lnk" /S

REM Return exit code to SCCM
exit /B %EXIT_CODE%
  1. Copy the installer file and install.cmd to your software package share
  2. You can now create your SCCM package or deploy the software by using install.cmd.

 

For more information on creating SCCM packages see SCCM – How to Distribute Software Packages.

Install and Configure Firefox 49 silently using SCCM

To configure the Firefox default settings at the application level for all new and existing users you will need to use customised config file. There is one thing to note, that is that once the settings are configured it can not be changed by the user, whether or not you use ‘pref’ or ‘lockPref’. The following process has been tested and confirmed as working with Firefox 49.0.2 and SCCM R3 on Windows XP x86, Windows 7 x86, Windows 7 x64, Windows 8/8.1 x86, Windows 8/8.1 x64, Windows 10 x86 and Windows 10 x64. It does the following tasks:

  • Install Firefox silently, without Firefox being the default
  • Disables the ‘Automatically check for updates’ option
  • Disables the import wizard when Firefox first loads
  • Disables the ‘Always check to see if Firefox is the default browser on startup’ option
  • Sets homepage to ‘http://www.itsupportguides.com’ (you can change this in your configuration)
  • Disables the ‘know your rights’ button from displaying on first run
  • Disables the request to send performance data from displaying

 

Having troubles with the instructions? Take a look at the example download.
Full Download: FirefoxSilentInstall.zip

 

How to customise and deploy (silent install) Firefox

  1. Create a temporary working folder for saving the files into (for example, create C:\TEMP\Firefox)
  2. SCCM-Firefox1
  3. Download the latest install file at http://www.mozilla.org/en-US/firefox/all . Save to C:\TEMP\Firefox
  4. Create a new text file called ‘override.ini’ and copy in the following information:
[XRE]
EnableProfileMigrator=false
  1. Create a new text file called ‘local-settings.js’ and copy in the folling information:
pref("general.config.obscure_value", 0);
pref("general.config.filename", "mozilla.cfg");
  1. Create a new text file called ‘mozilla.cfg’ and copy in the following information:
//Firefox Default Settings
// set Firefox Default homepage
pref("browser.startup.homepage","http://www.itsupportguides.com");
// disable default browser check
pref("browser.shell.checkDefaultBrowser", false);
pref("browser.startup.homepage_override.mstone", "ignore");
// disable application updates
pref("app.update.enabled", false)
// disables the 'know your rights' button from displaying on first run
pref("browser.rights.3.shown", true);
// disables the request to send performance data from displaying
pref("toolkit.telemetry.prompted", 2);
pref("toolkit.telemetry.rejected", true);
  1. Create a new text file called ‘install.cmd’ and copy in the following information
@echo off
REM==========================================
REM Install FireFox 49.0.2
REM==========================================
REM Date   : 20 October 2016
REM Author : www.itsupportguides.com
REM .
REM Script Details:
REM --------------
REM  This script will:
REM       + silently install or upgrade Firefox WITHOUT Firefox being the default browser
REM       + Disables the 'Automatically check for updates' option
REM       + Disables the 'Always check to see if Firefox is the default browser on startup' option
REM       + Deletes desktop icon
REM       + Disables the Import Wizard
REM       + Works for Windows XP / 7 /8 32-bit and 64-bit
REM .
REM===========================================
echo Installing Firefox - Please Wait.
echo Window will close after install is complete
REM Installing Firefox
"%~dp0Firefox Setup 49.0.2.exe" -ms
REM Install 32-bit customisations
if exist "%programfiles%\Mozilla Firefox\" copy /Y "%~dp0override.ini" "%programfiles%\Mozilla Firefox\browser\"
if exist "%programfiles%\Mozilla Firefox\" copy /Y "%~dp0mozilla.cfg" "%programfiles%\Mozilla Firefox\"
if exist "%programfiles%\Mozilla Firefox\" copy /Y "%~dp0local-settings.js" "%programfiles%\Mozilla Firefox\defaults\pref"
REM Install 64-bit customisations
if exist "%ProgramFiles(x86)%\Mozilla Firefox\" copy /Y "%~dp0override.ini" "%ProgramFiles(x86)%\Mozilla Firefox\browser\"
if exist "%ProgramFiles(x86)%\Mozilla Firefox\" copy /Y "%~dp0mozilla.cfg" "%ProgramFiles(x86)%\Mozilla Firefox\"
if exist "%ProgramFiles(x86)%\Mozilla Firefox\" copy /Y "%~dp0local-settings.js" "%ProgramFiles(x86)%\Mozilla Firefox\defaults\pref"
REM Removes Firefox Desktop Icon - Windows XP
if exist "%allusersprofile%\Desktop\Mozilla Firefox.lnk" del "%allusersprofile%\Desktop\Mozilla Firefox.lnk" /S
REM Removes Firefox Desktop Icon - Windows 7 / 8
if exist "%public%\Desktop\Mozilla Firefox.lnk" del "%public%\Desktop\Mozilla Firefox.lnk"
  1. Copy the Firefox install file, override.ini, mozilla.cfg, local-settings.js and install.cmd to your software package share
  2. SCCM-Firefox2
  3. You can now create your SCCM package or deploy the software by using install.cmd.

For more information on creating SCCM packages see SCCM – How to Distribute Software Packages.

More Firefox configurations:

Please refer to the following articles for some more common customisations:

How to install Silverlight 5 silently

The following process to install Microsoft Silverlight silently has been tested and confirmed working with Silverlight 5.x and ConfigMgr / SCCM R2.

Having troubles with the instructions? Take a look at the example download.
Full Download: SilverlightSilentInstall.zip
  1. Download the 32-bit version of Silverlight from https://go.microsoft.com/fwlink/?LinkId=229320
  2. Download the 64-bit version of Silverlight from https://go.microsoft.com/fwlink/?LinkID=229321
  3. Create a text file called install.cmd and copy in the following information
@echo off
cls
echo --------------------------------------------------------
echo .
echo .      Installing Microsoft Silverlight - Please Wait.
echo .         (This window will close once installed)
echo .

REM Silent install Silverlight for 64-bit
if defined ProgramFiles(x86) "%~dp0Silverlight_x64.exe" /q /doNotRequireDRMPrompt /noupdate
if defined ProgramFiles(x86) exit

REM Silent install Silverlight for 32-bit
"%~dp0Silverlight.exe" /q /doNotRequireDRMPrompt /noupdate
  1. Copy the two exe install files and install.cmd to your software package share
  2. You can now create your SCCM package or deploy the software by using install.cmd

For more information on creating SCCM packages see distribute software using SCCM.

How to silently install and configure Skype using SCCM

The following process has been tested and confirmed as working with Skype 6.16 and Configuration Manager (SCCM) R2.

The process involves downloading the MSI installer for Skype and customising it to suit your requirements.

In this example, we’ll be creating a Skype install which does the following tasks:

  • Installs Skype silently
  • Disables automatic startup when logging on
  • Removes the desktop shortcut
  • Return exit code to SCCM
  1. Download the latest version of the MSI install for Skype here: http://www.skype.com/go/getskype-msi
  2. SCCM-Skype1
  3. Download and install Orca (a free MSI editor tool by Microsoft) here www.itsupportguides.com/downloads/MicrosoftOrcaMSI.zip
  4. Using Orca – open SkypeSetup.msi
  5. SCCM-Skype3
  6. On the left hand menu click on ‘Registry’ 
  7. Scroll down until you see the entry which includes ‘Software\Microsoft\Windows\Current\Version\Run’
  8. Right click on the line and choose ‘Drop Row’
  9. SCCM-Skype2
  10. On the left hand menu click on ‘Shortcut’
  11. Right click on the row titled ‘SkypeDesktopShortcut’ and choose ‘Drop Row’
  12. SCCM-Skype4
  13. Save the changes and close Orca
  14. Create a text file called install.cmd and copy in the following information
@echo off
"%~dp0SkypeSetup.msi /passive /norestart
REM Return exit code to SCCM
exit /B %EXIT_CODE%
  1. Copy the customised SkypeSetup.msi and install.cmd to your software package share
  2. You can now create your SCCM package or deploy the software by using install.cmd

For more information on creating SCCM packages see distribute software using SCCM.

Customise Windows 7 Default User Profile with ConfigMgr SCCM

There have been some changes for how you can customise the default user profile in Windows 7.
Microsoft have disabled the standard ‘Copy Profile’ tool and will only support profile copying when done with sysprep.

There are a few limitations for using sysprep to copy the profile:

  • If you’re using an automated ‘build and capture’ task sequence with ConfigMgr (SCCM) you’re unable to log on and make the customisations to the profile before ConfigMgr captures the image
  • Some changes will not be copied. Microsoft has not documented which settings and files get copied. For example, it will not save most taskbar or start menu customisations.

Microsoft’s solution to this is using Group Policy preferences, however they’re still quite limiting and doesn’t provide complete customisation to the profile. For example, you’re unable to enable the “My Computer” icon on the desktop or specify the default background colour for new users. Another good example of the incompleteness with this method is you can change the control panel to have the ‘icon view’ however you cannot select if you want large or small icons.

After some investigation and testing I’ve found that editing the profile through targeted registry changes is the only consistent way to change the default profile. This is also a method which Microsoft will support.

The following instructions will allow you to add profile customisation to your ConfigMgr OS Deployment Task Sequence.
Changes applied:

  • Force Classic Control Panel – Small icons
  • Show the desktop icons for Computer, User’s Files, and Internet Explorer
  • Disable Microsoft Office first run message
  • Disable Microsoft Communicator First Run Tour
  • Set default theme (which applies the background colour)

Windows7DesktopCustomised

Step 1: Create a custom Windows 7 Theme file

  1. Log on to a Windows 7 computer
  2. Right-click on the desktop and select ‘Personalization’
  3. Modify the profile as desired and then click on ‘Save theme’
  4. Save the theme file as ‘Win7Profile.theme’
  5. Navigate to C:\Users\%UserName%\AppData\Local\Microsoft\Windows\Themes
  6. MSWin7-CustomPro1
  7. Save the theme file to your temporary working folder, e.g. your desktop.

Step 2: Create the customisations script

 

REM ###################################################
REM ###################################################
REM ## 
REM ## Apply customizations to Default User profile 
REM ##  
REM ###################################################
REM ###################################################

REM ##################
REM # Registry Edits #
REM ##################

REM **********************************
REM  Load Default User registry hive 
REM **********************************
reg load HKU\DefaultUser "C:\Users\Default\ntuser.dat"

REM ******************************
REM  Force Classic Control Panel
REM ******************************
reg add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /d 1 /t REG_DWORD /f
reg add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /d 1 /t REG_DWORD /f

REM *************************************************************************
REM Show the desktop icons for Computer, User's Files, and Internet Explorer
REM *************************************************************************
REM Show Computer icon on the desktop
REG ADD "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t REG_DWORD /d 0 /f
REM Show User's Files icon on the desktop
REG ADD "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{59031a47-3f72-44a7-89c5-5595fe6b30ee}" /t REG_DWORD /d 0 /f
REM Show Internet Explorer icon on the desktop
REG ADD "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{871C5380-42A0-1069-A2EA-08002B30309D}" /t REG_DWORD /d 0 /f

REM *****************************************************
REM Disable Microsoft Office first run message
REM *****************************************************
reg add "HKU\DefaultUser\Software\Microsoft\Office\12.0\Common\General" /v ShownOptIn /d 1 /t REG_DWORD /f

REM *****************************************************
REM Disable Microsoft Communicator First Run Tour
REM *****************************************************
reg add "HKU\DefaultUser\Software\Microsoft\Communicator" /v TourPlayed /d "1" /t REG_DWORD /f

REM *****************************************************
REM Set default theme
REM *****************************************************
reg add "HKU\DefaultUser\Software\Policies\Microsoft\Windows\Personalization" /v Themefile /d "%systemroot%ResourcesThemesWin7Profile.theme" /t REG_SZ /f

REM ***********************************
REM  Unload Default User registry hive
REM ***********************************
reg unload HKU\DefaultUser
  1. In the temporary working folder, create a new text file called ‘Win7ProfileCustom.cmd’
  2. Add the following text

Step 3: Copy to your deployment share

To allow the ConfigMgr/SCCM task sequence to run the script you need to save it to a shared folder which can be accessed during the ‘build and capture’ process.

  1. Copy both of these files to your OS Deployment package on SCCM, for example in the MDT Toolkit package.
  2. Distribute the package to your distribution points.

Step 4: Update your task sequence

Cmd /c copy "%osdeploymentshare%\Win7ProfileCustom.cmd" "C:\Windows\Setup\Scripts\SetupComplete.cmd"
Cmd /c copy "%osdeploymentshare%\Win7Profile.theme" "C:\Windows\Resources\Themes"
  1. Edit your ‘build and capture’ task sequence
  2. Add two new script elements, these need to be after Windows 7 and applications are installed.
  3. Note: if %deploymentshare% is not a valid variable in your environment you may need to specify the full share path

SCCM-TaskSetupComplete1

 

Step 5: Test it out

  1. Save the changes and run a new ‘build and capture’ to test.

Help! It’s not working!

Here are some tips to get you on your way:

  • Is the script running? Try applying the customisations to a standalone Windows 7 PC. You will need to save the theme file into the C:WindowsResourcesThemes folder then run the customisations script. Log on as a new user (or a user which hasnt logged into the computer yet) and verify if the profile customisations have applied. If it has – your issue isn’t with the script, it’s at the ‘build and capture’ stage.
  • Can you access the deployment share during the build and capture process? Enable the F8 support (if you haven’t already), during the build and capture process, roughly when the script is meant to run press F8 – the Windows command prompt should appear. Manually type out the two commands – is there an error message? What does it say?
    • Access denied? the account does not have access to the deployment share
    • File not found? did you type the command correctly? Is the command correct at all? Try running it on a standard Windows 7 system – does it work there?

 

Having troubles with the instructions? Take a look at our example download:To use- extract the ZIP file and run ‘install.cmd’ as Administrator.Log on a new user (a user which hasnt logged into the computer before, and/or doesn’t have a profile already!)

Full Download: www.itsupportguides.com/downloads/Windows7CustomiseProfile.zip

ConfigMgr Reporting – List all printers (local and networked)

The following guide will demonstrate how to create a new report using Microsoft System Center Configuration Manager R3.

In this example we will be creating a report which lists all printers (local and networked).

Please note: The report results includes the standard ‘Microsoft Office Document Image Writer Driver’ etc “software printers” – we suggest you export the report to excel and filter these out.

The report will also be linked to ‘Computer information for a specific computer’ report, allowing you to see detailed information on the systems listed.

How to create a report using SCCM R2:

  1. With the Configuration Manager Console open,
  2. Example the ‘Computer Management’ node, then ‘Reporting’ and ‘Reports’
  3. Right click on ‘Reports’ (or your custom reporting folder)
  4. Select ‘New’ then ‘Report’
  5. SCCM-ReportSP1
  6. Under ‘Name’ enter in the desired name, e.g. List All Printers (Local and Networked)
  7. Select a category, e.g. Device Management
  8. SCCM-ReportSP2
  9. Click on the ‘Edit SQL Statement’ button
  10. Under ‘SQL statement’ enter the following code:
  11. SELECT SYS.Netbios_Name0,printer.DriverName0, printer.Location0,printer.PortName0,printer.PrintProcessor0 
    FROM v_GS_PRINTER_DEVICE printer

    JOIN v_R_System SYS ON SYS.ResourceID = printer.ResourceID

    ORDER BY SYS.Netbios_Name0
  12. SCCM-ReportSP3
  13. Click ‘OK’ to return to the ‘New Report Wizard’
  14. Click ‘Next’ then ‘Next’ again
  15. Under ‘Link type’ select ‘Link to another report’
  16. SCCM-ReportSP6
  17. Under ‘Report’ click on the ‘Select’ button
  18. From the reports list, select ‘Computer information for a specific computer’
  19. SCCM-ReportSP7
  20. Click ‘OK’ to close the window
  21. Click ‘Next’, ‘Next’ then ‘Close’

The run the report:

  1. Navigate to where the report was saved/created
  2. Right click on the report and select ‘Run’
  3. SCCM-ReportSP8
  4. Click ‘Display’ to display the report
  5. The report will list all the printers from the database
  6. To get detailed information on each system click on the arrow to the left of the system name.