CM 12 R2 Prerequisites on Server 2012 R2

In a next couple of posts I will try to share automated scripts for various installations. First of them will be for installing all prerequisites for installation of System Center Configuration Manager 2012 R2 on Windows Server 2012 R2

Script is simple and code will be shown here, but at the bottom of this post you can find download link so you don’t need to type script.

NOTE: In this script you need to be adjust path to configuration file and name of configuration file if you will use other than this

Open PowerShell and type:

Install-WindowsFeature –ConfigurationFilePath <CM12Prereqs.xml>

(mine is looking like this:

Install-WindowsFeature -ConfigurationFilePath ./CM12Prereqs.xml)

Here you can find .ps1 and .xml file for download as a .zip file CM12Prereqs.zip
More about this can be foud here
Advertisements

Manually updating Symantec AV for Sharepoint

If you will have need that you want to manually update Symantec Antivirus for SharePoint servers you can use existing definitions.

Main reason is that if you have Symantec Endpoint Protection, you are using Symantec Endpoint Protection Manager. For updating Antivirus for SharePoint you need to have Live Update server. From my point of view there is no common sense to have two “update” servers in same environment, one for every product, especially when both products are using same definition packages.

So in that case you can/want do it manualy.  Simple copy/paste can do the trick, but still you need to have this scripted. Biggest issue is how to deal with definition update folder from where you want to copy it, because it have name based on date (20140121.003).

Here is script example and inside you can find example how I was resolve this:

echo
::stopping Symantec Protection Engine service
Net Stop symcscan
::Wait 20 seconds till service is stopped
timeout /t 20
::continue with script
::Copy from: “C:\ProgramData\Symantec\Symantec Endpoint Protection\CurrentVersion\Data\Definitions\VirusDefs\%date:~6,4%%date:~3,2%*”
::Syntax %date:~6,4%%date:~3,2%* throws result yyyymm in folder name and * replace any other characters what will continue (for example: dd.xxx)
::At the end should be folder with date in name (20131113.xxx)
::Copy To: “C:\Program Files (x86)\Symantec\Scan Engine\Definitions\AntiVirus\VirusDefs”
::Use switches for confirming overwrite and to copy all files with all attributes
::Used switches:
::  /R           Overwrites read-only files.
::  /Y           Suppresses prompting to confirm you want to overwrite an
::               existing destination file.
::  /Q           Does not display file names while copying.
::  /I           If destination does not exist and copying more than one file,
::               assumes that destination must be a directory.
::Navigate to “C:\ProgramData\Symantec\Symantec Endpoint Protection\CurrentVersion\Data\Definitions\VirusDefs\%date:~6,4%%date:~3,2%*”
CD “C:\ProgramData\Symantec\Symantec Endpoint Protection\CurrentVersion\Data\Definitions\VirusDefs\%date:~6,4%%date:~3,2%*”
::copy all files from this directory to destination
xcopy *.* “C:\Program Files (x86)\Symantec\Scan Engine\Definitions\AntiVirus\VirusDefs\” /Y /Q
::Wait 20 seconds until copying is over
timeout /t 20
::Start Symantec Protection Engine Service
net start symcscan

Later on script was scheduled with good old AT.
Syntax:

AT 21:00 /every:M,T,W,Th,F,S,Su “C:\Folder\SymUpdTask.bat

In current age this way of updating can easily be called Retro 🙂

Cheers
Dubravko

 

System Center 2012 R2 and Windows Server 2012 R2

Microsoft has announced preview version of whole new System Center 2012 R2 suite.

You can download evaluation version together with Windows Server 2012 R2 preview here

http://www.microsoft.com/en-us/server-cloud/system-center/system-center-2012-r2.aspx

http://www.microsoft.com/en-us/server-cloud/windows-server/windows-server-2012-r2.aspx

From SCCM 2012 RC to SCCM 2012 SP1 in few steps.

I finally upgrade my System Center Configuration Manager form RC version to RTM version with SP1 included.

As I had “small” collation problem I couldn’t just simply reinstall it. For that reason I was uninstall my SCCM completely. Plan was to keep server name in Active Directory and to keep same site name.

In that reinstallation I was separate my SQL server from my SCCM server. Now I have SQL 2012 SP1 for all (future)System Center products, and SCCM is connected to it.

After one working day my job was done and I have fully functional SCCM. Now I have to wait for clients to contact SCCM. Most of clients were contact SCCM in next two days, but some clients don’t.

Then I use some old stuff which can be found on Niall Brady forum. As I’m very lazy Smile, and I don’t want to type all over again You can find solution for deploying/redeploying clients here.

System Center Service Pack 1 is generally available

Finally. Microsoft promise to customers that SP1 for System Center will be available “very early in 2013”. And 15th of January, SP1 is generally available. Smile

This service pack brings vey much new things but crucial is fully support for Windows Server 2012 and Windows 8 OS

More information and download location can be found here: http://www.microsoft.com/en-us/server-cloud/system-center/default.aspx.

How to manage virtual machines on your Windows Server 2012 Core with Hyper-V role.

