<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Luís Rato, Author at Blog IT</title>
	<atom:link href="https://blogit.create.pt/author/luisrato/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Create IT blogger community</description>
	<lastBuildDate>Thu, 10 Jan 2019 12:46:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>Get UserProfile and set property value with PowerShell</title>
		<link>https://blogit.create.pt/luisrato/2014/10/22/get-userprofile-and-set-property-value-with-powershell/</link>
					<comments>https://blogit.create.pt/luisrato/2014/10/22/get-userprofile-and-set-property-value-with-powershell/#respond</comments>
		
		<dc:creator><![CDATA[Luís Rato]]></dc:creator>
		<pubDate>Wed, 22 Oct 2014 09:14:04 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<guid isPermaLink="false">http://blogit.create.pt/luisrato/?p=91</guid>

					<description><![CDATA[<p>Get a UserProfile [void][reflection.assembly]::Loadwithpartialname(&#8220;Microsoft.Office.Server&#8221;); $site=new-object Microsoft.SharePoint.SPSite(&#8220;http://sharepoint-site-url&#8221;); $serviceContext = Get-SPServiceContext $site; $site.Dispose(); $upm = new-object Microsoft.Office.Server.UserProfiles.UserProfileManager($serviceContext); $userProfile = $upm.GetUserProfile(&#8220;domain\username&#8221;); Set property value $userProfile[&#8220;property_internalname&#8221;].Value = &#8220;property value&#8221;; $userProfile.Commit();</p>
<p>The post <a href="https://blogit.create.pt/luisrato/2014/10/22/get-userprofile-and-set-property-value-with-powershell/">Get UserProfile and set property value with PowerShell</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<blockquote><p><strong>Get a UserProfile</strong><br />
[void][reflection.assembly]::Loadwithpartialname(&#8220;Microsoft.Office.Server&#8221;);<br />
$site=new-object Microsoft.SharePoint.SPSite(&#8220;http://sharepoint-site-url&#8221;);<br />
$serviceContext = Get-SPServiceContext $site;<br />
$site.Dispose();<br />
$upm = new-object Microsoft.Office.Server.UserProfiles.UserProfileManager($serviceContext);<br />
$userProfile = $upm.GetUserProfile(&#8220;domain\username&#8221;);</p>
<p><strong>Set property value</strong><br />
$userProfile[&#8220;property_internalname&#8221;].Value = &#8220;property value&#8221;;<br />
$userProfile.Commit();</p></blockquote>
<p>The post <a href="https://blogit.create.pt/luisrato/2014/10/22/get-userprofile-and-set-property-value-with-powershell/">Get UserProfile and set property value with PowerShell</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blogit.create.pt/luisrato/2014/10/22/get-userprofile-and-set-property-value-with-powershell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
