Comments (12)
I am on it
from sharepointdsc.
hey. what about order and grouping(can't remember how it is called in CA)?
from sharepointdsc.
Good point - now sure how we include this. You got suggestions or ideas? Im pretty sure group is just another string property so that should be fine, but I forget about the ordering stuff.
from sharepointdsc.
Pretty sure I've got a script that adds the property, saves it, then retrieves all properties and reorder them. I am just a little worried that DSC might not like that as I think we could end up with another loop as property index might be changed by another property.
ie: there is a default property p26(A) I add another one to p26(B).
B is now p26, A is p27.
if I add C as p26 we have
C - p26
B - p27
A - p28.
I will code it up and we test in your super dupa sexy environment
from sharepointdsc.
Yea I'm inclined to park the ordering to another day (maybe we do a separate resource to define the order of all properties so we avoid a loop like that)
from sharepointdsc.
could / should property order be another resource?
from sharepointdsc.
:)
from sharepointdsc.
check this out
param( $siteUrl)
Add-PSSnapin microsoft.sharepoint.powershell -ErrorAction SilentlyContinue
Add-Type -Path "C:\program files\common files\microsoft shared\web server extensions\15\isapi\Microsoft.Office.Server.dll"
#$configFile =xml
#function UPPReorder($configFile,$siteUrl){
$config = xml
$mys = Get-SPSite $siteUrl
$context = Get-SPServiceContext $mys
$upcManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileConfigManager($context)
#if you have several profile sub-types, you might want to change the following line and use the name of the desired profile sub-type
$defaultUserProfileSubTypeName = [Microsoft.Office.Server.UserProfiles.ProfileSubtypeManager]::GetDefaultProfileName("User")
$profileSubtypePropManager = $upcManager.ProfilePropertyManager.GetProfileSubtypeProperties($defaultUserProfileSubTypeName)
foreach($property in $config.Configuration.Properties.childnodes){
$propName = $property.Name
Write-Host "Updating property $propName ..."
$profileSubtypePropManager.SetDisplayOrderByPropertyName($property.Name,$property.Order)
}
$profileSubtypePropManager.CommitDisplayOrder()
Write-Host "Finished."
#}
#SAMPLE USAGE
#UPPReorder C:\Temp\Blog\config.userproperties.xml http://spdevel.portal.com
from sharepointdsc.
Lets call it now - yes, sort order of properties should be a separate resource - leave it out of this :)
from sharepointdsc.
hello.
please mark this as in progress :)
from sharepointdsc.
All yours @camiloborges
from sharepointdsc.
Released in v0.10 - closing this issue
from sharepointdsc.
Related Issues (20)
- SPUserProfileServiceApp: PSDSCRunAsCredential does not become a db_owner
- Pass empty string to parameter HOT 1
- [SPSearchIndexPartition] Regression introduced with with the fix for issue #1376
- [SPProductUpdate] Resource does not support SPSE yet
- [SPProductUpdate] Resource pauses the Search Service
- [SPInstallPrereqs] Multiple instances of the VC++ Redist causes issues
- [SPShellAdmins] Get-SPDatabase cmdlet cannot be found
- [SPConfigWizard] Add possibility to temporarily dismount content databases during config wizard
- SPHybridConfig: New resource proposal HOT 1
- SPTrustedRootAuthority - Error while adding Trusted Root Authority via CertificateThumbprint
- SPInstallPrereqs: sqlncli.msi is no longer required after November 2021 CU HOT 2
- SPPublishServiceApplication - Set-TargetResource does not work
- Issue while exporting the site configurations with certificate thumbprint HOT 2
- [Export] Export doesn't work in SPSE
- [SPFarm] Import-Module SharePointServer causes exception in SharePoint Subscription 23H1 HOT 3
- SPCertificateSettings: Unable to set contacts when previously blank
- Intro and SPSite Enhancement
- DSC Resource HOT 1
- Least-privileged security model enabled after Oct 22 CU
- Visio Graphics Service Application
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharepointdsc.