Friday, 18 May 2012

Error: ANS1705E System Writer(s) 'system writer' do(es) not exist.

If System Writers is not showing in "vssadmin list writers", there is some issue with permission on "%windir%\winsxs\temp\PendingRenames".
To allow appropriate permission, use below mentioned commands.

-Open cmd
-Go to %windir%\winsxs
-Type the following commands to allow permission:

Takeown /f %windir%\winsxs\temp\PendingRenames /a
icacls %windir%\winsxs\temp\PendingRenames /grant "NT AUTHORITY\SYSTEM:(RX)"
icacls %windir%\winsxs\temp\PendingRenames /grant "NT Service\trustedinstaller:(F)"
icacls %windir%\winsxs\temp\PendingRenames /grant BUILTIN\Users:(RX)
Takeown /f %windir%\winsxs\filemaps\* /a
icacls %windir%\winsxs\filemaps\*.* /grant "NT AUTHORITY\SYSTEM:(RX)"
icacls %windir%\winsxs\filemaps\*.* /grant "NT Service\trustedinstaller:(F)"
icacls %windir%\winsxs\filemaps\*.* /grant BUILTIN\Users:(RX)
net stop cryptsvc
net start cryptsvc


Now again run "vssadmin list writers" in command prompt, "system writers" should be visible there.

Friday, 20 January 2012

How to enable PHP Extension in Windows Server 2003 IIS 6.0.

Installing PHP:-

1.    Download PHP.
2.    Create a directory in C:\PHP as installation directory. Then extract the files from php-5.1.4-Win32.zip into C:\PHP.
3.    Locate the file ‘php.ini-recommended’ in C:\PHP and rename it to ‘php’. (without the quotes of course)
4.    Open the ‘php.ini’ file and find the line which reads extension_dir = “./” and change it to extension_dir = “C:\PHP\ext”.
5.    Add the location of PHP directory to the server’s PATH environment variable so that Windows knows where to look for any PHP related executables (such as the PHP extension DLL‘s).
-To do this Right-click on My Computer,
-click Properties
-On the Advanced tab click Environment Variables.
-In the Environment Variables dialog box, under System variables highlight the Path variable and click Edit.
-Add ‘;C:\PHP’ (be sure to include the semi-colon separator) and click OK.
6.    Re-boot the server for this change to take effect.

----------------------------------------------------------------------------------

Configuring IIS to work PHP under IIS 6.0:-

 
1.    First we need to create and then enable an appropriate Web Service Extension so that IIS will both recognise and allow PHP files to be processed by the appropriate script engine.

2.    There is easier way of doing this by using the ‘iisext.vbs’, which we can find in C:\Windows\System32. Once we have this “iisext.vbs” file, we have to run below command in command prompt under C:\Windows\System32 directory.

cscript iisext.vbs /AddFile c:\PHP\php5isapi.dll 1 PHPISAPI 1 “PHP ISAPI”

3.    Now we can see, this script creates a new Web Service Extension in IIS, named “PHP ISAPI” with a status of Allowed.
----------------------------------------------------------------

For more information and screen shots on this, go to http://www.iisadmin.co.uk/?p=4

Monday, 9 January 2012

How to check MX record of any Domain?

-Open a commnad prompt.
-Type "nslookup"
-Type "set q=mx"
-Type Domain name for which we want MX Record.

See below example.

-------------------------------
P:\>nslookupDefault Server:  stcdcpr01.prime-uk.local
Address:  10.250.1.12

> set q=mx> google.comServer:  stcdcpr01.prime-uk.local
Address:  10.250.1.12

google.com      MX preference = 10, mail exchanger = aspmx.l.google.com
google.com      MX preference = 50, mail exchanger = alt4.aspmx.l.google.com
google.com      MX preference = 40, mail exchanger = alt3.aspmx.l.google.com
google.com      MX preference = 30, mail exchanger = alt2.aspmx.l.google.com
google.com      MX preference = 20, mail exchanger = alt1.aspmx.l.google.com
aspmx.l.google.com      internet address = 209.85.229.27
alt4.aspmx.l.google.com internet address = 74.125.81.27
alt3.aspmx.l.google.com internet address = 74.125.127.27
alt2.aspmx.l.google.com internet address = 209.85.173.27
alt1.aspmx.l.google.com internet address = 173.194.69.27

