Tuesday, 4 October 2011

Feeling Hungry? Google Has The Solution

Google Recipes

If you're looking for a new recipe to help break you out of a "food rut", then maybe it's time to give Google a try. It might sound odd, but the "Big G" can help you find all sorts of new and tasty things to make, plus you can refine your searching to accommodate for time constraints or certain ingredients!
Here's how:
Browse over to Google.com and type in a dish – I used Chicken Schezuan Sauce, for example. A few recipes and pictures should pop up, but if you click Recipes off in the left-hand column Google turns into the coolest cookbook ever!

Not only will it show you all the recipe results for the dish in question, but it'll give you options for low calorie versions or even recipes that take less time to make! You can even refine your recipe search to exclude (or include) certain ingredients!

Note: If you don't see a Recipes option in the left-hand column, click the More button.
Download compatible browsers

DOS Commands

An A-Z Index of the Windows CMD command line
for the shell command users:

Monday, 3 October 2011

Auditing SQL 2008

Auditing SQL Server Password Age

-- Show all logins where the password is over 60 days old
 SELECT name, LOGINPROPERTY([name], 'PasswordLastSetTime') AS 'PasswordChanged'
 FROM sys.sql_logins
 WHERE LOGINPROPERTY([name], 'PasswordLastSetTime') < DATEADD(dd, -60, GETDATE());


