VSS Backup Fails When Backing Up the System State

You are running Windows Server Backup (WSB) and it continues to fail. In your Event Log, you are seeing Windows Server Backup return the error 2155348249. You’ve tried to use both a local drive disk and a network share for the backup destination, but neither works.

A typical error in the Event Log:
The backup operation that started at ‘?2013?-?03?-?16T00:54:33.120000000Z’ has failed because the Volume Shadow Copy Service operation to create a shadow copy of the volumes being backed up failed with following error code ‘2155348249’. Please review the event details for a solution, and then rerun the backup operation once the issue is resolved.

Backup-Error2

 

 

 

 

 

 

 

 

 

 

Backup-Error

 

 

 

 

 

 

 

Solution

In Windows 2008+, you will notice that the Windows installation creates a 100MB partition (the System Reserved Partition [SRP]) that is not assigned a drive letter but is mounted to C:\Windows\SRPPartition. Here’s the problem, when you are doing a full bare metal recovery backup, which includes the system state, just the system state, or trying to back up everything, WSB will use VSS to backup the partitions, including SRP. But 100 MB is too small to allow for this! Not a very smart design choice. You can confirm that this is the problem by removing the bare metal and system state backup options, and only backing up your C:. That will work. But add system state, and it fails.
The solution is to have VSS use the C: or another drive when creating the snapshot of the SRP. This way the limited 100 MB is no longer an issue.
Select any drive and check the free space.
Diskspace

 

 

 

 

 

 

 

Right click on the drive and click on Properties.

Then right click on the drive that you choose to configure shadow copies to keep the snapshot.

ShadowCopies

 

 

 

 

 

 

 

 

