Tuesday, September 21, 2010

Answers to MCSE and System Administrator Job Interview Questions asked by Daniel Petri

Collecting Answers to MCSE and System Administrator Job Interview Questions.

I am posting answers on http://sysadmin-interview.blogspot.com/

There questions are in 8 parts.


Scripts for IT

Started a blog http://www.scripts4it.com for IT related stuff. Posted some scripts written by me, useful in day-to-day working of System Administrators.

Tuesday, July 13, 2010

How to change qtp license type

Set license type as seat license
HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\QuickTest Professional\Rainbow
"LicType"=dword:00000000

Set license type as concurrent license
HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\QuickTest Professional\Rainbow
"LicType"=dword:00000001

Thursday, May 6, 2010

Cannot start Microsoft Office Outlook, Unable to open the Outlook window

Synopsis: When you open Outlook you get this message and Outlook disappears


"Cannot start Microsoft Office Outlook, Unable to open the Outlook window.
The set of folders could not be opened. The server is not available.
Contact your administrator if this condition persists."


Solution:
1. Click on Start
2. Open Run
3. Type or Copy Pest "Outlook.exe /resetnavpane"
4. Press Enter or Click OK

Friday, April 9, 2010

Split a word document into separate files

Here is a macro that can automatically split a large word document into several small ones.

1. Open you word file
2. Go to the View Tab > Macros > View Macro (or press ALT + F8)
3. In the Macro name box, type split
4. Click Create to open the Visual Basic Editor
5. Overwrite the newly created split subroutine with the code below
6. Create a tmp directory in drive c:
7. Run this macro

Sub split()
'
' split Macro
'
'
' Used to set criteria for moving through the document by page.
   Application.Browser.Target = wdBrowsePage

   For i = 1 To ActiveDocument.BuiltInDocumentProperties("Number of Pages")
     
      'Select and copy the text to the clipboard
      ActiveDocument.Bookmarks("\page").Range.Copy

      ' Open new document to paste the content of the clipboard into.
      Documents.Add
      Selection.Paste
' Removes the break that is copied at the end of the page, if any.
      Selection.TypeBackspace
      ChangeFileOpenDirectory "C:\tmp"
      DocNum = DocNum + 1
      ActiveDocument.SaveAs FileName:="Page_" & DocNum & ".doc"
      ActiveDocument.Close

      ' Move the selection to the next page  in the document
      Application.Browser.Next
   Next i
   ActiveDocument.Close savechanges:=wdDoNotSaveChanges

End Sub







Tuesday, March 30, 2010

Google secrets - Less Known Google Pages and Funny Google Search Items

Google Easter eggs

Various Google services hides Easter eggs meant to be amusing entertainment.

Sunday, March 21, 2010

Windows cannot access the file gpt.ini for GPO CN={31B2F340-016D-11D2-945F-00C04FB984F9}

Event ID:1030

Windows cannot query for the list of Group Policy objects. Check the event log for possible messages previously logged by the policy engine that describes the reason for this.

Event ID: 1058


Windows cannot access the file gpt.ini for GPO CN={31B2F340-016D-11D2-945F-00C04FB984F9},CN=Policies,CN=System,DC=,DC=. The file must be present at the location <\\DOMAIN.EXT\sysvol\DOMAIN.EXT\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\gpt.ini>. (Access is denied. ). Group Policy processing aborted.


These event log are driving me crazy for last 2hrs, finally I got the solution.

First of all what is this CN={31B2F340-016D-11D2-945F-00C04FB984F9}?
{31B2F340-016D-11D2-945F-00C04FB984F9} is default domain policy
(http://support.microsoft.com/kb/216359)

Solution

Try accessing the following location while logged on to the server which is
having the problem Vs the server which is not seeing the problem.

\\DOMAIN.EXT\sysvol\DOMAIN.EXT\Policies\ {31B2F340-016D-11D2-945F-00C04FB984F9}\gpt.ini

On the server which is seeing the errors and we are not able to access the
following share, please ping the domain and see which domain controller is
responding and see if we are able to access that DC doing a \\dcname

If accessing
\\DOMAIN.EXT\sysvol\DOMAIN.EXT\Policies\ {31B2F340-016D-11D2-945F-00C04FB984F9}\gpt.ini
fails, please try accessing the same file going to the \\DOMAIN.EXT
and then locating the file.


Also check SYSVOL permission settings as described in MS KB 290647 (http://support.microsoft.com/kb/290647)

If all of these are successful and we are still seeing the error message.
Then, there should be a problem with the DFS cache as it didn't get pruged on
the client.

to purge the cache, please use the resource kit utility DFSUTIL

Go to command prompt and run these commands

C:\>dfsutil /purgemupcache
C:\>gpupdate /force


Now check event viewer , You should have event log 1704

Security policy in the Group policy objects has been applied successfully.