-- Show all logins where the password is over 60 days old disregarding specific SQL Server Logins [##MS_PolicyTsqlExecutionLogin##, ##MS_PolicyEventProcessingLogin##]
 SELECT name, LOGINPROPERTY([name], 'PasswordLastSetTime') AS 'PasswordChanged'
 FROM sys.sql_logins
 WHERE LOGINPROPERTY([name], 'PasswordLastSetTime') < DATEADD(dd, -60, GETDATE())
 AND NOT (LEFT([name], 2) = '##' AND RIGHT([name], 2) = '##');


-- Show all logins where the password was changed within the last day
 SELECT name, LOGINPROPERTY([name], 'PasswordLastSetTime') AS 'PasswordChanged' FROM sys.sql_logins WHERE LOGINPROPERTY([name], 'PasswordLastSetTime') > DATEADD(dd, -1, GETDATE());

O
R
-- Show all logins where the password is more than 1 month

 
Select loginname from master..syslogins where datediff(Month,updatedate,getdate()) > 1

reference site: http://www.mssqltips.com/sql_server_dba_tips.asp

Tips to optimize SQL server performance

Top 10 Tips for Optimixing SQL Server
 
10. Facilitate comparisons of workload behavior with benchmarking. What are baselining and benchmarking?
9. Use performance counters to quickly get useful information about currently running operations. Operational Monitoring & Bottleneck Monitoring.
8. Understand why changing server settings usually yields limited returns.
7. Identify performance bottlenecks quickly with DMVs.
6. Learn to use SQL Profiler and traces.
5. See why SANs are more than just I/O.
4. Prevent cursors and other bad T-SQL from returning to haunt applications.
3. Maximize plan reuse for better SQL Server caching.
2. Read the SQL Server buffer cache and how to minimize cache thrashing.
1. Master indexing by learning how indexes are used and how to counteract the characteristics of bad indexes.

Windows authentication fail in IIS 7

Windows Authentication fails from client machines via hostname/ FQDN or ip address but works on localhost (where the application is published)

Windows authentication supports two authentication protocols, Kerberos and NTLM, which are defined in the <providers> element. When you install and enable Windows authentication on IIS 7, the default protocol is Kerberos. The <windowsAuthentication> element can also contain a useKernelMode attribute that configures whether to use the kernel mode authentication feature that is new to Windows Server 2008.

Windows authentication is best suited for an intranet environment for the following reasons:
 •Client computers and Web servers are in the same domain.
 •Administrators can make sure that every client browser is Internet Explorer 2.0 or later.
 •HTTP proxy connections, which are not supported by NTLM, are not required.
 •Kerberos version 5 requires a connection to Active Directory, which is not feasible in an Internet environment.


The following default <windowsAuthentication> element is configured at the root ApplicationHost.config file in IIS 7.0, and disables Windows authentication by default. It also defines the two Windows authentication providers for IIS 7.0.

<windowsAuthentication enabled="false">
   <providers>
      <add value="Negotiate" />
      <add value="NTLM" />
   </providers>
</windowsAuthentication>


by default for SharePoint - 80  environment only NTLM is required.



Best practice to change SharePoint service account passwords

How to change service accounts and service account passwords in SharePoint Server 2007 (MOSS2007) and in Windows SharePoint Services 3.0
microsoft site reference: http://support.microsoft.com/kb/934838

Just changing domain account password from sharepoint services and from Application Pool identity will not do.
you have to follow the above article.
in short execute the following in batch (.bat) file will also do:
----------------------------------------------------------------------------------------------------------------------------------------------------
cd %commonprogramfiles%\Microsoft Shared\Web server extensions\12\Bin

stsadm -o updatefarmcredentials -userlogin domain\enterusernamehere -password enternewpasswordhere
iisreset /noforce

stsadm -o updatefarmcredentials -userlogin domain\enterusernamehere -password enternewpasswordhere -local
iisreset /noforce
           
stsadm -o updateaccountpassword -userlogin domain\enterusernamehere -password enternewpasswordhere -noadmin
iisreset /noforce
       
stsadm -o spsearch -farmserviceaccount domain\enterusernamehere -farmservicepassword enternewpasswordhere
iisreset /noforce

stsadm.exe -o spsearch -farmcontentaccessaccount domain\enterusernamehere -farmcontentaccesspassword enternewpasswordhere
iisreset /noforce
       
stsadm -o editssp -title (SharedServices1 change accordingly) -ssplogin domain\enterusernamehere -ssppassword enternewpasswordhere
iisreset /noforce
----------------------------------------------------------------------------------------------------------------------------------------------------

InfoPath published Forms error using DNS Record: Event ID 5566, in MOSS 2007 64Bit

InfoPath Form Services Error accessing data source eventid 5566 in SharePoint 2007 

SYMPTOM:
Forms when accessed through the browser using DNS Record (A Record created in DNS: intranet) was showing error. There are no issues when accessing the same forms using hostname(http://intra-app1)

ENVIRONMENT:
SharePoint 2007 SP2 (CU August 2011: 12.0.0.6565), OS: Windows 2008 R2 Enterprise Edn.

SCOPE:
Published Forms opens properly from client access using WFE server hostname (http://intra-app1 ) (Hostname of WFE: intra-app1)
However, the forms could not be accessed using the DNS entry (http://intranet). shoots errors ID 5566 as seen below:  

ACTION:
Inorder to solve this we configured the following setting in the registry for disabling the loopback check in the registry using the following method.
In Registry Editor, locate and then click the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
Right-click Lsa, point to New, and then click DWORD Value.
Type DisableLoopbackCheck, and then press ENTER.
Right-click DisableLoopbackCheck, and then click Modify.
In the Value data box, type 1, (hexadecimal) and then click OK.

No need to either restart the server or carryout IISreset /noforce

This is enough, just try accessing portal using the DNS and the published forms using DNS record (http://intranet). This should solve the problem.
 
Also, make sure AAM (Alternet Access Maping: http://intranet) to Intranet Zone is configured at the CA level .

Roll Out Plan for Adding iFilters in SharePoint 2007 64Bit Environment

Configure PDF iFilter 9 for 64-bit platform

The steps mentioned below are as per suggested by Microsoft. Please refer to links below for appropriate Microsoft KB articles.

>> http://www.adobe.com/special/acrobat/configuring_pdf_ifilter_for_ms_sharepoint_2007.pdf?PID=4172469
>> http://support.microsoft.com/?id=555209
>> http://blogs.msdn.com/ifilter/archive/2007/03/29/indexing-pdf-documents-with-adobe-reader-v-8-and-moss-2007.aspx

Download Adobe PDF iFilter 9 for 64-bit platforms http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025

1. Install Adobe PDF iFilter 9 for 64-bit platforms.
2. Verify that PDF has been added to the registry.


a. Run Regedit by browsing to c:\Windows\system32\regedt32.exe and double-clicking it.

b. Within left-side tree, browse to: \\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Applications\{site GUID}\Gather\Portal_Content\Extensions\ExtensionList

c. If PDF extension is present, skip to Step 3 . If PDF extension is not present, continue with Step d.

d. Right click on right-side Extension List pane and choose New > String Value

e. Add a name to the new Registry Key (e.g. "38")

f. Double click the new Registry Key. For "Value data", enter "pdf"



Note: This can also be achieved via SharePoint Server Search Administration page by adding 'pdf' to list of File Types in Search Administration->File Types. This would automatically add an entry for 'pdf' filetype as mentioned above in step 1

3. Verify that PDF has the correct settings in a second registry location.
a. While still in Regedit, within the left-side tree, browse to: \\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Setup\Filters\.pdf

b. Verify the following values. If values are not as shown, edit them.
i. <REG_SZ> Default = <value not set>
ii. <REG_SZ> Extension = pdf
iii. <REG_DWORD> FileTypeBucket = 1
iv. <REG_SZ> MimeTypes = application/pdf

4. Verify that PDF has the correct settings in a third registry location.
a. While still in RegEdit, within the left-side tree, browse to: \\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Setup\ContentIndexCommon\Filters\Extension\.pdf
b. Verify the following values. If values are not as shown, edit them.
i. <REG_MULTI_SZ> Default = {E8978DA6-047F-4E3D-9C78-CDBE46041603}


 
5. Verify that pdf.gif is present at the following location:

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\IMAGES

6. Add an entry in docicon.xml for the pdf icon:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\XML
<Mapping Key="pdf" Value="pdf.gif">
Note: Step 4 & 5 are done in order to have the pdf icon in SharePoint while it displays the search results.

7. Restart all SharePoint services as well as IIS.
a. Launch the DOS Shell (Start > All Programs > Accessories > Command Prompt).
b. Type the following at the prompt: "net stop osearch". Wait for success message.
c. Type the following at the prompt: "net start osearch". Wait for success message.
d. Type the following at the prompt: "iisreset". Wait for success message.

 Close the Command Prompt window
8. Microsoft Office SharePoint Server can now index PDF files. Also, PDF icon should show in File Types list

Roll Out Plan for PDF Configuration in SharePoint 2007 64Bit Environment

 How to add an icon to Windows SharePoint Services to represent Adobe PDF documents that are stored in document libraries
firstly, download adobe icons (small & large) http://www.adobe.com/misc/linking.html
  1. Navigate to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Images
  2. Copy in the Adobe PDF Icon PDF icon. Rename it to "pdficon.gif".
  3. Navigate to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\xml
  4. Locate the Docicon.xml file open with an xml editor.
  5. Within the ByExtension tag add a new Mapping tag in alphabetical order with the following properties.
  6. <Mapping Key="pdf" Value="pdficon.gif" />
  7. Save the file. The Value needs to be the same as the icon you saved in images. Your file should look something like this.
    Extract from Docicon.xml showing pdf icon properties

Sunday, 18 September 2011

SharePoint Site Error 503

SharePoint Site Error: Service Unavailable HTTP Error 503. The service is unavailable
** when we traced back the recent changes we could identify that from the CA Search Administration 'reset all crawled content' option was recently triggered which ended up with SSP page error 'Service Unavailable HTTP Error 503. The service is unavailable'. 
** other possible reason could be if you change the identity or account password either directly from IIS settings or if at all from web config file.
** another reason could be if you install another web based program or add feature.. unexpectedly causing IIS to stop the SharePoint services. for. eg: if you install AD on the same machine, OR added a new web site with a duplicate port.
make sure  that Web site protocols starts properly and the user account used to start Applicaion pool is correct and starts as well.
steps:
i.  Open up IIS Manager and click on Application Pools.
ii.  Locate your App Pool account and right-click on it and select 'Advanced Settings'.
iii. Click on the right of the Identity box to change it (A window will pop up).
iv. Click on Set and simply retype your App Pool Identity in there with the new password.

List stored user names and passwords

Start > Run > type "rundll32.exe keymgr.dll, KRShowKeyMgr"


Windows 7 Domain Account Lock Out issue

Clear cached credentials from Windows Profile:

1) remove passwords by clicking on Start > Run > type "rundll32.exe keymgr.dll, KRShowKeyMgr" and then delete the Domain-related and if required other stored passwords.
2) remove passwords and Cookie information from Internet Explorer > Tools > Internet Options > General > Delete Browsing History > Delete > check Passwords checkbox and Cookies check box and Delete.
3) Disconnect all networks drives (pls make a note of the mappings), reboot, then map them again

also try these steps: Click Start, click Run, type Control Userpasswords2
select advanced and click manage passwords. Remove all stored passwords from both web credentials and windows credentials.
a helpful article form microsoft where you can download the account lockout status tool and troubleshoot accordingly http://social.technet.microsoft.com/Forums/en-US/w7itprosecurity/thread/0f88e0b6-7aa0-4917-bd06-68f77f14493e/

Saturday, 27 August 2011

young 'Seema Jha' next lata mangeshkar in the making

neXt generation lata mangeshkar; Seema Jha's magical voice for the hindi music lovers












golden hits: Ae Dile Nadan
Seema picks eternally beautiful songs and does justice to present it touching the heart of millions...

Saturday, 20 August 2011

Hold your Breath

concentration vs balance

united, secular & democratic India

united india




lets always be united..



vande maatharam, brilliant concept by Rajat

dedication lifts you up

watch Ankan's mindblowing performance.

just dance with Ankan, just dance with HR


kis cheej se bane ho yaar.. Ankan's animal instinct show

wonder boy Ankan Sen showing animal instincts, watch out 

the future in the making..!

simply superb by Ankan



follow my other mindblowing performer postings on my twitter

Tuesday, 9 August 2011

Access Denied message while accessing portal

premature backup termination can lead to Access Denied message while accesing portal
quick heal:
go to CA; Central Administration > Application Management > Site Collection Quotas and Locks change the site collection to the required site (say sharepoint 80) and change the site lock status to Not Locked. click ok once done.
access the site now.

access denied happens when the status of the site switches to Read-Only mode. this can mostly happen at the time of site backup premature termination.

Wednesday, 6 July 2011

Open instantly your favorite programs using DOS .bat file

Open Business Applications using simple DOS script
copy and paste the below code in yourfilename.bat and create a shortcut to your taskbar

@echo off
color 0E
:a
cls
echo _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
echo                         Business Applications - your company name
echo _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
echo 1) Open Intranet
echo 2) Open Employee Performance Management System (EPMS)
echo 3) Open Financial Institutions Regulatory information Management System (FIRMS)
echo 4) Open Time Management System (TMS)
echo 5) Open Internal Risks Information System (IRIS)
echo 6) Open Legal Advice Database (LAD)
echo 7) Open Regulatory Enquiries and Advice Database (READ)
echo 8) Open Mena ME Employee Self Services (HRMS)
echo.
echo.
echo =) Enter "+" for extras!
set /p TH=Type here:
if %TH%==1 goto 1
if %TH%==2 goto 2
if %TH%==3 goto 3
if %TH%==4 goto 4
if %TH%==5 goto 5
if %TH%==6 goto 6
if %TH%==7 goto 7

if %TH%==8 goto 8
if %TH%==~ goto S
if %TH%==+ goto Extra
:1
cls
start iexplore.exe
http://myintranetsite/default.aspx
echo.
echo.
pause
goto a
:2
cls
start iexplore.exe
http://hostedserver/abcd/abcpage/Home.aspx
echo.
echo.
pause
goto a
:3
cls
start iexplore.exe
http://hostedserver2/abcd/abcpage/Home.aspx
echo.
echo.
pause
goto a
:4
cls
start iexplore.exe
http://hostedserver3/abcd/abcpage/Home.aspx
echo.
echo.
pause
goto :a
:5
cls
start iexplore.exe
http://hostedserver3/abcd/abcpage/Home.aspx
echo.
echo.
pause
goto :a
:6
cls
start iexplore.exe
http://hostedserver4/abcd/abcpage/Home.aspx
echo.
echo.
pause
goto a
:7
start iexplore.exe
http://hostedserver5/abcd/abcpage/Home.aspx
echo.
echo.
pause
goto a
:8
start iexplore.exe
http://hostedserver6/abcd/abcpage/Home.aspx
echo.
echo.
pause
goto a

:Extra
echo.
echo Hey this is my blogspot,

start iexplore.exe http://ventej.blogspot.com/
echo.
pause
goto a
:S
echo Oh hello, You found my seceret!
start iexplore.exe http://www.blogger.com/home

