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

 
Advertisements

Windows 8 MAK activation

When I try to activate Windows 8 enterprise I receive DNS error. This was very strange to me because I normally could open web pages in same time.

This was happened because Windows 8 enterprise by default try to activate itself using KMS

So I found workaround on Microsoft web pages and here it is

First you must run Command Prompt as Administrator (right click in lower left corner of the screen)

Blog 1

Then in command prompt you have to type slmgr.vbs –ipk your_product_key

Blog 2

Hit Enter an then you will receive this message: Installed product key your_product_key successfully.

Blog 3

When you check your windows activation you will see that your copy of windows is activated now

Blog 4

NOTE your product key should look a like xxxxx-xxxxx-xxxxx-xxxxx-xxxxx, where x could be any number or character

What to do if your Hyper-v admin shares wont work

At friday had strange situation. I was installing my new Hyper-V server, and I had problems with migration. I was exported machine with Hyper-V manager but i couldn’t copy it to new Hyper-V server.

Why? I couldn’t reach admin shares (C$, D$) to copy virtual machine for import. I set up everything, checked firewall twice but problem was still here.

Then I think about solution to enable file and printer sharing.

And how to do that at Hyper-V? Because Hyper-V is Core OS any you don’t have all nice mmc plug-in for firewall setup.

You must do that using Command Prompt.

Syntax for this is:

“netsh firewall set service fileandprint”

After this all shares is accessible and i was completed my migration (import) to new Hyper-V machine.

How to delete EISA recovery partition from Windows

 

I had problem with deleting EISA partition on several old disks from IBM/LENOVO computers. Usually solutions was to contact manufacturer for some tools but I found this solution on www.mydigitallife.info

Solution is for Windows Vista but it also works on Windows XP.

Here is quotation of solution:

Here’s the trick to delete and remove the EISA recovery or diagnostic partition in Vista. Before proceeding with the deletion action, make sure that at least a set of Recovery Disc Media has been created. Else, you won’t be able to restore your computer to working and factory default condition when any problem on PC requires reinstallation.

  1. Open a command prompt as administrator.  (On Windows XP just open Command Prompt)
  2. Run Diskpart application by typing Diskpart in the command prompt.
  3. In the “Diskpart” prompt, enter rescan command and press Enter key to re-scan all partitions, volumes and drives available.
  4. Then type in list disk and press Enter key to show all hard disk drive available.
  5. Select the disk that contains the partition you want to remove. Normally, with just 1 hard disk, it will be disk 0. So the command will be:

    select disk 0

    Finish by Enter key.

  6. Type list partition and press Enter key to show all available and created partition in the disk selected.
  7. Select the partition that wanted to be deleted by using the following command, followed by Enter key:

    select partition x

    where x is the number of the EISA based recovery partition to be removed and unlocked its space. Be careful with the number of this partition, as wrong number may get data wipes off.

  8. Finally, type in delete partition override and press Enter key.

Once the partition has been deleted, exit from Diskpart, and now users can use the much familiar and much easier Disk Management tool in Windows (diskmgmt.msc) to manipulate the freed unallocated partition. Users can create a new volume (partition) with this space, or simply merge it to existing partition by extending the size of the existing partition.

 

And here is picture of diskpart

Diskpart Window