Virtual SMTP

220 share-app.test.local Microsoft ESMTP MAIL Service, Version: 7.5.7601.17514 ready at Mon, 2 Sep 2013 11:21:36 +0400

helo

250 share-app.test.local Hello [127.0.0.1]
mail from: admin@portal.com
250 2.1.0 admin@portal.com….Sender OK
rcpt to: user@portal.com
501 5.5.4 Unrecognized parametercpt to: user@portal.com
rcpt to: user@portal.com
250 2.1.5 user@portal.com
data
354 Start mail input; end with <CRLF>.<CRLF>
subject: test email
hi user
test body
.
250 2.6.0 <SHARE-APPNwMi7GuqA400000001@share-app.test.local> Queued mail for del
ivery

quit
221 2.0.0 share-app.test.local Service closing transmission channel

Connection to host lost.

Press any key to continue…

Virtual SMTP

Clear SharePoint cache

1.  Stop SP Timer process

2. Drive:\ProgramData\Microsoft\SharePoint\Config\GUID

  1. Back up the Cache.ini file.
  2. Delete all the XML configuration files in the GUID folder.
  3. Double-click the Cache.ini file.
  4. On the Edit menu, click Select All.
  5. On the Edit menu, click Delete.
  6. Type 1, and then click Save on the File menu.
  7. On the File menu, click Exit.

3. Start SP Timer process

Clear SharePoint cache

PowerShell Script to List All Users in All Groups

also check http://falakmahmood.blogspot.se/2012/05/how-to-loop-through-user-profiles-in.html#.UhSsy5L0FqU

$site = Get-SPSite http://yourservername/sites/yoursitecollection 

$groups = $site.RootWeb.sitegroups

foreach ($grp in $groups) {"Group: " + $grp.name; foreach ($user in $grp.users) {"  User: " + $user.name} }

$site.Dispose()

#
to view domain accounts and email address,. add:
{"  User: " + $user.name; "  User: " + $user.email; "  User: " + $user.userlogin}

Mention:

To get users directly assigned to a site (SPWeb) or to any object (list, item, etc) there are three properties to check: .Users, .AllUsers and .SiteUsers.

SPWeb.Users gets the collection of user objects that are explicitly assigned permissions in the Web site. It will not return users who have access through a group.

SPWeb.AllUsers gets the collection of user objects that represents all users who are either members of the site collection or who have browsed to the site as authenticated members of a domain group in the site.

SPWeb.SiteUsers gets the collection of all users that belong to the site collection.

So in PowerShell:

Get-SPWeb http://intranet.contoso.com | Select Users

Get-SPWeb http://intranet.contoso.com | Select AllUsers

Get-SPWeb http://intranet.contoso.com | Select SiteUsers
PowerShell Script to List All Users in All Groups

Import termset

super:

http://norpoint.wordpress.com/2010/11/08/programmatically-create-many-term-sets-from-one-csv-file/

 

c#

http://books.google.ru/books?id=9BEuldznm-QC&pg=RA2-PA603&lpg=RA2-PA603&dq=termstore.getimportmanager&source=bl&ots=xVvuQOjWqO&sig=Psv9JJn04_8kdj-6hia3vt7wVBg&hl=ru&sa=X&ei=QL0IUpCGKoSg4gTZhIHABQ&ved=0CFcQ6AEwBg#v=onepage&q=termstore.getimportmanager&f=false

 

http://blog.tippoint.net/import-term-set-into-managed-metadata-term-store/

other:

http://absolute-sharepoint.com/2012/06/importing-managed-metadata-termstore-from-csv-using-powershell.html

http://sharepointtales.wordpress.com/2010/05/06/manipulating-the-terms-store-through-powershell/

http://sharepoint.stackexchange.com/questions/20091/how-to-import-term-sets-to-managed-metadata-service-using-powershell-and-csv-fil

http://blog.falchionconsulting.com/index.php/2012/03/exporting-and-importing-sharepoint-2010-terms/

 

excel macro to create termset file:

http://www.wictorwilen.se/Post/Create-SharePoint-2010-Managed-Metadata-with-Excel-2010.aspx

 

 

Import termset