Showing posts with label SCCM 2007. Show all posts
Showing posts with label SCCM 2007. Show all posts

Tips - Event Viewer Error on Server Windows 2008 R2 #hotfix KB4503277

During these time period we faced below errors when we was trying to browse eventviewer

MMC has detected an error in a snap-in and will unload it

This problem occurred on Windows 2008 R2 server

MS Article https://support.microsoft.com/en-us/help/4508640/event-viewer-may-close-or-you-may-receive-an-error-when-using-custom-v suggest hotfix KB4503277 (Preview of Monthly Rollup for Windows 7 SP1 and Windows Server 2008 R2 SP1) 

Futhermore was released newer hotfix versions:

2019-07 Preview of Monthly Quality Rollup for Windows Server 2008 R2 for x64-based Systems (KB4507437)

2019-07 Security Monthly Quality Rollup for Windows Server 2008 R2 for x64-based Systems (KB4507449)








Windows 10 - How to manage updates

Today I would like to highlith these Microsoft articles that explain how to manage Windows 10 updates as a service.

Unfortunately they are in italian language but could be easily translated on line to any preferred language.

https://technet.microsoft.com/it-it/itpro/windows/manage/waas-update-windows-10?wt.mc_id=AID521892_EML_4912522

ArgomentoDescrizione
Guida rapida a Windows as a ServiceFornisce un breve riepilogo dei punti principali relativi al nuovo modello di manutenzione per Windows 10.
Panoramica di Windows as a ServiceSpiega le differenze in termini di compilazione, distribuzione e manutenzione di Windows 10, presenta gli aggiornamenti delle funzionalità, gli aggiornamenti qualitativi e i diversi rami di manutenzione e confronta gli strumenti di manutenzione.
Preparare la strategia di manutenzione per gli aggiornamenti di Windows 10Illustra le decisioni da prendere nella strategia di manutenzione.
Creare circuiti di distribuzione per gli aggiornamenti di Windows 10Spiega come usare i rami di manutenzione e i rinvii degli aggiornamenti per gestire gli aggiornamenti di Windows 10.
Assegnare i dispositivi ai rami di manutenzione per gli aggiornamenti di Windows 10Spiega come assegnare dispositivi al ramo CB (Current Branch) o CBB (Branch for Business) per gli aggiornamenti qualitativi e delle funzionalità e come registrare dispositivi in Windows Insider.
Ottimizzare il recapito degli aggiornamenti di Windows 10Illustra i vantaggi dell'uso di Ottimizzazione recapito o BranchCache per la distribuzione degli aggiornamenti.
Gestire gli aggiornamenti per Windows 10 Mobile Enterprise e Windows 10 IoT MobileDescrive gli aggiornamenti per Windows 10 Mobile Enterprise e Windows 10 IoT Mobile.
Gestire gli aggiornamenti con Windows Update for BusinessSpiega come usare Windows Update for Business per gestire quando i dispositivi ricevono gli aggiornamenti direttamente da Windows Update. Include procedure dettagliate per configurare Windows Update for Business tramite Criteri di gruppo e Microsoft Intune.
Gestire gli aggiornamenti di Windows 10 con Windows Server Update Services (WSUS)Spiega come usare WSUS per gestire gli aggiornamenti di Windows 10.
Gestire gli aggiornamenti di Windows 10 con System Center Configuration ManagerSpiega come usare Configuration Manager per gestire gli aggiornamenti di Windows 10.
Gestire i riavvii dei dispositivi dopo gli aggiornamentiSpiega come usare Criteri di gruppo per gestire i riavvii dei dispositivi.

Antivirus - How to remove/block Cryptlocker



During this days it happen that cryplocker (virus that crypt file against user payment for decrypt) it’s propagating


So you could take a look to the following article to get information.




Otherwise you could use the following utility:




This utility help you to create a GPO to block potential virus execution.

There already exists a Cryptolocker Prevention Kit as found here,

[update 2017.05.08]

I would like to mention this commercial product that is suitable againsta Cruptlocker and any Ramsoware software too.


SCCM 2012 - .vbs to force Hardware Inventory/Software Inventory on client

With SCCM 2012 there are 3 ways to force Hardware Inventory/software Inventory.

1) Create a Client Policy and deploy it to the client with the scheduled required

2) Create two .vbs like the following:

HARDWARE INVENTORY


