I want to create a function to connect to SPFarm SharePoint2010 with a login and password ,I knowed that it use NTLM authentification ,do I need credential connection ? is there any PowerShell commands or c# code samples .
And IT will be the same issues in SharePoint2013? because it use claim authetification. any ideas , best regards .