echo.
echo.
pause

goto a

------------------------ends
if you have google crome or opera or firefox or any other browser, add the executable name of the browser (e.g. for Opera C:\Program Files (x86)\Opera\opera.exe in place of internet explorer  iexplore.exe in the code mentioned above) and the application hyperlink to open that application.
also refer DOS commands are fading coz of 21st century clicks and touch-sensing era

dos commands are fading coz of 21st century clicks and touch sensing era

 


command/ script output to existing file

Output commands to a text file
echo "my first line" > output_file.txt

write in an existing file
echo "my last line goes here" >> output_file.txt

reference

Incremental backup of data with .BAT

 DOS command: incremental backup
open notepad and copy the below code in a .bat file and then use windows scheduler to schedule eod backup to your external storage 
@echo off
xcopy C:\mydocuments D:\Backup\Docs /E /H /R /Y /I /D
xcopy "%USERPROFILE%"\Favoris D:\Backup\Favoris /E /H /R /Y /I /D

Sunday, 3 July 2011

MOSS2007 evalution version license expired

Evaluation version of Microsoft Office SharePoint Server 2007 for this server has expired
Option 1:
This may happen exactly 180 days after upgrading moss2007 from SP1 to SP2.

Simple way of sorting this is to re-apply the license key from the CA:
Central Administration > Operations > Convert License Type   and then enter the product key and click ok. This may perhaps take more than 2-3 hrs for global sync depending on the FARM size.

