Skip Ribbon Commands
Skip to main content

Quick Launch

Todd Klindt's home page > Todd Klindt's Office 365 Admin Blog > Posts > PnP Script Sample: Force a User Profile Property Index
August 01
PnP Script Sample: Force a User Profile Property Index

Have you ever updated some properties for a user in SharePoint Online, waited what seemed like a reasonable length of time, then did a search for that user? Have you ever done that and found your old values still there? Gah! Me too! Did you then use Mikael Svenson’s brilliant script to fix that? Yeah, me too. A few times.

I’m also a tinkerer, and I love me some PowerShell. So I cracked open VS Code, put on some aggressive music, loaded up Mikael’s code, and looked around a bit. I found a couple of things that I’d do differently. Not that there’s anything wrong with his code, it’s good stuff. But I wanted to so some stuff like turn his code into a function, so I could add it to an existing module I have. I wanted to move the JSON file from the root of the web to the Shared Documents library, innocent little changes like that. And his code had been written several years ago. PowerShell has matured since then, as coders we’ve matured, so I cleaned a few other little things up while I was in there. It was fun, and it kept me off the streets for a while.

After I got done I reached out to Mikael to see if he was okay with me sharing it with all of you. Mikael, being the stand up guy that he is, was totally good with it. Then I reached out to Paul Bullock about getting it published to the PnP Script Samples. I’ve been meaning to start submitting some stuff to that, but I didn’t have anything I thought was worthy. Paul graciously accepted my script, so now you can all enjoy it too.

While you’re there, check out all the other great script samples. There’s some gold in those hills.

tk

ShortURL: https://www.toddklindt.com/PoshReindexUPS

Comments

Re: PnP Script Sample: Force a User Profile Property Index

The Home Storage is among the best public storage facility in a centralized location in Al qouz Dubai offering storage units of all sizesthehomestoragedubai https://www.thehomestoragedubai.com
 on 10/1/2023 5:26 AM

asa

Tangkasnet Me: Your gateway to the exciting world of bola tangkas https://tangkasnet.systems/ online. Join us to learn more about this captivating Android-based ball game.
 on 10/2/2023 5:45 AM

Re: PnP Script Sample: Force a User Profile Property Index

Thanks with regard to publishing this type of excellent post! I discovered your site ideal for my personal requirements. It has fantastic as well as useful articles. Continue the great function!Best CFD trading platform https://tradeforextoday.net/best-cfd-trading/
 on 10/3/2023 4:19 AM

XDGDRFEH

In the journey of life, we all come across moments that compel us to contemplate our legacy and the future of our loved ones. It's during these pivotal moments that the importance of estate planning, wills, and inheritance law becomes abundantly clear. Hertwig & Auer, your dedicated , stands ready to guide you through this intricate legal landscapeAnwalt für erbrecht Saarland https://erbrecht-anwalt-saarland.de/.
 on 10/3/2023 9:12 AM

Re: PnP Script Sample: Force a User Profile Property Index

Explore Mix Home Mercantile, your go-to Furniture store in Iowa City https://www.mixhomemercantile.com/. We offer a curated selection of home goods and professional interior design services. Visit our retail location or shop online today!
 on 10/4/2023 4:09 AM

Re: PnP Script Sample: Force a User Profile Property Index

Discover the Best Hindi NAATI Translator Services in Australia! Visit our website to explore more about our certified Hindi Translator https://worldwideinterpreters.com.au/languages/hindi-naati-translator/ and their expertise in accurate document translations.
 on 10/4/2023 4:22 AM

Re: PnP Script Sample: Force a User Profile Property Index

Excellent publish, Thanks with regard to discussing This particular understanding. Wonderfully created post, if perhaps just about all writers provided exactly the same degree of content material while you, the web will be a far better location. Make sure you continue the good work!mp3-juice https://mp3-juice.store
 on 10/4/2023 9:23 AM

Re: PnP Script Sample: Force a User Profile Property Index

Veggie Planet is an Indian Street Food & Vegetarian Restaurant. We are proud to serve authentic Indian Street Food with a touch of American and Mexican fusion flavours.Indian Food near me https://g.page/veggieplanet?share
 on 10/5/2023 2:13 AM

XDGDRFEH

In the world of sports betting, change is constant. The rise of Elite Bettings signals a shift towards a more data-driven, strategic, and cost-effective approach to sports wagering. While Vegas Dave and others have made their mark, Elite Bettings offers a fresh perspective, one that prioritizes your success and financial well-being. For more information you can visit us.Visit us https://community.wongcw.com/blogs/583697/Experience-a-Game-Changing-Revolution-in-Sports-Betting-with-Elite
 on 10/7/2023 5:35 AM

Re: PnP Script Sample: Force a User Profile Property Index

Compete the great get the job done, As i browse small amount of content articles in this particular websites and even It looks like that your choice of word wide web web log is without a doubt realistic important and allows gotten forums in fabulous tips.온라인바카라사이트 https://thedagames.com/
 on 10/8/2023 1:33 AM
1 - 10Next

Add Comment

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title


Body *


Today's date *

Select a date from the calendar.
Please enter today's date so I know you are a real person

Twitter


Want a message when I reply to your comment? Put your Twitter handle here.

Attachments

 

 SysKit