<?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>Remote Desktop Services | KC's Blog</title>
	<atom:link href="https://www.kjctech.net/tag/remote-desktop-services/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.kjctech.net</link>
	<description></description>
	<lastBuildDate>Tue, 24 Jan 2023 18:21:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/12/cropped-KC-Logo.png?fit=32%2C32&#038;ssl=1</url>
	<title>Remote Desktop Services | KC's Blog</title>
	<link>https://www.kjctech.net</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">24634607</site>	<item>
		<title>Getting Client IP Addresses and its Geolocation from Remote Desktop Gateway Sessions</title>
		<link>https://www.kjctech.net/getting-client-ip-addresses-and-its-geolocation-from-remote-desktop-gateway-sessions/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=getting-client-ip-addresses-and-its-geolocation-from-remote-desktop-gateway-sessions</link>
					<comments>https://www.kjctech.net/getting-client-ip-addresses-and-its-geolocation-from-remote-desktop-gateway-sessions/#comments</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Mon, 23 Jul 2018 23:20:08 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[RD Gateway]]></category>
		<category><![CDATA[Remote Desktop Services]]></category>
		<guid isPermaLink="false">https://www.kjctech.net/?p=4138</guid>

					<description><![CDATA[<p>To get the IP addresses of the remote desktop sessions behind a Remote Desktop Gateway, you need to open RD Gateway Manager, go to Monitoring section and check each of the connected sessions to find their IP addresses. If you want to look further for their geolocations as well, you would search the IP address in one of the geolocation [&#8230;]</p>
The post <a href="https://www.kjctech.net/getting-client-ip-addresses-and-its-geolocation-from-remote-desktop-gateway-sessions/">Getting Client IP Addresses and its Geolocation from Remote Desktop Gateway Sessions</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>To get the IP addresses of the remote desktop sessions behind a Remote Desktop Gateway, you need to open <strong>RD Gateway Manager</strong>, go to <strong>Monitoring</strong> section and check each of the connected sessions to find their IP addresses. If you want to look further for their geolocations as well, you <g class="gr_ gr_31 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="31" data-gr-id="31">wou</g>ld search the IP address in one of the geolocation websites to find out.</p>



<p>That is just too many steps involved and there got to be a better way to handle this if I want to monitor all incoming remote sessions on a regular consistent basis. Time to ask PowerShell for help.</p>



<p>You can use <g class="gr_ gr_4 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins replaceWithoutSep" id="4" data-gr-id="4">Get-WmiObject</g> cmdlet to query the Win32_TSGatewayConnection class for live session data on the Gateway server. Like this:</p>



<pre class="wp-block-preformatted">Get-WmiObject -class "Win32_TSGatewayConnection" -namespace "root\cimv2\TerminalServices" -ComputerName remote_server -Authentication 6</pre>



<figure class="wp-block-image"><img data-recalc-dims="1" fetchpriority="high" decoding="async" width="640" height="403" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/07/image.png?resize=640%2C403&#038;ssl=1" alt="" class="wp-image-4144" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/07/image.png?w=859&amp;ssl=1 859w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/07/image.png?resize=250%2C157&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/07/image.png?resize=450%2C283&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/07/image.png?resize=768%2C484&amp;ssl=1 768w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/07/image.png?resize=600%2C378&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/07/image.png?resize=700%2C441&amp;ssl=1 700w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/07/image.png?resize=520%2C327&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/07/image.png?resize=360%2C227&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/07/image.png?resize=100%2C63&amp;ssl=1 100w" sizes="(max-width: 640px) 100vw, 640px" /></figure>



<p>To get the geolocation info, you can call up <strong>Invoke-RestMethod</strong> cmdlet that deals with HTTP/HTTPs&nbsp;requests related to Representational State Transfer (REST) web services that return richly structured data, such as XML or JSON. It’s a perfect candidate to perform the call and display the result in a nicely formatted way. It runs something like this:</p>



<pre class="wp-block-preformatted">Invoke-RestMethod -Uri "http://ipinfo.io/$ipaddress"</pre>



<figure class="wp-block-image"><img data-recalc-dims="1" decoding="async" width="523" height="313" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/07/image-1.png?resize=523%2C313&#038;ssl=1" alt="" class="wp-image-4145" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/07/image-1.png?w=523&amp;ssl=1 523w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/07/image-1.png?resize=250%2C150&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/07/image-1.png?resize=450%2C269&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/07/image-1.png?resize=520%2C311&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/07/image-1.png?resize=360%2C215&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/07/image-1.png?resize=100%2C60&amp;ssl=1 100w" sizes="(max-width: 523px) 100vw, 523px" /></figure>



<p>For more information about getting Geolocation info from PowerShell, check out <a href="https://www.nextofwindows.com/getting-geo-location-of-any-ip-address-or-hostname-in-powershell">this post</a>.</p>



<p>Putting together, here is the code you can use to get all live sessions&#8217; IP addresses and their geolocation info on the Remote Gateway server.</p>



<pre class="wp-block-code"><code lang="javascript" class="language-javascript">$ts = Get-WmiObject -class "Win32_TSGatewayConnection" -namespace "root\cimv2\TerminalServices" -ComputerName remote_server -Authentication 6
$ofs = "`r`n`r`n"
$body = "Gateway connections: " + $ofs

foreach ($connection in $ts)
{
    $username = $connection.username
    $ip = $connection.clientaddress
    $geo = Invoke-RestMethod -Uri "http://ipinfo.io/$ip"
    $body = $body + $connection.ConnectedTime + $username + $geo + $ofs
} 
$body</code></pre>



<p>It works great to get data from the live sessions. What about the closed sessions that you missed? You can create a scheduled task that triggers a PowerShell script every time a session goes live. The trigger needs to be based on the event, more specifically, Microsoft-Windows-TerminalServices-Gateway/Operational. See the trigger below:</p>



<figure class="wp-block-image size-large"><img decoding="async" width="600" height="519" src="//i0.wp.com/kjctech.net/wp-content/uploads/2021/09/image-4-600x519.png" alt="" class="wp-image-4678" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/09/image-4.png?resize=600%2C519&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/09/image-4.png?resize=450%2C389&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/09/image-4.png?resize=250%2C216&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/09/image-4.png?resize=520%2C450&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/09/image-4.png?resize=360%2C311&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/09/image-4.png?resize=100%2C86&amp;ssl=1 100w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/09/image-4.png?w=605&amp;ssl=1 605w" sizes="(max-width: 600px) 100vw, 600px" /></figure>



<p>The script will then collect the IP info of that session and save it to the event log.</p>



<pre class="wp-block-code"><code lang="powershell" class="language-powershell">$ts = Get-WmiObject -class "Win32_TSGatewayConnection" -namespace "root\cimv2\TerminalServices" -ComputerName Remote_Server -Authentication 6  | Sort-Object ConnectionDuration -Desc
$ofs = "`r`n`r`n"
$body = "Gateway connections: " + $ofs

foreach ($connection in $ts)
{
    $username = $connection.username
    $ip = $connection.clientaddress
    $geo = Invoke-RestMethod -Uri "http://ipinfo.io/$ip"
} 

$body = $body + $connection.ConnectedTime + ": " +$username + $geo + $ofs

$server = "remote_server"
$logname = "application"
#New-EventLog -ComputerName $server -Logname $logname -Source "MyApp"
Write-EventLog -ComputerName $server -Logname $logname -Source "MyApp" -EventID 3001 -Message $body</code></pre>



<p>Note that the script only extracts the last session from the session collection so only the newest info will be saved into the log. Once the data is saved in the event log, I can run another PowerShell script to collect and send them to me via email. And I can schedule that script to run on <g class="gr_ gr_4 gr-alert sel gr_gramm gr_replaced gr_inline_cards gr_disable_anim_appear Grammar only-ins replaceWithoutSep" id="4" data-gr-id="4">a </g>daily basis.</p>The post <a href="https://www.kjctech.net/getting-client-ip-addresses-and-its-geolocation-from-remote-desktop-gateway-sessions/">Getting Client IP Addresses and its Geolocation from Remote Desktop Gateway Sessions</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/getting-client-ip-addresses-and-its-geolocation-from-remote-desktop-gateway-sessions/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4138</post-id>	</item>
		<item>
		<title>Fixing Roaming User Profile Not Completely Synchronized on Windows Server 2012</title>
		<link>https://www.kjctech.net/fixing-roaming-user-profile-not-completely-synchronized-on-windows-server-2012/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fixing-roaming-user-profile-not-completely-synchronized-on-windows-server-2012</link>
					<comments>https://www.kjctech.net/fixing-roaming-user-profile-not-completely-synchronized-on-windows-server-2012/#comments</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Thu, 15 Feb 2018 06:26:33 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[group policy]]></category>
		<category><![CDATA[Remote Desktop Services]]></category>
		<category><![CDATA[User Profile Disk]]></category>
		<guid isPermaLink="false">https://www.kjctech.net/?p=3786</guid>

					<description><![CDATA[<p>I have a Remote Desktop Services running on Windows Server 2012. Users who have the access to that server have the roaming profile set up but every time when they log off a warning message displays on the screen saying that: Your roaming user profile was not completely synchronized. See the event log for details or contact administrator. By checking [&#8230;]</p>
The post <a href="https://www.kjctech.net/fixing-roaming-user-profile-not-completely-synchronized-on-windows-server-2012/">Fixing Roaming User Profile Not Completely Synchronized on Windows Server 2012</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>I have a Remote Desktop Services running on Windows Server 2012. Users who have the access to that server have the roaming profile set up but every time when they log off a warning message displays on the screen saying that:</p>
<blockquote>
<p class="">Your roaming user profile was not completely synchronized. See the event log for details or contact administrator.</p>
</blockquote>
<p><a href="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/User-Profile-Not-Sync.png?ssl=1" data-rel="lightbox-image-0" data-rl_title="" data-rl_caption="" title=""><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-large wp-image-3788" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/User-Profile-Not-Sync.png?resize=600%2C306&#038;ssl=1" alt="" width="600" height="306" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/User-Profile-Not-Sync.png?resize=600%2C306&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/User-Profile-Not-Sync.png?resize=250%2C128&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/User-Profile-Not-Sync.png?resize=450%2C230&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/User-Profile-Not-Sync.png?resize=768%2C392&amp;ssl=1 768w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/User-Profile-Not-Sync.png?resize=700%2C357&amp;ssl=1 700w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/User-Profile-Not-Sync.png?resize=520%2C265&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/User-Profile-Not-Sync.png?resize=360%2C184&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/User-Profile-Not-Sync.png?resize=100%2C51&amp;ssl=1 100w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/User-Profile-Not-Sync.png?w=1375&amp;ssl=1 1375w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/User-Profile-Not-Sync.png?w=1280&amp;ssl=1 1280w" sizes="auto, (max-width: 600px) 100vw, 600px" /></a></p>
<p>By checking the event log, a few warning entries show that</p>
<blockquote>
<p class="">Windows cannot copy file \\?\C:\Users\131\System Volume Information to location \\?\UNC\backup\mcq\profiles\tsProfiles\131.V2\System Volume Information. This error may be caused by network problems or insufficient security rights.</p>
</blockquote>
<p>So why a user profile has a folder called <strong>System Volume Information</strong> that is only made for a storage volume? That&#8217;s because I am using User Profile Disk for the Remote Desktop sessions. Each session has its own disk mounted to store the user profile data. And because it&#8217;s basically a disk, it has a system hidden folder called System Volume Information only accessible by the operating system.</p>
<p>The only way to get around it is to exclude this folder from roaming profile. You can do that through Group Policy.</p>
<p>Open Group Policy Management Policy, go to</p>
<pre class="">User Configuration &gt; Administrative Templates &gt; System &gt; User Profiles</pre>
<p>Double click <strong>Exclude directories in roaming profile</strong> setting.</p>
<p><a href="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/Group-Policy-user-profiles-Exclude-directories.png?ssl=1" data-rel="lightbox-image-1" data-rl_title="" data-rl_caption="" title=""><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-large wp-image-3789" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/Group-Policy-user-profiles-Exclude-directories.png?resize=600%2C380&#038;ssl=1" alt="" width="600" height="380" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/Group-Policy-user-profiles-Exclude-directories.png?resize=600%2C380&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/Group-Policy-user-profiles-Exclude-directories.png?resize=250%2C158&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/Group-Policy-user-profiles-Exclude-directories.png?resize=450%2C285&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/Group-Policy-user-profiles-Exclude-directories.png?resize=768%2C487&amp;ssl=1 768w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/Group-Policy-user-profiles-Exclude-directories.png?resize=700%2C444&amp;ssl=1 700w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/Group-Policy-user-profiles-Exclude-directories.png?resize=520%2C330&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/Group-Policy-user-profiles-Exclude-directories.png?resize=360%2C228&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/Group-Policy-user-profiles-Exclude-directories.png?resize=100%2C63&amp;ssl=1 100w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/Group-Policy-user-profiles-Exclude-directories.png?w=920&amp;ssl=1 920w" sizes="auto, (max-width: 600px) 100vw, 600px" /></a></p>
<p>Click Enable, and type in the folder names, separated by semi-colons.</p>
<p><a href="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/Group-Policy-Enable-Exclude-Directories.png?ssl=1" data-rel="lightbox-image-2" data-rl_title="" data-rl_caption="" title=""><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-large wp-image-3790" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/Group-Policy-Enable-Exclude-Directories.png?resize=600%2C551&#038;ssl=1" alt="" width="600" height="551" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/Group-Policy-Enable-Exclude-Directories.png?resize=600%2C551&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/Group-Policy-Enable-Exclude-Directories.png?resize=250%2C230&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/Group-Policy-Enable-Exclude-Directories.png?resize=450%2C413&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/Group-Policy-Enable-Exclude-Directories.png?w=700&amp;ssl=1 700w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/Group-Policy-Enable-Exclude-Directories.png?resize=520%2C478&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/Group-Policy-Enable-Exclude-Directories.png?resize=360%2C331&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/02/Group-Policy-Enable-Exclude-Directories.png?resize=100%2C92&amp;ssl=1 100w" sizes="auto, (max-width: 600px) 100vw, 600px" /></a></p>
<p>Click OK when done and that will do the trick next time when you log in and log off.</p>The post <a href="https://www.kjctech.net/fixing-roaming-user-profile-not-completely-synchronized-on-windows-server-2012/">Fixing Roaming User Profile Not Completely Synchronized on Windows Server 2012</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/fixing-roaming-user-profile-not-completely-synchronized-on-windows-server-2012/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3786</post-id>	</item>
		<item>
		<title>How To Tell Which User Profile Disk UPD Belongs to Which AD User</title>
		<link>https://www.kjctech.net/how-to-tell-which-user-profile-disk-upd-belongs-to-which-ad-user/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-tell-which-user-profile-disk-upd-belongs-to-which-ad-user</link>
					<comments>https://www.kjctech.net/how-to-tell-which-user-profile-disk-upd-belongs-to-which-ad-user/#comments</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Tue, 25 Jul 2017 05:51:56 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Remote Desktop Services]]></category>
		<category><![CDATA[UPD]]></category>
		<category><![CDATA[Windows Server 2012]]></category>
		<guid isPermaLink="false">http://www.kjctech.net/?p=3562</guid>

					<description><![CDATA[<p>UPD, short for User Profile Disks, is a new disk type for Remote Desktop Services in Windows Server 2012 R2. It&#8217;s an alternative to roaming profiles and folder redirections for RDS to store user profiles as a separate VHDX disk on dedicated file storage. The disk is mounted to the user session as soon as the user logs into the [&#8230;]</p>
The post <a href="https://www.kjctech.net/how-to-tell-which-user-profile-disk-upd-belongs-to-which-ad-user/">How To Tell Which User Profile Disk UPD Belongs to Which AD User</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>UPD, short for User Profile Disks, is a new disk type for Remote Desktop Services in Windows Server 2012 R2. It&#8217;s an alternative to roaming profiles and folder redirections for RDS to store user profiles as a separate VHDX disk on dedicated file storage. The disk is mounted to the user session as soon as the user logs into the RDS server and gets unmounted when the user logs off.</p>
<p>If you have a lot of users using RDS with UPD enabled, there will be a lot of individual UDP files stored on the file share, named with the unique GUID of the AD user, like below:</p>
<p><a href="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/07/UPD-List-2.png" data-rel="lightbox-image-0" data-rl_title="" data-rl_caption="" title=""><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-large wp-image-3563" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/07/UPD-List-2-600x315.png?resize=600%2C315" alt="" width="600" height="315" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/07/UPD-List-2.png?resize=600%2C315&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/07/UPD-List-2.png?resize=250%2C131&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/07/UPD-List-2.png?resize=450%2C236&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/07/UPD-List-2.png?resize=520%2C273&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/07/UPD-List-2.png?resize=360%2C189&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/07/UPD-List-2.png?resize=100%2C52&amp;ssl=1 100w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/07/UPD-List-2.png?w=667&amp;ssl=1 667w" sizes="auto, (max-width: 600px) 100vw, 600px" /></a></p>
<p>So, how to identify which UPD disk belongs to which user account?</p>
<p>You can use the following PowerShell cmdlet to find out the user based on the GUID.</p>
<pre class="">Get-ADUser -fileter {SID - like "GUID"}</pre>
<p>Or, find out the GUID based on the user account ID.</p>
<pre class="">Get-ADUser -filter {SamAccountName -like "UserID"}</pre>
<p>Or, even better, use this little portable standalone tool called <a href="https://gallery.technet.microsoft.com/Sidder-Quickly-see-which-fa6360b3" target="_blank" rel="noopener">Sidder</a> to help you to quickly identify which UDP belongs to which AD user. You will need .Net 4.5 Framework to use this tool.</p>
<p><a href="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/07/sidder_v2-overview.png" data-rel="lightbox-image-1" data-rl_title="" data-rl_caption="" title=""><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-large wp-image-3564" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/07/sidder_v2-overview-600x403.png?resize=600%2C403" alt="" width="600" height="403" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/07/sidder_v2-overview.png?resize=600%2C403&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/07/sidder_v2-overview.png?resize=250%2C168&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/07/sidder_v2-overview.png?resize=450%2C302&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/07/sidder_v2-overview.png?resize=768%2C516&amp;ssl=1 768w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/07/sidder_v2-overview.png?resize=700%2C470&amp;ssl=1 700w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/07/sidder_v2-overview.png?resize=520%2C349&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/07/sidder_v2-overview.png?resize=360%2C242&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/07/sidder_v2-overview.png?resize=100%2C67&amp;ssl=1 100w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/07/sidder_v2-overview.png?w=773&amp;ssl=1 773w" sizes="auto, (max-width: 600px) 100vw, 600px" /></a></p>
<p>The ones in orange are the ones that are in use at the moment. The tool also allows you to delete UPD as well. Deleting UPD will result in a fresh start for that user next time when they log in.</p>The post <a href="https://www.kjctech.net/how-to-tell-which-user-profile-disk-upd-belongs-to-which-ad-user/">How To Tell Which User Profile Disk UPD Belongs to Which AD User</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/how-to-tell-which-user-profile-disk-upd-belongs-to-which-ad-user/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3562</post-id>	</item>
	</channel>
</rss>
