質問

Does anyone know how to programmatically change the Personal Site field in their SharePoint Profile programmatically? I can do it via the GUI on the SSP server, but that takes an unacceptable amount of clicks for the number we need to do. Using PowerShell, we have accessed the User Profile object, but the properties there are read-only, and cannot be set.

役に立ちましたか?

解決

Inspired by a recent xkcd, I'm posting the answer I found for future users.

After getting the user profile object into $user:

$user[[Microsoft.Office.Server.UserProfiles.PropertyConstants]::personalspace].value = "/personal/etc..."

This link has a list of the "PropertyConstants" values that can be set in this manner:
MSDN: PropertyConstants Members

ライセンス: CC-BY-SA帰属
所属していません sharepoint.stackexchange
scroll top