Option 2:
ACTION:
Current user updated MOSS2007 and registered his Volume License Key to the MOSS2007 Installation.
Current user tries to Access his "My Site" or Dashboards
RESULT: Current user receives following error:
"The evaluation version of Microsoft Office SharePoint Server 2007 for this server has expired."
CAUSE: Insufficient permissions for the groups WSS_WPG, WSS_ADMIN_WPG to the Registry. The application pool identity for your WSS/MOSS sites *MUST* be in the
"Distributed COM Users" group in order to successfully activate.
RESOLUTION:
We gave group WSS_WPG Read permissions to following registry key
HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\Office Server\12.0
We gave group WSS_ADMIN_WPG Full permissions to the same registry key
HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\Office Server\12.0
Add application pool Account ("dcomcnfg.exe") to the Distributed users and then reboot the server. 

TELNET Command to Test SMTP Email Authentication

Simple and precise lines for SMTP Test:
you can use rcpt to command for multiple recipients while smtp test is being performed using telnet session.
telnet to your smtp address you should get a reply back saying 'OK' for each command line
-------------------------------------------------
telnet 192.168.110.100 25
HELO yourdomain.com
MAIL FROM:
Test@abc.com
RCPT TO: 123@abc.com
RCPT TO: 345@abc.com
DATA
Subject:((Test Email..!!))

This is an automated email.


.
QUIT

-------------------------------------------------
fyi: you will get error for 501 5.5.4 Unrecognized parameter, if you do any correction with the typed command line under telnet session. delete and backspace commands are not accepted. you have to type command without errors.
Note that the above code cannot be automated in a script as TELNET itself is a power shell. So telnet to smtp server port will take you to another console and the rest of communication commands will not work IF you make a batch file of the above code. For which the best method is to use vb script to send automated emails. Sending emails using this method can be used for alerting Admins after completion of an automated process.