Friday, 6 January 2012

Restore deleted object in 2008 Active Directory?

There are few tool by which we can check deleted objects. Few of them are:
1) ADRestoreNET
2) ADRestore.exe

How to use ADRestoreNET
-Download ADRestoreNET.
-Extract the zip file,
-Install ADRestore.NET.msi,
-Open ADRestore.NET from Start>Program,
-Select Domain Controller Name, and click on Enumerate Tombstone.
-It will display all deleted objects.
-Click on object which we want to restore.
-Click on properties to show object details.
-Click on restore option to restore it.

How to use ADRestore.exe?
-Download ADRestore.exe.
-Extract the zip file,
-Open command prompt,
-type "adrestore.exe" (Without qoutes)
-It will display the active directory deleted objects
-If we want to recover the deleted user
-type "adrestore /r" (Without qoutes)
-Click yes on objects which we want to restore.


Note: Once we will restore object, it will show in correct OU where it was stored previosly. But it would be in disabled mode, we have to enable it manually.

Thursday, 20 October 2011

Outlook Emails are not syncing with Blackberry for all users

Enable Hard Delete Reconcilation Option, it will resolve the issue.

To enable Hard Deletes Reconciliation
If using BlackBerry Enterprise Server 4.1, complete the following steps:
  1. Open BlackBerry Manager.
  2. In the Explorer view, click Server.
  3. On the Server Configuration tab, click Edit Properties, then click Messaging.
  4. For the Hard Deletes Reconciliation option, choose True from the drop-down menu.
  5. On the computer that hosts the BlackBerry Dispatcher, restart BlackBerry Dispatcher service. Important: Restarting certain BlackBerry Enterprise Server services delays email message delivery to BlackBerry smartphones.
If using BlackBerry Enterprise Server 5.0 or BlackBerry Enterprise Server Express 5.0, complete the following steps:
  1. Log into the BlackBerry Administration Service.
  2. In the BlackBerry Administration Service, on the Servers and components menu, expand BlackBerry Solution topology > BlackBerry Domain > Component view > Email.
  3. Click the instance that you want to change.
  4. Click Edit instance.
  5. On the Messaging tab, in the Messaging options section, in the Hard deletes reconciliation drop-down list, click True.
  6. Click Save all.
  7. On the computer that hosts the BlackBerry Dispatcher, restart BlackBerry Dispatcher service.

Friday, 30 September 2011

Backup-Error message when you try to perform a system state backup in Windows Server 2008: "ERROR - The location for backup is a critical volume"

Reason: This behavior occurs because system state backups to critical volumes are blocked in Windows Server 2008.

Solution: We can change the default behavior of Windows Server 2008 by adding a registry entry.

Registry entry to enable system state backups to critical volumes

Warning: Serious problems might occur if you modify the registry incorrectly by using Registry Editor. So be ensure to have a backup of registry before make any change in it.
To enable the system state backup files to be targeted to critical volumes, We must set the value of the AllowSSBToAnyVolume registry entry under the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wbengine\SystemStateBackup\
 
Set the value of this entry as follows:
Name: AllowSSBToAnyVolume
Data type: DWORD
Value data: 1
Note: When this value is set to 1, system state backups to any volume are enabled. To revert to the default behavior, set the value to 0.

Backup-Procedure to Take System State Backup by Windows Server Backup in Windows 2008

Windows Server Backup has a feature to take backup by GUI and CUI mode both. 
We can take System Drives Backup either by GUI mode or CUI mode. But to backup the System State in Windows Server 2008, we have to use the command line "WBADMIN". Below mentioned is the procedure to backup System State.

  • Open Command Prompt by Start>>>Run>>>CMD
  • C:\>WBADMIN START SYSTEMSTATEBACKUP -backuptarget:E: 
         Note: (E: is destination drive, where backup to be save.)
  • Once we excute the above command, it will ask to confirm start backup procedure. Click "Y" to start the backup. 
  •   Backup will execute and take some time to get complete.


Note: During executing wbadmin command we might get error "ERROR - The location for backup is a critical volume".