Thursday, January 24, 2013

How to enable "copy to" user profile button in Windows 7


In Windows 7  Microsoft decided to disable the ability to copy profiles to the Default profile using this classic method. In fact, the only profile you can copy from is the “Default” profile itself! This prevents you from customizing a profile, and copying it anywhere.


There is a piece of software that will enable this button again.

Simply download "Windows enabler"( its a freeware Utility you can download it from internet) and start it as system administrator (right click on programs symbol) on the box where you want to copy the local user profile to the roaming profile. Go to the system tray and activate the "windows enabler". Now the "copy to" button gets enabled once you click on it.

Wednesday, January 23, 2013

How to Remove "Copy" prefix while Importing .pst Outlook Calendars

From  Outlook client:
  1. Press Alt+F11 which will open the VBA window. 
  2. In the left pane, navigate to Project1-MS Outlook Object and double-click 'ThisOutlookSession'.
  3. Paste the code into the window in the right pane.
  4. Press the green arrow button to execute the code.

Script

Sub FixCopy()
Dim calendar As MAPIFolder
Dim calItem As Object
   
Set calendar = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderCalendar)
       
Dim iItemsUpdated As Integer
Dim strTemp As String

iItemsUpdated = 0
For Each calItem In calendar.Items
    If Mid(calItem.Subject, 1, 6) = "Copy: " Then
      strTemp = Mid(calItem.Subject, 7, Len(calItem.Subject) - 6)
      calItem.Subject = strTemp
      iItemsUpdated = iItemsUpdated + 1
    End If
    calItem.Save
Next calItem

MsgBox iItemsUpdated & " of " & calendar.Items.count & " Items Updated"

End Sub

 

Thursday, January 3, 2013

Compacting the NTDS Database NTDS.DIT



Compacting the AD DS database NTDS.DIT improves performance. The improvement varies depending on amount of changes to the database.

Stop "Active Directory Domain Services" (also stops the services below)
-File Replication Service
-Kerberos Key Distribution Center
-Intersite Messaging
-DNS Server


ntdsutil
ntdsutil: activate instance ntds
Active instance set to "ntds".
ntdsutil: files
Service "NTDS" is running. Stop the service before binding to this Active Direct
ory database.
ntdsutil: files
file maintenance: compact to c:\temp
Initiating DEFRAGMENTATION mode...
Source Database: C:\Windows\NTDS\ntds.dit
Target Database: c:\temp\ntds.dit
Defragmentation Status (% complete)
0 10 20 30 40 50 60 70 80 90 100
|----|----|----|----|----|----|----|----|----|----|
...................................................
It is recommended that you immediately perform a full backup
of this database. If you restore a backup made before the
defragmentation, the database will be rolled back to the state
it was in at the time of that backup.
Compaction is successful. You need to:
copy "c:\temp\ntds.dit" "C:\Windows\NTDS\ntds.dit"
and delete the old log files:
del C:\Windows\NTDS\*.log
quit
quit



copy "c:\temp\ntds.dit" "C:\Windows\NTDS\ntds.dit"
del C:\Windows\NTDS\*.log





ntdsutil
ntdsutil: activate instance ntds
Active instance set to "ntds".
ntdsutil: files
Service "NTDS" is running. Stop the service before binding to this Active Direct
ory database.
ntdsutil: files
file maintenance: help
? - Show this help information
Checkpoint - Dump Jet checkpoint file
Checksum - Perform Jet physical integrity check
Compact to %s - Compact DB to specified directory
Dump page %d - Dump Jet db %d page number
Header - Dump the Jet database header
Help - Show this help information
Info - Return information about DS files
Integrity - Perform Jet logical integrity check
Logfile %s - Dump Jet log file %s. %s could be absolute
path or just the log file name in log dir.
Metadata - Dump Jet db metadata
Move DB to %s - Move DB to specified directory
Move logs to %s - Move log files to specified directory
Quit - Return to the prior menu
Recover - Perform soft database recovery
Set backup exclusion key - Set backup exclusion key for the AD DS/LDS.
Set default folder security - Reset security on NTDS folders to default
values
Set path backup %s - Set online backup directory path
Set path DB %s - Set DB file path
Set path logs %s - Set logging directory path
Set path working dir %s - Set AD DS/LDS working directory path
Space usage - Dump Jet db space usage

NTDS Semantic Database Analysis in ADDS

  

ntdsutil

ntdsutil: activate instance ntds

Active instance set to "ntds".

ntdsutil: semantic database analysis





semantic checker: help

? - Show this help information

Check Quota - Integrity-check quota-tracking table

Get %d - Get record info with given DNT

Go - Start Semantic Checker with No Fixup

Go Fixup - Start Semantic Checker with Fixup

Help - Show this help information

Quit - Return to the prior menu

Rebuild Quota - Force asynchronous rebuild of quota-tracking

table

Verbose %s - Turn verbose mode on/off



semantic checker: verbose on

Verbose mode enabled.

semantic checker: go fixup

Fixup mode is turned on

Opening DIT database... Done.

Done.

......Done.

Writing summary into log file dsdit.dmp.0

SDs scanned: 91

Records scanned: 3470

Processing records..Done. Elapsed time 3 seconds.