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

vinoland.com

<a href="https://www.vinoland.com/it/bourgogne-chardonnay/11556-Dancer-Vincent-2020-Bourgogne-AOC-Chardonnay.html">Il Dancer Vincent 2020 Bourgogne AOC Chardonnay è un vino elegante e raffinato, caratterizzato da fresche note di agrumi e frutta a polpa bianca</a>. La sua complessità si sviluppa in un finale minerale e persistente, perfetto per accompagnare piatti di pesce o formaggi freschi. Acquistalo su vinoland.com per un'esperienza unica!
 on 12/23/2024 3:04 AM

karkar

<a href="https://karkar.it/listing/alfa-romeo-stelvio/">Scopri l'Alfa Romeo Stelvio, il SUV che unisce eleganza e performance</a>. Dalle linee fluide e sportive, offre un'esperienza di guida eccezionale grazie al suo motore potente e alla trazione integrale. Visita karkar.it per acquistarla e vivi il connubio perfetto tra lusso e innovazione. Non perderti questa opportunità!
 on 12/23/2024 3:08 AM

blog.vinoland

<a href="https://blog.vinoland.com/vini-rossi/banfi-2001-brunello-di-montalcino-docg-poggio-alle-mura/">Il Brunello di Montalcino è senza dubbio uno dei vini più apprezzati al mondo</a>


, e tra le etichette che hanno segnato la sua storia, il “Banfi 2001 Brunello di Montalcino DOCG Poggio Alle Mura” occupa un posto d’onore. Questo vino, proveniente dalle colline toscane, è l’espressione della tradizione vinicola italiana e dell’eccellenza della Tenuta Banfi, una delle aziende vitivinicole più rinomate della regione.
 on 12/23/2024 3:12 AM

antichebottiglie

<a href="https://antichebottiglie.com/">Antiche Bottiglie è una realtà Torinese specializzata nella compravendita di bottiglie da collezione</a>.
Dal 2010 operiamo nel settore del collezionismo e delle bottiglie di pregio, spinti dalla passione per il vino e ispirati da questa grande peculiarità del territorio piemontese.
Valutiamo e acquistiamo in tutta Italia bottiglie di vino d’annata come Barolo, Barbaresco, Brunello di Montalcino, Supertuscan, Champagne, vini francesi, liquori e distillati in particolar modo Whisky, Rhum e Cognac con un unico denominatore comune: IL PREGIO.
 on 12/23/2024 3:15 AM

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