If you install Windows Server 2012 Core, when you log on to server you will have only command prompt. Difference after you log on between Hyper-V 2012 and Windows Server 2012 Core with Hyper-V role is sconfig (so called blue) window. You can always start sconfig window by typing sconfig to your command prompt.

Hyper-V role by default does not install Hyper-V management console. If you try to run it you will receive error “c:\Windows\System32\virtmgmt.msc” does not exist. To install it you must use PowerShell

PowerShell give us possibility to install different Windows Features. To install Hyper-V management console you will use syntax: Add-WindowsFeature –name RSAT-Hyper-V-Tools

If you want to install other RSAT tools you can type Get-WindowsFeature to see names of available features and then type Add-WindowsFeature –name Name_Of_The_feature

System Center 2012 Configuration Manager Administrator Cookbook

Before few weeks I receive excellent book about System Center Configuration Manager 2012.

Name of the book is: Microsoft System Center 2012Configuration Manager Administrator Cookbook. It’s written by two MVPs, Brian Manson and Greg Ramsey, and reviewed by two another MVPs Torsten Meringer and Kim Oppalfens.

4941EN_Microsoft System Center Configuration Manager 2012 Administration Cookbook_cov

The more I read, I more understand complexity of System Center Configuration Manager, and tips and tricks about fine tuning. One of basic things is how to deal with SQL server. If you set up your SQL in wrong way, you will face problems lately. SQL can slow your Configuration Manager performance to almost unusable. But in the book you can find advices how to avoid this to happen.

System Center Configuration Manager is probably the most complex and feature rich product in the System Center suite. For managing all features you will need knowledge about IIS, SQL, WSUS, WMI, PXE, SSRS, operating systems and networking (and much more which I forgot probably). So I found this book very usable in every day working with Configuration Manger 2012 (CM12 as called in book).

Microsoft System Center 2012Configuration Manager Administrator Cookbook also can be very good for total beginners (administrators starting with System Center 2012). In book you can find practical advices and solutions how to continue when you are stuck, or how to do something from scratch (and avoid problems).

Generally I’m very satisfy with my copy of Microsoft System Center 2012Configuration Manager Administrator Cookbook, and I’m using it every day on my job. For checking my previous configuration of my System Center 2012 and when I plan to implement new feature to see how to do it.

If you are interested for this book you can find it on Packt publishing or Amazon.com

Enabling File Sharing on Windows Server 2012 Core and Hyper-V 2012

One new/old thing about File and Printer Sharing.

If you have Windows server 2012 Core or Hyper-V 2012 server you can face problems where you want to open admin shares on server. If you type \\servername\c$ you will receive error message that you can’t reach this share.

This is because File and Printer sharing is disabled by default in Windows Server 2012 and in Hyper-V 2012. To enable File and Printer Sharing in command prompt you must type:

netsh advfirewall firewall set rule group=”File and Printer Sharing” new enable=Yes

After this you will be able to reach admin shares on Windows Server 2012 Core and Hyper-V 2012.

This is applicable also to Windows Server 2012 with GUI.

Configuring VPN connection on server 2008 R2 using RRAS and configuring clients

One colleague ask me to help him with detailed steps how to configure VPN on server 2008 R2 and how to configure Windows XP and Windows 7 clients. So here it is.

Configuring VPN on server 2008 R2

Configuring VPN start with adding server role for RRAS.

Just follow next two pictures what to choose

Capture1

Capture2

Wait for wizard to finish, and then you will get this picture

Capture3

Now you have role installed. You must configure and enable RRAS

When you click on option Configure and Enable RRAS new wizard will start. Just follow the wizard in next 5 pictures.

Capture4Capture5Capture6

NOTE: You MUST have two NIC configured, one for internal use (LAN) and one for external use (WWW)

Capture7

Capture8

I prefer to choose IP address range and number of possible connecting clients son next picture will shown how to do that

Capture9

Capture10

If you have AD infrastructure configure your RRAS like this

Capture11

After this you will get this picture and click Finish

Capture12

Now your Server have successfully configured RRAS. Smile

Capture 14

Configuring client on Windows 7  for VPN access

Go to network and sharing center and choose option set up a new connection or network

Capture

Choose option Connect to a workplaceCapture2

For previously described configuration of RRAS option Use my Internet connection (VPN) will be right choice.

Capture3

Type your DNS name of RRAS server or public IP address, and follow steps in next three pictures.

Capture4Capture5Capture6

Additional option as authentication protocols can be founded in properties of your VPN connection. Most commonly used is already checked.

Capture7

Configuring client on Windows XP for VPN access

On Windows XP go to Network Connections and click Create a new connectionCapture1

A wizard will start. Follow next three pictures.

Capture2Capture3Capture4

Choose name for your VPN connection

Capture5

Type DNS name or public IP address of your previously configured RRAS (VPN) server

Capture6

Well done you are configure client for VPN access. Now you need to type your username and password before connect.

Capture8

Steps for configuring additional authentication protocols (if needed) is described in next two pictures. At first you must click Properties.

Capture9Capture10

I hope that this is helpful

BR

D.