Send Email using VBScript

VB Script to send email in a structured method

copy the below code to a notepad and save it in yourname.vbs and execute. You will note how to fetch the logged on username info, how to get hostname as well as domain name to a string, in addition to displaying email body fields.

'code starts here KTR----------------------------------
'sending email

Dim objNet
On Error Resume Next

'In case we fail to create object then display our custom error
Set objNet = CreateObject("WScript.NetWork")
If  Err.Number <> 0 Then                'If error occured then display notice
 MsgBox "Don't be Shy." & vbCRLF &_
               "Do not press ""No"" If your browser warns you."
 Document.Location = "UserInfo.html"  
                                        'Place the Name of the document.
                                 'It will display again
End if

Dim strInfo
strInfo =  "" & objNet.UserName + " from the machine " & objNet.ComputerName + " hosted at " & objNet.UserDomain + " Domain."

'MsgBox strInfo --- supress msgbox

'-- can go at last line-- Set objNet = Nothing                    'Destroy the Object to free the Memory


Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = strUserNTName+"Automated: ((Intranet Production Site level Backup Completed Successfully..!!))"
objMessage.From = "
intranetproductionserver@abc.com"
objMessage.To = "
123@abc.com, 456@abc.com"
objMessage.TextBody = "The backup was executed by: " & vbCRLF & _
+ strInfo  & vbCRLF & _
+""& vbCRLF & _
+"Site Level Backup for Intranet Main Site and Subsites: Enforcement, AML, HR & IT completed successfully..!!" & vbCRLF & _
+""& vbCRLF & _
+""& vbCRLF & _
+"Note: " & vbCRLF & _
+"At the time of site level backups all the sites remains locked until processed completely." & vbCRLF & _
+"Site level backup remains at shared location @
\\abc\MOSSBackup\ for 2 days." & vbCRLF & _
+" "& vbCRLF & _
+"Apart from this, daily SQL Content Database (eg.:WSS_Content, WSS_Content_IT, WSS_Content_ENF,..,) backups are automated to NAS storage location @
\\192.168.11.193\backup" & vbCRLF & _
+"These backups are written to Tape Library on a Daily, Weekly and Monthly basis. Monthly backup is finally taken out to the safe locker at ABC Bank." & vbCRLF & _
+" " & vbCRLF & _
+"In addition to the above process, Intranet Site is replicated on a real-time basis to the disaster recovery site at the QDC." & vbCRLF & _
+"" & vbCRLF & _
+"Backup Schedule: " & vbCRLF & _
+"i)   Site Level Backups (using STSADM command): Starts@ 11:20PM, Ends@ 3:20AM" & vbCRLF & _
+"ii)  All Content DB Backup (Back-End Maintenance Plan from SQL): Starts @6PM, Ends@ 11:15PM" & vbCRLF & _
+"iii) DocAve software is used for real-time replication" & vbCRLF & _
+"iv)  Symantec SharePoint Farm level Backup starts at 8PM" & vbCRLF & _
+""& vbCRLF & _
+"File Output Format: " & vbCRLF & _
+"Eg: IntranetBackup_IT_0307Sun.bak, IntranetBackup_ENF_0107Fri.bak, ..," & vbCRLF & _
+"" & vbCRLF & _
+ "Please note that this is an Automated email..! If you have any further concern(s) about the above process, please feel free to drop-in an email to
123@abc.com. I shall get back to you as soon as your email has been prioritized."+"" & vbCRLF & _
+"" +"" & vbCRLF & _
+"-ABC IT Team"
'==This section provides the configuration information for the remote SMTP server.
'==Normally you will only change the server name or IP.
objMessage.Configuration.Fields.Item _
("
http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("
http://schemas.microsoft.com/cdo/configuration/smtpserver") = "specify your smtp server"
'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("
http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objMessage.Configuration.Fields.Update
'==End remote SMTP server configuration section==
objMessage.Send
Set objNet = Nothing

'code ends here KTR----------------------------------

DOS command doesnt really allow TELNET command for testing and processing automated emails

Monday, 27 June 2011

Unable to pick AD Attributes from SharePoint for new users

AD attributes not in sync with some of the subsites:

Created a new user profile attribute but these attributes are not available when adding a new column using "person or group" column type... what could be wrong??

Follow the steps to achieve the expected sync on all sites:
Stsadm -o sync -listolddatabases 0
Stsadm -o sync -deleteolddatabases 0 (deletes from cache old databases)
Stsadm -o sync -IgnoreIsActive 1

Stsadm -o sync -synctiming M:1
check profile sync (CA» Operations» Global Configuration» Timer Job Status» scroll down to Profile Synchronization and check for any errors)
check quick profile sync (CA» Operations» Global Configuration» Timer Job Status» scroll down to Quick Profile Synchronization and check for status to track down success/ aborted errors)

run again Stsadm -o sync -listolddatabases 0


if all the content databases are not listed as a result of the above command, try removing content database and attach again.. if you are on production environment, plan and schedule after office hours.. recommended to do db remove/ attach on pre-production first.

how to do this?
Go to Central Administration > Application Management > Content Databases
select each content database, copy exactly the same name of content DB (ex: WSS_Content_HR). Remove content database. Now Add content database. specify exactly the same database name (ex: WSS_Content_HR). Click ok.

Stsadm -o sync -listolddatabases 0




hover mouse over the content database and see the database ID if its in sync with the results you just retrieved after running the command stsadm -o sync -listolddatabases 0
------------------------------------------------------------------------------------------------------
ID: b4fc6c18-a622-498d-8f33-426225dfb22d  Synchronized: 6/27/2011 4:31:03 PM
ID: 943f1a54-245c-4b66-8127-90e7e71066de  Synchronized: 6/27/2011 4:31:03 PM
ID: 4be6b4ee-bb5d-4374-8eb0-a755f0b3350a  Synchronized: 6/27/2011 4:31:02 PM
------------------------------------------------------------------------------------------------------
change back the sync timing to 1 hour to avoid any conflicts.
Stsadm -o sync -synctiming H:1

Also try to Clear the SharePoint Configuration Cache.. refer here . Any issues share here your comments. Please note that you need to stop the windows sharepoint services timer job from services before clearing sharepoint config cache.

Friday, 24 June 2011

Vanishing Trick Revealed

Your credulity is blackmagic witche's and magician's powerful weapon. Magicians Trick revealed.. interested to watch?

David Copperfield - Flying Revealed
vanishing train trick revealed
statue of liberty trick revealed

Thursday, 23 June 2011

Craig Dietz: Man with no arms and no legs still swims with confidence

click here to
see Craig on youtube
Craig Dietz is preparing to swim four miles in an open water race despite being born without arms or legsThe Pennsylvania man and motivational speaker says that competing in the race is not about winning but showing people that he can do the same things as everyone else. other reference

Merlin Award for Muthukad


Muthukad, who ventured into the world of magic at the age of 10 now receives International Merlin Award, or the magicians' Oscar for the year 2011 from Tony Hassini, President of the US based International Magicians Society. Gopinath Muthukad is the second Indian to be chosen to receive the Merlin Award after PC Sorkar Jr.
Muthukad's motto is "Magic with a mission" and want to use magic as a tool for social upliftment. He also added the he conducts shows to promote national integration and fight against social evils like alcoholism, tobacco and terrorism.
Muthukad's sustained and rigorous practice takes him in par with David Copperfield. All of the top magicians use sophisticated gadgetry and expensive equipments to mesmerize audiences.

visit Muthukad's magic on youtube: Magician on youtube

Wednesday, 22 June 2011

Windows Flip 3-D

Switch between open items in windows 7
Alt-Tab as you are aware of is the feature for all previous OS inclusive of Vista OS

but now Windows 7 onwards this has a 3D Flip effect which cycles thru open programs..
Windows logo key Picture of Windows logo key+TAB

yes start using this feature.
you can freeze the flip 3D by cycling the tabs CTRL+Windows logo key Picture of Windows logo key +TAB

and to release it press Alt+TAB.. there you go back to work..