SharePoint 2010 Powershell scripting for user profile
Please help to have a powershell script which will provide the details related to user profile service application like:
Number of user profiles:
Number of user properties
Number of Organization properties
Number of Organization profiles
Number of Audiences
Un compiled Audiences
Audience Compilation status
Last compilation time
Synchronization schedule
Santosh sethi
Hi,
If you're looking for prewritten scripts, you can check these two places:
http://gallery.technet.microsoft.com/scriptcenter
http://get-spscripts.com/
You should read this too:
http://social.technet.microsoft.com/Forums/scriptcenter/en-US/a0def745-4831-4de0-a040-63b63e7be7ae/posting-guidelines?forum=ITCG
Let us know if you have any specific questions.
Don't retire TechNet! -
(Don't give up yet - 12,830+ strong and growing)
Similar Messages
-
SharePoint 2010 Enterprise Search for User Profile tags and Notes
Hi,
Actually my requirement is, "Sharepoint Enterprise Search for User Profile tags and Notes".
I would like to use the Tags and Notes in enterprise search.
Is it possible?
Thanks & Regards
Poomani SankaranCheck if this helps
http://blogs.msdn.com/b/spses/archive/2011/02/05/social-computing-part-3-activity-feeds-social-ratings-tags-and-notes.aspx
If this helped you resolve your issue, please mark it Answered. You can reach me through http://itfreesupport.com/ -
Hi,
I have a text file in which some SamAccountNames are present.I need to check the file while creating a new users through ADUC console.If a username that is going to create through ADUC console is present in the file, then it should prompt a message
that the user is already present in the text file.
Is there any possibility of contacting the powershell script from the ADUC console.If so, then while creating a new user through ADUC console, what is the proceedure for executing that powershell script.
please provide me the approriate solutions.
Thanks
Prasanthi kRun the below Powershell Script for users are exist or not in AD. Later you can create the users.
#Find Users exist in AD or Not?
#Biswajit Biswas
$users = get-content c:\users.txt
foreach ($user in $users) {
$User = Get-ADUser -Filter {(samaccountname -eq $user)}
If ($user -eq $Null) {"User does not exist in AD ($user)" }
Else {"User found in AD ($user)"}
Active Directory Users attributes-Powershell
http://gallery.technet.microsoft.com/scriptcenter/Getting-Users-ALL-7417b71d
Regards~Biswajit
Disclaimer: This posting is provided & with no warranties or guarantees and confers no rights.
MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, MCTS, Enterprise Admin
MY BLOG
Domain Controllers inventory-Quest Powershell
Generate Report for Bulk Servers-LastBootUpTime,SerialNumber,InstallDate
Generate a Report for installed Hotfix for Bulk Servers -
Powershell script for security groups and users for multiple share folders
Hi scripting team,
I need your help with powershell script for the below queries
1. List out the security groups for more than one server share path and output it to a file ( csv )
For eg.
If the are are two share paths
\\servername\foldermain\folder1
\\servername\foldermain\folder2
So I needs the list of security groups for each share path
And the output needs to be under each any every path.
2. Grab the users belongs to main security groups and it nested groups for more than one security group and listed the users under each and every group. No need to display nested groups. Just users belongs to main group and users under nested.
Your teams help is much appreciated
Thank you.
Thilochana kumararatneHi Braham,
Thanks for your quick reply.
Are we able to do this on two stage method
1. grab the security groups from the share paths
if can grab the share path from a separate txt file than copying it to the <your path> location
so i can modify the txt file
once run the script
if can the output like below to a CSV file
\\servername\foldermain\folder1group 1group 2group 3\\servername\foldermain\folder2group 1group 2group 3then i know which groups belongs to which share paththen i can remove the duplicate groups and keep the common groups to grab the users belongs to itso with the second script same as the first copy the security groups to a txt file and the out put as below.what I needs is the users full name and the samaccount name ( user id )group 1user1user2user3
group 2user1user2user3looking forward your help on thisThank you.Thilo -
Sharepoint 2013 - Active Directory Import User Profile Property manager fields
Hi there,
I juste encountered actually a little issue regarding the Active Directory Import User Profil.
Importation seems to work well but I have a little problem regarding the Manager field.
When I verify a user profil through the sharepoint admin page ("Manage user profil") , I can see the manager field is correctly populated, but if I want to check my profil as a user (personal information), the manager field is not visible.
With Sharepoint Admin and Manage Profil Properties, I haven't the possibility to modify some settings for the manager.
For example, Policy parameters is greyed.
The only way I found to show this field in a user profil is to give the permission "allow users to Edit values ...".... setting I don't want to set.
Have you already this sort of issue ?
Thanks for your help/idea.Hi Michael,
I don't remember well what I did exactly regarding this issue because I played a lot with user profil.
I know I used this powershell script from Sheyia which in fact help me a lot to clean and create a good profil setting.
http://blogs.technet.com/b/sheyia/archive/2013/10/09/sharepoint-2013-another-way-to-change-order-for-user-profile-properties-via-powershell.aspx
For example, this script help me to resolve some double entries.
Let-me know if it help you (or not of course) -
Which is better approach to manage sharepoint online - PowerShell Script with CSOM or Console Application with CSOM?
change in sharepoint scripts not require compilation but anything else?Yes, PowerShell is great, since you can quick change your code without compilation.
SP admin can write ps scripts without specific tools like Visual Studio.
With powershell you can use cmdlets,
which could remove a lot of code, for example restarting a service.
[custom.development] -
Configuring group policy for user profiles in Windows Server 2012 R2 Domain
Requesting some experts advise on configuring group policy for user profiles.
We will be building new Windows Server 2012 R2 Domain Controllers (Domain of 400 users).
The settings which I am concerned:
1. Folder Redirection: Desktop, Documents, Favorites.
2. Quota for Folder Redirection - 1 GB per user.
3. Map a networked drive - 1 GB per user.
4. Roaming profile - (Will ignore if it does not suit our requirement).
The question is how outlook profile will be retained / automatically moved if the users move from once computer to other?
FYI, E-mails hosted on MS Office365 and OST file size of few users more than 25GB. So, in case the user moves from one computer to other, the entire mailbox will be downloaded via internet. This consumes high bandwidth if more than 3-4 users shift per day.
Thanks a lot for your valuable time and efforts.Hi,
>>The question is how outlook profile will be retained / automatically moved if the users move from once computer to other?
This depends on where our outlook data files are stored. If these data files are stored under
drive:\Users\<username>\AppData\Local, then these files can’t be redirected, for folder redirection can’t redirect appdata local or locallow.
However, regarding your question, we can refer to the following thread to find the solution.
Roam outlook profiles without roaming profiles
http://social.technet.microsoft.com/Forums/office/en-US/3908b8e0-8f44-4a34-8eb5-5a024df3463e/roam-outlook-profiles-without-roaming-profiles
In addition, regarding how to configure folder redirection, the following article can be referred to for more information.
Configuring Folder Redirection
http://technet.microsoft.com/library/cc786749.aspx
Hope it helps.
Best regards,
Frank Shen -
What is the best sharepoint 2010 synchronisation tool for macbook air
what is the best sharepoint 2010 synchronisation tool for macbook.
Access sharepoint from a mapped drive is really slow, so I want to save my files locally and synchronise with Sharepoint 2010.
Is there an application or client for this.Ok, so do you have a recommend brand and space capacity?
You mentioned that one of your primary needs is to store video, which demands large capacity. As a consequence I'd suggest a drive with at least 1Tb, perhaps greater, capacity. I don't have a preferred brand or manufacturer - it's a bit like recommending which is better between Ford and Chevy - but I have a couple of Western Digital external USB drives which have proven very reliable, and a Seagate which is used as a daily backup and has worked flawlessly.
DWB's point about backups is important too, because when you store files on any drive there is a risk of that drive failing - and indeed, all drives will fail at some point. The question is, can you live with the total loss of those files if the drive does fail? If you are storing files that you value, then a backup is needed to help protect those files. Ideally that would mean two drives, not one. One to use for the storing the files, and the second to use to back those files up. -
Need document for User profile.
Hi,
Can you please let me know where i will get the complete document for User profile.
Thanks
UtsavHi
The purpose of the status profile to restrict the Std business transaction.
Follow the link
http://help.sap.com/saphelp_crm30/helpdata/en/73/29943a7acb9023e10000000a114084/content.htm
Regards,
S.Babu -
Powershell script for removing some users from a particular Site Collection
Hi,
I am looking for a PowerShell script to delete a few users from a particular Site Collection. I am unable to delete them from/_catalogs/Users/simple.aspx page therefore need some other medium to
delete users from the site collection.
My ultimate aim is to have no user profile with "tp_deleted" field's value as 0 in the USERINFO table. Currently there are about 40 odd users with this field's value as 0 and this is affecting my crawling of this content database.Thanks for the reply Alex & eHaze,
I have a content source of root site which crawls all the site collections under it. Out of the 9 site collections, only 8 are getting crawled and 1 doesn't get crawled at all. The error in the crawl logs is
The SharePoint item being crawled returned an error when requesting data from the web service. ( Error from SharePoint site: Value does not fall within the expected range. )
I tried a lot of things, searched over the net and finally found
this which helped me solve the same issue in my development environment. I deleted these users from userInfo table and ran a full crawl. And the issue was fixed.
Now since I cannot delete the users from userInfo table directly from PROD environment, I used .../_catalogs/Users/simple.aspx list
to delete users from this site collection. While some of the users I could delete, quite a few I could not. Clicking on the profile redirected me to the home page rather than the info page of the profile.
This
is why I have to delete these users from the site collection.
Alex - the link you shared, I guess it is for a web application level.
eHaze - the script you shared throws this error:
Get-SPSite : Cannot find an SPSite object with Id or Url: http://dev-apps/divisions/BT. At C:\PowerShell Scripts\DeleteUserFromSiteCollection1.ps1:4 char:19
+ $site = get-spsite <<<< $siteURL
+ CategoryInfo : InvalidData: (Microsoft.Share...SPCmdletGetSite:
SPCmdletGetSite) [Get-SPSite], SPCmdletPipeBindException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletGetSite
You cannot call a method on a null-valued expression.
At C:\PowerShell Scripts\DeleteUserFromSiteCollection1.ps1:9 char:27
+ $site.SiteUsers.Remove <<<< ($LoginName)
+ CategoryInfo : InvalidOperation: (Remove:String) [], RuntimeExc
eption
+ FullyQualifiedErrorId : InvokeMethodOnNull
hope this info helps. -
Sharepoint 2013 ADFS Integration duplicates User Profiles for each Authentication Type
Hello everyone
i am building up a sharepoint farm which is hosting some of our corporate web sites. before integration Adfs and using SAML-Based Authentication every user had a single User Profile and were happy.
when i integrated adfs 3.0 and sharepoint 2013 SP1 i found whoun a user logs into sharepoint by using trusted identity token issuer (adfs 3.0) they get redirected to a new profile which is totally different from their old Profile. what is the problem ?The problem is that SharePoint does not support Multilogon accounts. I asked for that here -
http://sharepoint.uservoice.com/forums/282887-customer-feedback-for-sharepoint-server/suggestions/7085002-multilogon-accounts
If you're just moving to ADFS only, then you can migrate users with Convert-SPWebApplication -
https://technet.microsoft.com/en-us/library/jj219696(v=office.15).aspx or with a script provided here:
http://blogs.msdn.com/b/sambetts/archive/2014/09/03/how-to-migrate-sharepoint-users-to-adfs.aspx (uses Move-SPUser). -
SharePoint 2010 Web Analytics showing user Display Name and Account Name from the same user
Hi!
Since July, 16th 2012 the Web Analytics Daily Unique Visitors reports started to show almost the double of visitors we used to have on our Web Application. Here are some of the data (I intentionally deleted the weekend data):
10/7/2012 2.497
11/7/2012 2.723
12/7/2012 2.722
13/7/2012 2.699
16/7/2012 5.055
17/7/2012 4.963
18/7/2012 4.954
19/7/2012 4.998
20/7/2012 4.965
23/7/2012 5.117
24/7/2012 5.012
25/7/2012 5.071
As you may notice the data jumped from around 2.700 unique visitors to around 5.000 unique visitors. As the number of permissioned users remains constant it is pretty odd. I also checked the Number of Page Views report and see no change on its behavior.
The number of page views remained constant.
So I went to look the Top Visitors report and understand why the visitors number almost doubled. The analytics started to count the users Display Name and Account name as two different visitors with a different number of page views. Let me show you an example
from yesterday (July, 25th) Top Visitors report:
# Visitor Page Views %
1 Cinthia XXXXXXXXXX 359 0,55%
5 Giselle XXXXXXXXXX 143 0,22%
7 Aline XXXXXXXXXX 138 0,21%
15 nt\cmazevedo 111 0,17%
60 nt\gbsantana 69 0,11%
73 nt\aglsiqueira 65 0,10%
"Cinthia" and the account "nt\cmazevedo" are the same person. The same is applied to "Giselle" / "nt\gbsantana" and "Aline" / "nt\aglsiqueira".
As I stated this is an example from July, 25th. If I checked the same report from a period before July, 16th I can only see the users Display Name as "Visitors". No account name is displayed or counted as a different visitor.
About the environment:
We have two SharePoint 2010 farms: a "corporate" and a "enterprise". The corporate farm contains four web servers and a central administration servers with publishing services. The enterprise farm contains two servers running User Profile Services, Search
Services and some others. Our main version is the SP1 with June/2011 Cumulative Update with a few more hotfixes applied.
This behavior on analytics is affecting all web applications (we have more than 20) installed on this farm and my company Support team said that no change were made on SharePoint on the weekend the problem started.
Does anyone have any tip about what is going on?
Thanks in advance!Hi, Manas!
First of all thanks for your interest on this issue but I don't think it is related to the User Profile or the Active Directory.
I checked both records and there was no change on the Display Names. All the users have "full names" as display names (first + middle + last name) and not logins as SharePoint is displaying on this report.
But I did a test yesterday and checked the results today confirming that just the access been made using a specific server are causing this. Explaining it better:
I have four web servers on my farm named from P01 to P04. Then I created this test script:
Step 1: Change local HOSTS file to point the web application on the server P01.
Step 2: Access site "A"
Step 3: Access site "B"
Step 4: Close the browser.
Step 1: Change local HOSTS file to point the web application on the server P02.
Step 2: Access site "C"
Step 3: Access site "D"
Step 4: Close the browser.
Step 1: Change local HOSTS file to point the web application on the server P03.
Step 2: Access site "E"
Step 3: Access site "F"
Step 4: Close the browser.
Step 1: Change local HOSTS file to point the web application on the server P04.
Step 2: Access site "G"
Step 3: Access site "H"
Step 4: Close the browser.
I asked three users to execute that script. The results: All access to the sites "C" and "D" were registered on Web Analytics with the user account name such as "nt\cmazevedo". All the other sites registered the user Display Name correctly such as "Cinthia
XXXXXXXXXX".
With this test we could isolate the problem just on the server P02. It doesn't occur on the others. Now my support team is trying to find any configuration difference between this server and the other three that could point for the root cause.
I am also looking for some information regarding the service responsible for this task ("transform the account name into a display name") to understand why it doesn't work on one server and works on the others.
Thanks! -
Microsoft TechNet Wiki SharePoint 2010 Guru - Winners for December!!
The results for December's
TechNet Guru competition have been posted!
http://blogs.technet.com/b/wikininjas/archive/2014/01/16/technet-guru-awards-december-2013.aspx
Congratulations to all our new Gurus for December!
We will be interviewing some of the winners and highlighting their achievements, as the month unfolds.
Post your JANUARY contributions here:
http://social.technet.microsoft.com/wiki/contents/articles/22211.technet-guru-contributions-for-january-2014.aspx
Read all about January's competition, hopefully in a stickied post, at the top of this forum.
Below is a summary of the medal winners for December. The last column being a few of the comments from the judges.
Unfortunately, runners up and their judge feedback comments had to be trimmed from THIS post, to fit into the forum's 60,000 character limit, however
the full version is available on TechNet Wiki.
Some articles only just missed out, so we may be returning to discuss those too, in future blogs.
BizTalk Technical Guru - December 2013
Steef-Jan Wiggers
Managing Windows Azure BizTalk Services with REST API
Ed Price: "I'm not sure how you come up with such vital topics, but this is as important as it comes, and you nailed it!!!"
TGN: "It's almost unfair for others, Steef-Jan is a God when it comes to writing tutorials and articles, great one!"
Sandro Pereira
BizTalk Server: Grouping and Sorting Operations Inside BizTalk Maps
Using the Muenchian Method
TGN: "Very good article, I love this. Explains grouping and sorting in a good way, and by following best practice. Very good Sandro"
Ed Price: "Great explanations and fantastic formatting!"
Maheshkumar S Tiwari
BizTalk Server 2010: How to Insert Image In SQL Through Orchestration
Ed Price: "Very clear instructions through great use of images!"
TGN: "Should contain a warning around the size of the images, I do not usually recommend this way when using BizTalk due to performance."
SharePoint 2010 / 2013 Technical Guru - December 2013
Matthew Yarlett
SharePoint: A Complete Guide to Getting and Setting Fields using C#
Craig Lussier: "A fantastic reference that every SharePoint developer should have bookmarked. Well done!"
GO: "Matthew knows how to write an article worthy of recognition! This is a reliable source and contains many SharePoint and PowerShell examples that will be useful for IT-PRO as developers! A big thank you for your participation and your
articles Matthew! Excellent work!"
Margriet Bruggeman: "What a handy reference!"
Ed Price: "What an epic article! From Mohammad in the comments: "this is something to add in my favourites, thanks"
Jinchun Chen: "Good guide"
Benoit Jester - MTFC
SharePoint 2013 - Design Manager : Use of Display Templates
Ed Price: "The comments say it well. From Matthew: "Great article Benoit! I agree, it's a great feature!" From Dan: "I agree with Matthew. I can see myself refer to this article in the near future. I'm definitely
adding this to my bookmark list. Thank you Benoit for sharing your knowledge.""
Craig Lussier: "Great walkthrough of Display Templates in SharePoint 2013. Well written, great screenshots and thoughtful material. "
GO: "If you want to have a better knowledge of SharePoint 2013, Benoit is your man! Again a great article: The use of XSLT ? Done ! This article absolutely deserves a medal!"
Margriet Bruggeman: "Not a big fan of design manager, but def. a nice write-up"
Nilesh Jain
Sharepoint 2010 : A Complete list of SPFile Operations using ECMA Script
Jinchun Chen: "Good getting start"
GO: "This articles show us various methods/properties associated with SPFile object! Clever article and well written! Great source!"
Craig Lussier: "Well written reference for SPFile operations with solid examples. "
Ed Price: "Solid formatting! Great comments on this article: From Matthew: "Nice article Nilesh!" From Dan: "Thank you for sharing your knowledge. I'm a big fan of using screenshots when writing an article and you've definitely
done a great job here. Thanks again.""
Margriet Bruggeman: "Nice idea, but the reference is too short to be really cool"
Small Basic Technical Guru - December 2013
Nonki Takahashi
Small Basic Known Issue: 21694 - Font and Pen Width Change Earlier in Remote
RZ: "Very useful tip. May potentially save some frustration :)"
Ed Price: "This code is very helpful!"
Nonki Takahashi
Small Basic Known Issue: 22108 - Viewport of GraphicsWindow
is Narrower and Sometimes Resized in Remote
Ed Price: "The diagrams really help make this clear. Great job!"
RZ: "Again, very useful tip. And thank you highlighting them."
Nonki Takahashi
Small Basic Known Issue: 21691 - Rectangle and Ellipse Become Smaller in Remote
RZ: "Very useful tip. May potentially save some frustration :)"
Ed Price: "Your samples you wrote help give these articles an added boost!"
SQL BI and Power BI (SSAS, SSIS, SSRS, Power Pivot) Technical Guru - December 2013
Tim Pacl
Functional Reports: Making a Report Into a Management Tool
NN: "Terrific article! Very helpful and clean steps"
Ed Price: "Tim nails it again with a fantastic and descriptive narrative on a great topic! It could be improved with images to show what you're describing. Fantastic article!"
Michael Amadi
A practical example of how to handle simple many to many
relationships in Power Pivot/SSAS Tabular models
Ed Price: "Great topic and great formatting! The descriptions are helpful, the images and the tables help clarify. The bold text really pops! Great article!"
NN: "Great article explaining a common problem and solution"
Tim Pacl
Using a Date Picker for an Analysis Data Query Parameter
NN: "Another interesting article by Tim"
Ed Price: "Another great article from Tim. Shorter but sweet!"
SQL Server General and Database Engine Technical Guru - December 2013
Uwe Ricken
How does SQL Server allocate space in a heap
Samuel Lester: "Amazing content, great presentation, and incredibly educational! "
DRC: "• Very nice article, very well documented. • Clear explanation of the behaviour and queries to trace the same. • This also explains the output of the queries which makes the users more comfortable while reproducing the behaviour
explained. • The only modification is to remove the .(dot) for the value “8.096” which should be 8096. "
DB: "Clear and informative explanation of details not available elsewhere."
Jinchun Chen: "Awesome"
Ed Price: "Another high-quality article from Uwe! Great formatting and even a good interaction with Shanky in the comments!"
NN: "Great and thorough article"
Transact-SQL Technical Guru - December 2013
Naomi N
T-SQL: Relational Division
DB: "Clear and detailed."
Jinchun Chen: "Nice article!"
Richard Mueller: "Very well done and well researched."
Ed Price: "The article comments say it welll. From Saeid: "Surprised with this one! This is really one of the important topics. Many questions in MSDN SQL forums are about this topic" From Carmelo: "Very good work Naomi!"
Samuel Lester: "Outstanding article again! As mentioned in the article and comments, variations of this question appear in the forums frequently and it is nice to have this article to reference. Great breadth and depth with each solution!"
Durval Ramos
How to extract data in XML to meet the requirements of a Schema
Samuel Lester: "Creative solution and great write-up! "
Richard Mueller: "The articles in this group were very close. This is a great article with outstanding links. The See Also section should only include Wiki articles."
Ed Price: "Very detailed narrative that's well supported by great formatting and images! Great article!"
Saeid Hasani
Error handling within Triggers using T-SQL
Richard Mueller: "A well executed article. The trigger rules were confusing to me."
Ed Price: "Another great article from Saeid! This could be made better with more explanations for each step. Good job!"
Samuel Lester: "Great new content and nice companion to your prior article. "
Visual Basic Technical Guru - December 2013
Dewayne Basnett
Prime Number Sieve
Richard Mueller: "Amazing material that will take some study, but very clever. Donald Knuth in "The Art of Computer Programming", vol. 2, says Eratosthenes filter only considers odd integers and increments from
p*p."
SB: "Nice article, not much practical use but just details coding for the fun of solving a problem"
HomeGrownCoder
Don't Throw Out the System Brushes
Richard Mueller: "An important concept that is well explained, with lots of links. Should have a See Also section."
SB: "Nice article which address a real world issue that occurs."
Paul Ishak
Declaring numeric data types
SB: "Good simple piece helping detail best numeric types to use."
Richard Mueller: "Basic recommendations. This article could use links and a See Also section."
Visual C# Technical Guru - December 2013
Jaliya Udagedara
Loading Related Entities in Entity Framework
NN: "Very clear and helpful article! Nicely done"
DB: "Clear and informative."
Ed Price: "Fantastic article with a good suggestion in the comments. Could benefit from a TOC. Great job!"
chriga
Identifying and Resolving Shortcuts/Links of files and folders
NN: "Short and useful article"
DB: "Useful bit of information."
Ed Price: "Great formatting and article!"
Windows Phone and Windows Store Apps Technical Guru - December 2013
Saad Mahmood
Binding any JSON data list in your application in 10 mins.(Windows Phone)
Ed Price: "Great detail, formatting, and use of images!"
Peter Laker: "Nice simple example"
Saad Mahmood
Now Check for updates of your app inside your Windows Phone application
Ed Price: "Good use of code formatting. Could benefit from a TOC."
Peter Laker: "Great article, thanks Saad"
Ken Tucker
Convert date time received in JSON to a .Net DateTime
Ed Price: "It's valuable, short and sweet, good code commenting, and it has good interaction in the Wiki article comments. But it is a bit generic for this category."
Peter Laker: "Top tip, nice layout, thanks Ken!"
Windows Presentation Foundation (WPF) Technical Guru - December 2013
dev hedgehog
The Myth of BindingGroup
Ed Price: "Very thorough article developed from forum questions. Great job! But why is it a Myth if it's really helpful? =^)"
Peter Laker: "Another excellent contribution from dev hedgehog. Good subject."
Shweta Lodha
Safest way to use RaisePropertyChanged method
Ed Price: "Good topic and explanations. Could be improved with black font and with a TOC. Good job!"
Peter Laker: "Nice tip from Shweta. There are various variations to this."
chriga
Binding of DataGrid column header
Ed Price: "Short and sweet! Fantastic formatting and great descriptions help sell this one!"
Peter Laker: "Useful example and welcome edition to the knowledge base, thanks chrigra!"
Windows Server Technical Guru - December 2013
Mr X
How DNS aging and scavenging works
Richard Mueller: "Very good information. The images, links, and code example help a lot."
JH: "Brilliant article, great explanations and illustrations"
Ed Price: "Explanations, links, code, images, diagrams... it's all here! It could benefit from a TOC for easier navigation. Just add headers and then "[toc]" at the top of the article."
JM: "Excellent article and a nice use of good graphics, nice work!"
Kelly Bush
Delegate Replication Rights to non-admins
JM: "This is an excellent article, nice work!"
JH: "Like how author organized and summarized a forum post and added more, like "applies to" values "
Ed Price: "Good reference, instructions, explanations, and images! Could be improved with a TOC."
Richard Mueller: "On my first reading of the articles in this section I had a 3 way tie for first. This article covers a very important concept for security. It could use a See Also section."
Mr X
How to mark an Active Directory attribute to be copied when duplicating
a user template
Richard Mueller: "Very useful and well explained information. Very good images. This could use a See Also section."
JM: "This is an excellent article, however the first sentence needs to be revised for clarity."
As mentioned above, runners up and their judge feedback were removed from this forum post, to fit into the forum's 60,000 character limit.
A great big thank you to EVERYONE who contributed an article to last month's competition.
Hopefully we will see you ALL again in this month's listings?
As mentioned above, runners up and comments were removed from this post, to fit into the forum's 60,000 character limit.
You will find the complete post, comments and feedback on the
main announcement post.
Please join the discussion, add a comment, or suggest future categories.
If you have not yet contributed an article for this month, and you think you can write a more useful, clever, or better produced wiki article than the winners above,
here's your chance! :D
Best regards,
Pete Laker
More about the TechNet Guru Awards:
TechNet Guru Competitions
#PEJL
Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over to the one and only
TechNet Wiki, for future generations to benefit from! You'll never get archived again!
If you are a member of any user groups, please make sure you list them in the
Microsoft User Groups Portal. Microsoft are trying to help promote your groups, and collating them here is the first step.Congrats to Matthew, Benoit, and Nilesh!
SharePoint 2010 / 2013 Technical Guru - December 2013
Matthew Yarlett
SharePoint: A Complete Guide to Getting and Setting Fields using C#
Craig Lussier: "A fantastic reference that every SharePoint developer should have bookmarked. Well done!"
GO: "Matthew knows how to write an article worthy of recognition! This is a reliable source and contains many SharePoint and PowerShell examples that will be useful for IT-PRO as developers! A big thank you for your participation and your articles
Matthew! Excellent work!"
Margriet Bruggeman: "What a handy reference!"
Ed Price: "What an epic article! From Mohammad in the comments: "this is something to add in my favourites, thanks"
Jinchun Chen: "Good guide"
Benoit Jester - MTFC
SharePoint 2013 - Design Manager : Use of Display Templates
Ed Price: "The comments say it well. From Matthew: "Great article Benoit! I agree, it's a great feature!" From Dan: "I agree with Matthew. I can see myself refer to this article in the near future. I'm definitely adding this
to my bookmark list. Thank you Benoit for sharing your knowledge.""
Craig Lussier: "Great walkthrough of Display Templates in SharePoint 2013. Well written, great screenshots and thoughtful material. "
GO: "If you want to have a better knowledge of SharePoint 2013, Benoit is your man! Again a great article: The use of XSLT ? Done ! This article absolutely deserves a medal!"
Margriet Bruggeman: "Not a big fan of design manager, but def. a nice write-up"
Nilesh Jain
Sharepoint 2010 : A Complete list of SPFile Operations using ECMA Script
Jinchun Chen: "Good getting start"
GO: "This articles show us various methods/properties associated with SPFile object! Clever article and well written! Great source!"
Craig Lussier: "Well written reference for SPFile operations with solid examples. "
Ed Price: "Solid formatting! Great comments on this article: From Matthew: "Nice article Nilesh!" From Dan: "Thank you for sharing your knowledge. I'm a big fan of using screenshots when writing an article and you've definitely done a great
job here. Thanks again.""
Margriet Bruggeman: "Nice idea, but the reference is too short to be really cool"
Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
Small Basic,
Wiki Ninjas,
Wiki)
Answer an interesting question?
Create a wiki article about it! -
Running Exchange 2010 PowerShell Scripts
Hello,
I have a PowerShell Script which calls PSSnapins for Exchange tools. The Exchange Management Tools are installed on the Tidal Server
The Script works fine by itself, I have executed it as the tidal users on the Tidal Server. I have also created a batch file to execute the Powershell script, which also works on the tidal server.
However when I run the job in Tidal it doesn't run correctly by that I mean it will run the none Exchange pieces. In the Output tab it shows:
Add-PSSnapin : The Windows PowerShell snap-in 'Microsoft.Exchange.Management.PowerShell.E2010' is not installed on this machine.
At E:\PowerShell\DailyChecks\Dag_daily.ps1:7 char:13
+ Add-PSSnapin <<<< Microsoft.Exchange.Management.PowerShell.E2010
+ CategoryInfo : InvalidArgument: (Microsoft.Excha...owerShell.E2
010:String) [Add-PSSnapin], PSArgumentException
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.Ad
dPSSnapinCommand
Add-PSSnapin : The Windows PowerShell snap-in 'Microsoft.Exchange.Management.Powershell.Support' is not installed on this machine
These Scripts also work via Windows Task Scheduler as written I would really like to get these to work in Tidal. We are Tidal 5.3.1.
Any help would be greatly appreciated.
Lee MerrillI have struggled with a similar issue with Sharepoint snapin with performing a backup
I can give a couple of suggestions
Add snapin to default profiles
We also see a difference in 64 vs 32 bit oprerations
we had to add to both versions using a local profile.ps1 and adding a line
Add-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue
C:\Windows\System32\WindowsPowerShell\v1.0
C:\Windows\SysWOW64\WindowsPowerShell\v1.0
Execute remotely
Slightly different setup on our side
I am trying to invoke-command on the remote sharepoint server =
( you have to set up psremoting, etc)
Invoke-Command -ComputerName -scriptblock { E:\Backup\BackupSite.ps1}
Similarly I can execute the backup.ps1 with no issue on the server but can't from the tidal job.
I'll let you know if we find a fix
I am thinking double hop at this point and need to trust for delegation, etc
Marc -
Exception thrown while enumerating UserProfileManager for user profile
Hello All,
We have a SharePoint 2010 Timer Job in which access User Profile Service Application and update user profile properties of some the users. This user profiles is synched with AD.
We have following lines of code here:
SPServiceContext context =
SPServiceContext.GetContext(site);
UserProfileManager profileManager =
new UserProfileManager(context);
int
count = profileManager.Count
//This line works OK
foreach (UserProfile userProfile
in profileManager) //This throws exception at first loop
When we start looping through the
UserProfileManager instance in above lines of code it throws following exception:
System.TimeoutException at Microsoft.Office.Server.UserProfiles.ProfileDBCacheServiceClient.GetUserData(UserSearchCriteria searchCriteria)
at Microsoft.Office.Server.UserProfiles.UserProfileCache.GetBulkUserProfiles(UserProfileManager objManager, String searchColumn, IList searchList, Boolean includeNullsForUnresolvableUsers, Int64& lFailedCount)
at Microsoft.Office.Server.UserProfiles.UserProfileCache.GetBulkUserProfiles(UserProfileManager objManager, List`1 userIdList, Boolean includeNullsForUnresolvableUsers, Int64& lFailedCount)
at Microsoft.Office.Server.UserProfiles.ProfileEnumerator`1.PopulateUserProfileQueue(IList userSearchList)
at Microsoft.Office.Server.UserProfiles.ProfileEnumerator`1.PopulateQueue()
at Microsoft.Office.Server.UserProfiles.ProfileEnumerator`1.MoveNext()
One point to note here is that we have almost 50,000 user profiles in total. This exception is thrown intermittently, I mean in the last 10 days it has happened thrice.
It will be great if someone can help me out on this. Please let me know if any additional information is required.
ThanksHi,
As I understand, you encountered User Profile time out issue.
First of all, please confirm that related service and service application are at started status on all servers.
User Profile time out issue might be caused by several reasons, as you said the issue is generated intermittently, there might be networking issue as well. So please check ULS log for related error message.
Similar issue:
http://wingleungchan.blogspot.com/2012/11/userprofileapplicationnotavailableexcep.html
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support
Maybe you are looking for
-
Connection refused when trying to getOutputStream from https connection
Hi all ! I want to make an https connection with a server to send/get the request/response What can be the cause of the following error in the following code testHttps.java? java.net.ConnectException: Connection refused: connect at java.net.PlainSock
-
My ipod touch asking me for a password after reset setting
hi, i need help with my ipod i reset the setting and now need a password that i don't have it, can you tell me what i can do? is an ipod touch 2G
-
Hi Need to to provide vendors with the view of all Purchase Orders raised against them along with attached supporting documents with drill-down functionality and version history created by revisions Need to provide vendors with an on-line interface t
-
How can i get current time in different TimeZone
Hi alls, How can i get current time in different TimeZone. I've tried final Calendar calendar = Calendar.getInstance(GMT0_TIME_ZONE); final Date date = calendar.getTime(); but it returns current time in my time zone not in GMT0
-
White calendar background on Q10 since update yesterday
I installed the latest update yesterday. Now, the calendar background color is white and I can't switch to black. Contacts and Phone Apps are still black. White does not only consume more battery but also the contrast with the grey letters is very lo