Notice that the default is for VSS to use the \\?\Volume{20babdc5-8b23-11……

ShadowCopies1

 

 

 

 

 

 

 

 

 

 

Click on settings.

shadowcopies2

 

 

 

 

 

 

 

 

 

Choose the E: or another drive with ample space, set the Maximum size to No Limit, and click OK.

Click Ok to exit the System Reserved Properties window.
Now run WSB and backup the System State. It should work just fine!

Another Method:

Solution:

I have immediately checked the Volume Shadow Copy Service to be sure that it is running and saw that it is set to “Manual” and was “Stopped”. I haven’t stopped this service manually. I have set it to automatic and started the service.

Additionally I have checked the other services and saw that the Virtual Disk Service is also set to manual and was stopped.
I have seen this service several times running during formatting a disk and thought that it might be necessary during the System Image Creation.

I have set it to automatic and started the service too and tried again to create a backup.

EMERGENCY RESCUE KITS

EMERGENCY RESCUE KITS FOR HIGHLY AFFECTED WORKSTATION BY VIRUS
Firstly disconnect the computer from the network and uninstall existing Antivirus then do the following process whatever requires accordingly:

  1. Process Explorer (Check Processes in Details) ***
  2. Malware Bytes Antimalware (Clean Malware) ***
  3. TDSSKiller (Clean Malicious Rootkits cleaner)
  4. Spy Hunter (effective Tool) (Spyware, Scamware, Registry & Rootkits) ***
  5. KVRT – Kaspersky Virus Removal Tool (Virus & Malware Cleaner) ***
  6. Norton Power Eraser (Fake Antivirus, Scamware & Rootkits) **
  7. Stinger (Process, Registry & Rootkits) **
  8. Hitman Pro (Registry & Malware Cleaner) ***
  9. Hijack This (Registry Check & Clean) **
  10. CCleaner (Registry Clean) **
  11. AdwCleaner/Ad-Aware Free Antivirus+ (Clean Ad Banner in Browsers) **
  12. AVAST Browser Cleaner (Clean Ad Banner in Browsers) **
  13. ADBlockPlus (Block unwanted advertise in browsers every time) **
  14. Any Other Antivirus (i.e. Microsoft Security Essential or eSET Smart Security or Kaspersky Internet Security or TrendMicro Internet Security) ***

*** = Very Effective Tool
** = Effective Tool

After successful operation then install Symantec Endpoint High Security Version from File Server.

Note: If you cannot do the above tasks due to frequent pc crash or hang then you can use “Kaspersky Rescue Disk 10” Boot CD to check viruses and malware before loading Windows.

Create Bootable USB Pendrive using Command Mode


Creating a usb pendrive using command prompt is not hard, it is one of the most common ways to create a bootable usb.

      This method does not work if your operating sistem is windows xp or windows 8 , you cannot select the primary partition in comand prompt.

       You just need to follow these simple steps:

  1. First step is to obtain the windows files from somewhere and save them to a folder in your pc. You can rip a windows dvd , or if you have the iso image file you can open it with magic disc or daemon tools or even winrar , and you need to copy the whole content to a folder anywhere in your pc , you just need to make sure you know where it is located.
  2. Make sure your usb stick is inserted, go to start search cmd , right click the  file and select run as administrator. The command prompt will appear, now you need to write the following comands:
  3. diskpart→list disk→select disk 1(chose  the usb device, you will recognize it by its size)→clean(this will erase the usb)→create partition primary→select partition 1→active→format fs=ntfs(this will format the usb drive and will take 10-15 minutes)→Untitled 5
  4. After the format is done you have to continue writting  in command promt :  →assign(now you will notice that the usb drive changed its letter to (H): or (G))→exit(this command will exit the disk part function)
  5. Now you have to write the path to the executable file in your windows saved folder , make sure that in your windows folder you have the boot folder with the bootsect executable file.Untitled 8
  6. In my case the command goes like this:   E:→cd win 7 sp1→

           →cd boot→bootsect.exe/nt60 h:(h is the letter of the usb drive ,this comand will update the boot core)→exit (this will exit command prompt).
Untitled 6

  1. Now you have to copy all the files in the windows folder to your usb drive. Untitled 7
  2. ALL DONE. You can now restart your pc and boot from the usb hard drive.

How to Create Bootable USB with HIREN BootCD

Source: http://www.hirensbootcd.org/

To launch Hiren’s BootCD from USB flash drive, first of all, your BIOS settings should be configured in order to change the boot order of your computer to USB drive. If you are having problem on changing boot order in BIOS, please refer Change the Boot Order in BIOSdocument. Please note that some computers may not support booting from USB drive and the steps below only works for the versions of Hiren’s BootCD 9.7 or newer.

Step1: Formating USB Flash Drive

Please note that, all data on your usb flash drive will be lost. Before doing this step, don’t forget to backup your files on the usb flash drive.
1. Connect a 512 MB or above flash drive.
2. Download and run USB Disk Storage Format (34 KB). Follow the steps in the screenshots below:

Step2: Installing Grub4Dos to USB Flash Drive

Download grub4dos.zip (187 KB) to desktop. Follow the steps below:

1. Right click to the zip file and click ‘Extract All…’

2. Click Next

3. Click Next to extract archive contents

4. Click Finish

Now open ‘grub4dos’ folder created on your desktop. Run ‘grubinst_gui.exe’ inside of grub4dos folder and follow the steps below:

1. Run grub4dos

2. Click ‘Run’ on if you face with a Security Warning window

3. If you are not sure which disk is your USB Flash Drive, select the drive with the same size with your USB flash drive.

4. Installation of grub4dos completed. Press Enter to close the window.

Step3: Copy Files to USB Flash Drive

1. Put Hiren’s BootCD (9.7 or newer) into the CD Drive.
2. Copy everything from CD to USB Flash Drive.
3. Copy grldr and menu.lst (from HBCD folder of the CD) to the usb drive’s root folder. Finally contents of your USB Flash Drive should look like as below:

Final View of USB Flash Drive Contents

How to Disable File Sharing Using Remote Desktop

Sometimes we need to disable all types of file sharing including remote desktop, smb file sharing etc. You want someone can access your computer using remote desktop to use only programs as a limited user but cannot share any files from this computer to another computer. Then what will you do? if that is the requirement !!!!!

Here is the very simple way you can lock copy/paste option in remote desktop connection on your windows based computer.

Run gpedit.msc

 

 

 

Group-Policy-Copy-Paste

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Navigate to: Computer Configuration \ Administrative Templates \ Windows Components \ Remote Desktop Services \ Remote Desktop Session Hosts \ Device and Resource Redirection

Group-Policy-Copy-Paste-Path

 

 

 

 

 

 

RemoteDesktopClipboard

 

 

 

 

 

 

 

 

 

Enable the selected Rules.

It will take affected after you restart the PC.

To re-enable RDP Copy/Paste:

Disable or leave ‘not configured’ then log off/back on

View Google Calendar in Outlook 2010

View Your Google Calendar in Outlook 2010

Google Calendar is a great way to share appointments, and synchronize your schedule with others. Here we show you how to view your Google Calendar in Outlook 2010 too.Google Calendar

Log into the Google Calendar and under My Calendars click on Settings.

sshot-2010-05-29-[00-42-34]

Now click on the calendar you want to view in Outlook.

2googlecal

Scroll down the page and click on the ICAL button from the Private Address section, or Calendar Address if it’s a public calendar…then copy the address to your clipboard.

3googlecal

4googlecal

Outlook 2010

Open up your Outlook calendar, click the Home tab on the Ribbon, and under Manage Calendars click on Open Calendar \ From Internet…

15googlecal

Now enter the link location into the New Internet Calendar field then click OK.

16googlecal

Click Yes to the dialog box that comes up verifying you want to subscribe to it.

17googlecal

If you want more subscription options click on the Advanced button. Here you can name the folder, type in a description, and choose if you want to download attachments.

sshot-2010-05-29-[00-51-20]

That is all there is to it! Now you will be able to view your Google Calendar in Outlook 2010.

sshot-2010-05-29-[00-54-07]

You’ll also be able to view your local computer and the Google Calendar side by side…

sshot-2010-05-29-[00-55-59]

Keep in mind that this only gives you the ability to view the Google Calendar…it’s read-only. Any changes you make on the Google Calendar site will show up when you do a send/receive.

sshot-2010-05-29-[00-56-52]

If live out of Outlook during the day, you might want the ability to view what is going on with your Google Calendar(s) as well. If you’re an Outlook 2007 user, check out our article on how to view your Google Calendar in Outlook 2007.

Search AD and Add Employee ID–PowerShell Script

Search AD and Add Employee ID–PowerShell Script

Script #1

Here is a simple PowerShell script which you can use to add Employee ID in a user object. This script requires PowerShell Active Directory module.

Note: I am not searching AD for the user account.  My assumption is the user account already exist in AD.

image

Input file – Input file (Users.csv) contains user names and employeeID in the following format:

image

 

Script #2 –  Search AD using email address and update the employee ID value.

image

Input file (users.csv) contains email address and employee ID in the following format:

image

 

===========================================================================

 

Update the input file with telephone number in the following format:

UserName,EmployeeID,TelNumber
User1,12345,17131112222

And update the code with the correct attribute – http://portal.sivarajan.com/2010/07/aduc-and-ldap-reference-sheet.html

Fax facsimileTelephoneNumber
Home homePhone
Notes info
IP phone ipPhone
Mobile mobile

Here is the updated script:

Import-module ActiveDirectory
Import-CSV “C:\Scripts\Users.csv” | % {
$User = $_.UserName
$ID = $_.EmployeeID
TelN = $_. TelNumber
Set-ADUser $User -employeeID $ID – homePhone TelN
}

FSMO Roles Troubleshooting Links

 

FSMO Roles:

1. http://blogs.technet.com/b/canitpro/archive/2013/05/27/step-by-step-active-directory-migration-from-windows-server-2003-to-windows-server-2012.aspx

2. http://www.petri.co.il/transferring_fsmo_roles.htm

3. http://social.technet.microsoft.com/Forums/windowsserver/en-US/8cd32049-07af-49da-8650-19d1cc78500b/how-to-transfer-fsmo-roles-from-windows-2003-ent-32-bit-r2-to-windows-2008-ent-64-bit-r2?forum=winservergen

4. http://www.nogeekleftbehind.com/2013/05/28/powershell-move-ad-fsmo-roles-in-server-2012/

5. http://www.techrepublic.com/article/step-by-step-learn-how-to-transfer-and-seize-fsmo-roles-in-active-directory/

6. http://www.archy.net/windows-server-2012-migrating-fsmo-roles/

 

Global Catalog Server:

http://www.youtube.com/watch?v=v0G2u_XUrwk

How to Add Additional Field in Active Directory

I’ve seen this question several times on various message boards so I wanted to write a step by step entry on how to do this. User objects have an employeeID attribute but it doesn’t appear by default in active directory users & computers. The following version of the script that has been modified by Jeremy Saunders that was originally written by Sakari Kouti. ‘ ————————————————————————- ‘ Script by Sakari Kouti (see http://www.kouti.com) ‘ You have a royalty-free right to use, modify, reproduce and distribute ‘ this script (and/or any modified version) in any way you find useful, ‘ provided that you agree that Addison-Wesley or Sakari Kouti has no ‘ warranty, obligations or liability for the script. If you modify ‘ the script, you must retain this copyright notice. ‘ ————————————————————————- ‘ ‘ Modified by Jeremy@jhouseconsulting.com 28th April 2014 ‘ Added the logic so that the value can be cleared. ‘ Option Explicit Const ADS_PROPERTY_CLEAR = 1 Dim wshArguments, objUser, objSchemaEmployeeID, strCurrentID, strEmployeeID, intMaxLen On Error Resume Next Set wshArguments = WScript.Arguments Set objUser = GetObject(wshArguments(0)) Set objSchemaEmployeeID = GetObject(“LDAP://schema/employeeID”) intMaxLen = objSchemaEmployeeID.MaxRange If objUser.employeeID <> “” Then strCurrentID = objUser.employeeID Else strCurrentID = “empty” End If strEmployeeID = InputBox( _ “The current Employee ID is ” & strCurrentID & vbCrLf & _ vbCrLf & _ “Enter the new Employee ID (1 through ” & intMaxLen & ” chars)” & vbCrLf & _ vbCrLf & _ “Type empty or clear to clear the value altogether.”, _ Right(objUser.Name, Len(objUser.Name) – 3) & ” Employee ID”, _ objUser.employeeID) If strEmployeeID = “” Then WScript.Quit ‘User clicked Cancel If Len(strEmployeeID) > intMaxLen Then MsgBox “The new Employee ID was too long and it was not saved.”, _ vbCritical, “Error Occurred” Else Err.Clear If (trim(strEmployeeID) = “” or _ trim(lcase(strEmployeeID)) = “empty” or _ trim(lcase(strEmployeeID)) = “clear”) Then objUser.PutEx ADS_PROPERTY_CLEAR, “employeeID”, 0 Else objUser.employeeID = trim(strEmployeeID) End If objUser.SetInfo If Err Then MsgBox “The new Employee ID was not saved.”, _ vbCritical, “Error Occurred” End If Step1: Download the script and save it on your PC. I’ve put the script on my C drive in a folder called AddID Step2: In ADSI Edit go to the configuration container and navigate to CN=DisplaySpecifiers, CN=409) In the right pane find CN=user-display and right click and select properties. Step3: Select the adminContextMenu attribute. Add the following value 2, Employee &ID, path to script Note: If 2 is in use just pick the next number. In my example I’ve put the script in c:\addid\employeeid.vbs UPDATE: I should have added this when I first posted this but thanks to Rob Sampson for pointing it out. From Rob (Thanks Rob!):

you could place “employeeid.vbs” in your NetLogon share of a Domain Controller (which then replicates to all other DCs), and have 2. Employee &ID, \\domain.com\sysvol\domain.com\scripts\employeeid.vbs

Screen shot below shows that example in my mktest.com domain. Step4: Now if you use Active Directory Users & Computers you can right click on a user and employee ID should appear. You can select the field and edit it:

Additional Link: http://en.megacrack.es/2010/01/29/como-dar-uso-al-campo-employeeid-en-el-directorio-activo/

Add