hInventoryActionID = "{00000000-0000-0000-0000-000000000001}"
Set oLocator = CreateObject("WbemScripting.SWbemLocator")
Set oServices = oLocator.ConnectServer( , "root\ccm\invagt")
oServices.Delete "InventoryActionStatus.InventoryActionID=""" & hInventoryActionID & """"
wscript.sleep 3000
Set cpApplet = CreateObject("CPAPPLET.CPAppletMgr")
Set actions = cpApplet.GetClientActions
For Each action In actions
If Instr(action.Name,"Hardware Inventory") > 0 Then
action.PerformAction
End if
Next


For more information, refer to the following MSDN article: http://msdn.microsoft.com/en-us/library/cc144592.aspx

SOFTWARE INVENTORY

sInventoryActionID = "{00000000-0000-0000-0000-000000000002}"
Set oLocator = CreateObject("WbemScripting.SWbemLocator")
Set oServices = oLocator.ConnectServer( , "root\ccm\invagt")
oServices.Delete "InventoryActionStatus.InventoryActionID=""" & sInventoryActionID & """"
wscript.sleep 3000
Set cpApplet = CreateObject("CPAPPLET.CPAppletMgr")
Set actions = cpApplet.GetClientActions
For Each action In actions
If Instr(action.Name,"Software Inventory") > 0 Then
action.PerformAction
End if
Next



For more information, refer to the following MSDN article: http://msdn.microsoft.com/en-us/library/cc145432.aspx

3) use this tool where its possible to force/call HW/SW inventory from menu
http://sourceforge.net/projects/smsclictr/

SCCM 2012 e Patching con PowerShell

Abbiamo già visto nei vecchi post del blog che è possibile utilizzare un .vbs (con WSUS aziendale) da eseguire sui client per installare le patch.


Scripting - Installare patch su client remoti in automatico

http://www.alessandromazzanti.com/2012/05/server-installare-patch-su-client.html

Scripting - Eseguire .vbs ed installazioni programmi su pc remoti in un dominio o un workgroup con PSEXEC

http://www.alessandromazzanti.com/2012/05/scripting-eseguire-vbs-ed-installazioni.html

Tali script funzionano su SMS 2003 ma anche su SCCM 2012 su Windows XP, su Windows 7 ho visto che alle volte hanno dato dei problemi.

Per questo motivo mi sento di segnalare il seguente script in PowerShell che mi riprometto di testare su SCCM 2012 per il patching di client Windows 7 ed 8

http://gallery.technet.microsoft.com/scriptcenter/2d191bcd-3308-4edd-9de2-88dff796b0bc

SCCM 2012 - Cumulative Update 1 (CU) per System Center 2012 Configuration Manager Service Pack 1

Microsoft ha rilasciato Cumulative Update 1 (CU) per System Center 2012 Configuration Manager Service Pack 1.

Da installare solo nel caso in cui si siano presentati i problemi citati da Microsoft.

Questi sono esaustivamente spiegati nell'articolo che ho preso spunto e che ho letto or ora:

http://blogs.technet.com/b/italy/archive/2013/04/04/cumulative-update-1-cu-per-system-center-2012-configuration-manager-service-pack-1.aspx

SCCM 2007 – SCCM 2007 e patch KB 2783466

 

E’ necessario installare la seguente patch su su tutti i Primary e Secondary di SCCM 2007 KB 2783466 - Software updates are displayed as invalid in the Administrator Console in System Center Configuration Manager 2007.
 
Questa patch permette di avere effetto sugli aggiornamenti già scaricati che sono marcati come “Not downloaded” nel DB di SCCM, questo impedisce ai client di scaricare quegli aggiornamenti.
 
Ecco l’articolo Issue 2 per approfondire:

 
 
Questo eviterà di dover scaricare manualmente tutti i package che saranno marcati come “Not Downloaded” a partire dall’11 Dicembre 2012 in quanto non c’è un altro modo automatico.
 
System Center 2012 Configuration Manager non è impattato da questo cambiamento, ma è in grado di gestire correttamente le nuove hotfix aggiornate.

Server - Creare una GPO per abilitare/disabilitare i servizi in un dominio

Ero nella necessità di definire una policy in un dominio 2003/2008 cher per tutti e/o alcuni client disattivasse/attivasse alcuni servizi in automatico per i client in modo da facilitare le operazioni di gestione dei client (tipo WMI, Registro remoto, Windows update ed altro).

Siccome alle volte mi dimentico le cose ho seguito la guida seguente (banalissima con il senno di poi) che spiega a grandi linee come fare.

La segno nel caso mi tornasse nuovamente utile:



http://www.jppinto.com/2010/07/creating-a-gpo-to-disable-services-on-windows-servers/
/div>



Scripting - Installazione unattended e silent di Java Run Time Environment

Siccome ero nella necessità di installare in maniera unattended e silent una versione di JRE segno il link di interesse di Java in cui ci sono tutti gli How To divisi per sistema operativo:

Copio ed incollo lo script che ho utilizzato (.cmd) per effettuare ciò:

REM The following command line entry should disable updates, but the Java item in Control Panel still reports it is
REM configured to update and notify. See the following reg key which disables the tab

echo Installing Java Update. Please wait...
start /wait jre-6u31-windows-i586-s.exe /s /v"/norestart AUTOUPDATECHECK=0 JAVAUPDATE=0 JU=0" /L C:\JavaDeployLog.txt

REM Disable Java Update Tab and also Updates and Notifications
reg add "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v EnableJavaUpdate /t REG_DWORD /d 00000000 /f
reg add "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v NotifyDownload /t REG_DWORD /d 00000000 /f


La soluzione è stata trovata, anche se non facile, grazie a questo vecchio post:

Scripting - Appdeploy


Che mi ha ridirezionato, dopo un po di ricerca, al seguente link dove era presente lo script.

Da tenere sempre nella cassetta degli attrezzi:

http://www.itninja.com/software/oracle/java-2/7-552

Ovviamente questo script è stato propedeutico per preparare un pacchetto in SCCM 2007/2012

Ecco il link di download nel caso in cui, per poter funzionare un programma, dobbiamo scaricare una vecchissima versione non piu' disponibile on line:

http://www.oracle.com/technetwork/java/archive-139210.html

Vmware – Mettere un server Vmware in AD

Ecco un articolo interessante che mostra quali sono le metodologie da eseguire per mettere un server Vmware in AD:

http://cosonok.blogspot.it/2012/08/vmware-esxi-5-and-active-directory.html

SCCM - Microsoft Security Bulletin MS12-062 - Important Vulnerability in System Center Configuration Manager Could Allow Elevation of Privilege (2741528)

Vulnerability in System Center Configuration Manager Could Allow Elevation of Privilege (2741528)

Published: | Updated:
Version: 1.1

http://technet.microsoft.com/en-us/security/bulletin/ms12-062?goback=.gde_146556_member_162508207 

Executive Summary

This security update resolves a privately reported vulnerability in Microsoft System Center Configuration Manager. The vulnerability could allow elevation of privilege if a user visits an affected website by way of a specially crafted URL. An attacker would have no way to force users to visit such a website. Instead, an attacker would have to persuade users to visit the website, typically by getting them to click a link in an email message or Instant Messenger message that takes users to the attacker's website.
This security update is rated Important for all supported editions of Microsoft System Center Configuration Manager. For more information, see the subsection, Affected and Non-Affected Software, in this section.
The security update addresses the vulnerability by modifying the way that System Center Configuration Manager handles specially crafted requests. For more information about the vulnerability, see the Frequently Asked Questions (FAQ) subsection for the specific vulnerability entry under the next section, Vulnerability Information.
Recommendation. Microsoft recommends that customers apply the update at the earliest opportunity.

Affected Software 

SoftwareMaximum Security ImpactAggregate Severity RatingUpdates Replaced
Microsoft Systems Management Server 2003 Service Pack 3[1]
(KB2733631)
Elevation of PrivilegeImportantNone
Microsoft System Center Configuration Manager 2007 Service Pack 2[1]
(KB2721642)
Elevation of PrivilegeImportantNone
[1]This update is available from the Microsoft Download Center only. 

Non-Affected Software

Software
Microsoft System Center 2012 Configuration Manager

SCCM 2012 – Tutorial di installazione SCCM 2012 SP1 - Installation Tutorial

http://mountainss.files.wordpress.com/2013/02/system-center-2012-logo.png 
Per quanto riguarda SCCM copio ed incollo i vari tutorial del Blog da me appuntati per l'installazione di SCCM 2012 del Primary Site, secondary Site, WSUS, installazione SP1, soluzioni di backup.

Spero siano utili a qualcuno


P.S. Per visionare tutti gli articoli del blog su SCCM 2012 vi intito a visionare il seguente link:

http://www.alessandromazzanti.com/search/label/SCCM%202012


<---------->

Here you can find different tutorial, self maded, that explain you, step by step, how to install a primary and secondary Site, backup solution, SP1 install and WSUS patching.

I hope that you'll find them useful




P.S. If you are interested to view every blog article about SCCM 2012 you can follow the above link:

http://www.alessandromazzanti.com/search/label/SCCM%202012


SCCM 2007 - Installazione e deployment - Parte 2 di 2

Ecco delle configurazioni sui client:

Site Database -> Site Management -> Site -> Site Settings -> Client Agents
 

SCCM 2007 - Installazione e deployment - Parte 1 di 2

Installazione SCCM 2007

Ho preso spunto dai seguenti tre articoli, completandole con i miei test e traducendoli in italiano

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2008/A_4466-A-beginners-guide-to-installing-SCCM2007-on-Windows-2008-R2-Server.html

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Systems_Management_Server/A_4514-SCCM-2007-Additional-Configuration-on-a-2008-R2-Server.html

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Systems_Management_Server/A_4516-Windows-7-Deployment-using-SCCM2007-A-simple-guide.html

Mentre la Home di System Center Manager:

http://technet.microsoft.com/en-us/systemcenter/cm/bb507744

Per scaricare la Trial di SCCM 2007:

http://technet.microsoft.com/it-it/evalcenter/bb736730.aspx

Per scaricare invece il VHD:

http://www.microsoft.com/download/en/details.aspx?id=691

Articolo da visionare

http://windowsadminblog.blogspot.com/2010/08/guidelines-for-sccm-2007-sp2.html

Decide If You Should Extend the Active Directory Schema


Ecco i 4 step da seguire nell’installazione di SCCM 2007:

    Windows 2008 Server Installation
    Installazione ruoli per SCCM e Prerequisiti
    SQL & WSUS Installation
    SCCM Installation


Windows 2008 Server Installation

Installare il 2008 R2 con opzioni standard


  • Aggiungerlo al dominio con:

netdom renamecomputer %computername% /newname:newname


  • Dare l’Ip statico oppure usare il seguente comando

netsh interface ipv4 set address name="local area connection" static address netmask (gateway) 


  • Settare I DNS a mano oppure con il commando:netsh interface ipv4 set dnsservers name="local area connection" static address primary
 

  • Mettere il pc nel dominio oppure usare il seguente commando:


netdom join %computername% /domain:FQDN for AD 


  • Sulla scheda di rete disattivare IPV6 se non supportato dalla propria rete

Installazione ruoli per SCCM e Prerequisiti


  • Avviare la Server Manager ed installare i ruoli/feature .Net Framework, Remote Differential Compression e BITS IIS Server

  • Sempre con la console aperta installare il Windows Deployment Services (WDS) e Internet Information Services (IIS) con le seguenti opzioni:

        ASP.net
        ASP
        Windows & Basic Authentication
        Static Content
        URL Authorisation
        IIS6 Management Compatibility
        Webdav Publishing




  • Modificare il file %windir%\System32\inetsrv\config\schema\webdav_schema.xml togliendo l’ozione Read-only

- Cambiarlo da False a True - Cambiarlo da False a True - Change Cambiarlo da True a False

Avviare IIS Manager, selezionare Default site e localizzare l’icona webdav


  • Fare doppio click su WebDAV authoring rules selezionare 'Enable webDAV'
  • Rifacendo doppio click su WebDAV authoring rules selezionare 'Add Authoring Rule’, attenzione a settare come di seguito altrimenti la cosa non funziona neanche dopo
  •  



  • Selezionare webDAV settings e settare 'Allow Anonymous Property Queries' a true, 'Allow Custom Properties' a False, 'Allow property queries with infinite depth' a False e 'Allow Hidden Files to be Listed’ a True.
    Guardare il seguenti link per l’immagine:


  • Sempre all’interno di IIS Manager evidenziare il default website e selezionare Authentication. Fare doppio click su windows authentication e cliccare su enable.


SQL 2008 e WSUS 3.0 SP2


  • Va installato come prerequisite SQL 2008 e WSUS 3.0SP2.

  • Ecco il link del download di SQL 2008 R2:







  • Va abilitata la connectività SQL-IP per le interfacce di loopback ed IPV4


  • Per questo cercare la sezione IPV4 e loopback ed abilitarle entrambe




  • Scaricare WSUS 3.0 SP2 installarlo con le opzioni standard, mettere la sincronizzazione su manuale e selezionare i tipi di software che si vogliono aggiornare:

A questo punto è necessario verificare che siano soddisfatti I requisiti necessary per poter fare l’installazione da DVD

Ecco l’articolo che spiega il tutto:

http://technet.microsoft.com/en-us/library/bb681060.aspx


A questo punto va fatta l’estensione dello schema. Per poter fare l’estensione dello schema è necessario andare sul DVD

\SMSSETUP\BIN\i386\EXTADSCH.exe

Dirà di eventuali errori e warning per poter fare l’estensione dello schema ed eventuali soluzioni. Altrimenti uscirà da solo tranquillamente.
  • At this point to prevent future problems you shoud create the System Management container within the 'System' contained in AD and delegate the site server object (in this case CAN-DEV-DC2) the rights to create and modify objects within in.

  1. Open ADSIEdit snap-in using MMC, and connect to domain which you would like to create the System Management Container.
  2. In the console pane, expand Domain [computer fully qualified domain name], expand , and right-click CN=System. On the context menu, click New and then click Object.
  3. In the Create Object dialog box, select Container and click Next.
  4. In the Value field, type System Management and click Next, and then click Finish.

    • Aprire AD Users and Computers, cliccare su  View -> Advanced Features trovare  System -> Systems Management container.

    • Cliccare con il tasto destro del mouse -> Delegate Control selezioneare l’oggetto SCCM site Server nella finestra di dialogo. Cliccare NEXT e Selezionare 'create a custom task to delegate'.





  • Verificare che lo scope sia settato a  ' This folder, existing objects and creation of new objects in this folder'.

  • Mettere I permessi come in figura seguente:



  • Mettere i permessi come di seguito, se sbagliato questo creerà dei problemi sui ruoli di SCCM
  • Installare SCCM 2007 con le seguenti impostazioni:



  • A questo punto è necessario che la macchina virtuale abbia accesso ad internet e scarichi gli aggiornamenti



  • Alla fine di tutto dovrebbe apparire una schermata come di seguito:



  • Visionare gli errori su SCCM che si stanno verificando, cancellarli, dopo un po’ non dovrebbero ripresentarsi. (Site DB -> System Status-> Site Status -> Site -> Component Status)
  • Per verificare lo stato di installazione vedere l’articolo:http://technet.microsoft.com/en-us/library/bb693526.aspx


[Fonte http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2008/A_4466-A-beginners-guide-to-installing-SCCM2007-on-Windows-2008-R2-Server.html]



  • Site database ->Site Management -> Site Name -> Site Settings -> Boundaries > Right click, select 'new boundary'. Cambiare il 'type' in 'Active Directory Site' e selezionare l’opzione desiderata

  • Creare in AD due utenti 'SMSread' e  'SMSadmin' 


  • Site Management -> Site -> Site Settings -> Site Systems -> Site Cliccare con il tasto destroy del mouse e definire 'New Roles'. Accettare le opzioni della seguente schermata:

Selezionare le seguenti opzioni:
Server Locator
State Migration
Reporting
Software Update Point




Cliccare avanti e settare le seguenti opzioni:

  • Server Locator Point -> Lasciare le impostazioni di Defaults
  • State Migration Point -> Yellow Start e settare il path (tipo c:\smp)
  •  
  • Reporting Point -> Lasciare le impostazioni di Defaults
  • Software Update Point -> Lasciare le impostazioni di Defaults sulla prima schermata seguito da 'use this server as the active software update point'.
  • Lasciare le opzioni di default per la seconda, selezionare il tipo di update, piattaforma e lingua
  • Andare su Site Database -> Site Management -> Site -> Site Settings -> Site Systems -> Server > Fare doppio click su 'ConfigMgr' Distribution Point per attivare la finestra delle proprietà.
  • Abilitare l’opzione ' Allow Clients to transfer content from this distribution point using BITS, HTTP and HTTPS' option and click OK..
  • Fare doppio click su 'ConfigMgr Management Point' and enable the 'Allow Devices to use this management point' option.


  • Site Database -> System Status -> Site Status -> Site -> Component Status & Site System Status resettare gli errori, riavviare il server, adesso dovrebbero esserci solo warning e basta.
  • Attivare:
  •