<?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>Windows Archives - IT Blog Site</title>
	<atom:link href="https://www.lavatelli.it/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.lavatelli.it/category/windows/</link>
	<description>Lavatelli IT Blog Site</description>
	<lastBuildDate>Thu, 30 Sep 2021 14:22:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://www.lavatelli.it/wp-content/uploads/2019/02/ice_dragon-150x145.gif</url>
	<title>Windows Archives - IT Blog Site</title>
	<link>https://www.lavatelli.it/category/windows/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Granting folder permissions to IIS application pools</title>
		<link>https://www.lavatelli.it/granting-folder-permissions-to-iis-application-pools/</link>
		
		<dc:creator><![CDATA[Franz]]></dc:creator>
		<pubDate>Thu, 30 Sep 2021 12:47:16 +0000</pubDate>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://www.lavatelli.it/?p=558</guid>

					<description><![CDATA[<p>Whenever a new application pool is created, IIS creates a security identifier (SID) that represents the name of the application pool itself. For example, if you create an application pool with the name &#8220;Smartcrypt,&#8221; a security identifier with the name &#8220;Smartcrypt&#8221; is created in Windows. Resources can be secured by using this identity. However, the ...</p>
<p>The post <a href="https://www.lavatelli.it/granting-folder-permissions-to-iis-application-pools/">Granting folder permissions to IIS application pools</a> appeared first on <a href="https://www.lavatelli.it">IT Blog Site</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="entry">


<p class="wp-block-paragraph">Whenever a new application pool is created, IIS creates a security identifier (SID) that represents the name of the application pool itself. For example, if you create an application pool with the name &#8220;Smartcrypt,&#8221; a security identifier with the name &#8220;Smartcrypt&#8221; is created in Windows. Resources can be secured by using this identity. However, the identity is not a real user account and will not show up as a user in the Windows User Management Console.</p>



<p class="wp-block-paragraph">This can be configured by selecting a folder in Windows Explorer and adding the &#8220;Smartcrypt&#8221; identity to the folder&#8217;s Access Control List (ACL).</p>



<ol class="wp-block-list"><li>Open Windows Explorer</li><li>Select the directory the Smartcrypt Manager is installed under (eg: c:\web\mds)</li><li>Right click the directory and select&nbsp;<strong>Properties</strong></li><li>Select the&nbsp;<strong>Security</strong>&nbsp;tab</li><li>Click the&nbsp;<strong>Edit</strong>&nbsp;button and then&nbsp;<strong>Add</strong>&nbsp;button</li><li>Click the&nbsp;<strong>Locations</strong>&nbsp;button and make sure that you select your computer.</li><li>Enter&nbsp;<strong>IIS AppPool\&lt;myappoolname&gt;&nbsp;</strong>(eg: IIS AppPool\smartcrypt)&nbsp;in the&nbsp;<strong>Enter the object names to select:</strong>&nbsp;text box.</li><li>Click the&nbsp;<strong>Check Names</strong>&nbsp;button and click&nbsp;<strong>OK</strong>.</li><li>Check&nbsp;<strong>Modify</strong>&nbsp;under the&nbsp;<strong>Allow</strong>&nbsp;column, and click&nbsp;<strong>OK</strong>, and&nbsp;<strong>OK.</strong></li></ol>



<p class="wp-block-paragraph">By doing this, the file or directory you selected will now also allow the&nbsp;<strong>Smartcrypt</strong>&nbsp;identity access.</p>



<p class="wp-block-paragraph">You can do this via the command-line by using the ICACLS tool. The following example gives modify access to the <strong>Smartcrypt</strong>&nbsp;identity to the folder C:\web\mds and all contents.</p>



<pre class="wp-block-code"><code>ICACLS "C:\web\mds" /grant "IIS AppPool\Smartcrypt":M /t</code></pre>


</div><p><a class="a2a_button_email" href="https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fgranting-folder-permissions-to-iis-application-pools%2F&amp;linkname=Granting%20folder%20permissions%20to%20IIS%20application%20pools" title="Email" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fgranting-folder-permissions-to-iis-application-pools%2F&amp;linkname=Granting%20folder%20permissions%20to%20IIS%20application%20pools" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fgranting-folder-permissions-to-iis-application-pools%2F&amp;linkname=Granting%20folder%20permissions%20to%20IIS%20application%20pools" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fgranting-folder-permissions-to-iis-application-pools%2F&amp;linkname=Granting%20folder%20permissions%20to%20IIS%20application%20pools" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fgranting-folder-permissions-to-iis-application-pools%2F&amp;linkname=Granting%20folder%20permissions%20to%20IIS%20application%20pools" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.lavatelli.it%2Fgranting-folder-permissions-to-iis-application-pools%2F&#038;title=Granting%20folder%20permissions%20to%20IIS%20application%20pools" data-a2a-url="https://www.lavatelli.it/granting-folder-permissions-to-iis-application-pools/" data-a2a-title="Granting folder permissions to IIS application pools"></a></p><p>The post <a href="https://www.lavatelli.it/granting-folder-permissions-to-iis-application-pools/">Granting folder permissions to IIS application pools</a> appeared first on <a href="https://www.lavatelli.it">IT Blog Site</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Remove DFS link</title>
		<link>https://www.lavatelli.it/remove-dfs-link/</link>
		
		<dc:creator><![CDATA[Franz]]></dc:creator>
		<pubDate>Sun, 10 Jan 2021 22:25:14 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://www.lavatelli.it/?p=546</guid>

					<description><![CDATA[<p>This link was in fact an NTFS reparse point. Using the &#8220;fsutil&#8221; command solved the problem. For example, in the case of an reparse point located at &#8220;C:\$Recycle.bin\S-1521\x\y\z\Documents&#8221;, you must: 1- Open the command prompt in administrator mode 2- go to the folder containing the link (for example &#8220;C:\$Recycle.bin\S-1521\x\y\z\&#8221;) 3- fsutil reparsepoint query (eg: &#8220;fsutil ...</p>
<p>The post <a href="https://www.lavatelli.it/remove-dfs-link/">Remove DFS link</a> appeared first on <a href="https://www.lavatelli.it">IT Blog Site</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="entry">


<p class="wp-block-paragraph">This link was in fact an NTFS reparse point. Using the &#8220;fsutil&#8221; command solved the problem. For example, in the case of an reparse point located at &#8220;C:\$Recycle.bin\S-1521\x\y\z\Documents&#8221;, you must:</p>



<p class="wp-block-paragraph">1- Open the command prompt in administrator mode</p>



<p class="wp-block-paragraph">2- go to the folder containing the link (for example &#8220;C:\$Recycle.bin\S-1521\x\y\z\&#8221;)</p>



<p class="wp-block-paragraph">3- fsutil reparsepoint query (eg: &#8220;fsutil reparsepoint query Documents&#8221;)</p>



<p class="wp-block-paragraph">4- fsutil reparsepoint delete (eg: &#8220;fsutil reparsepoint delete Documents&#8221;)</p>



<p class="wp-block-paragraph">5- del (eg &#8220;del Documents&#8221;).</p>



<p class="wp-block-paragraph">For more information, please visit: https://social.technet.microsoft.com/wiki/contents/articles/36803.windows-the-network-location-cannot-be-reached-when-trying -to-delete-local-file-system-entries.aspx</p>


</div><p><a class="a2a_button_email" href="https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fremove-dfs-link%2F&amp;linkname=Remove%20DFS%20link" title="Email" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fremove-dfs-link%2F&amp;linkname=Remove%20DFS%20link" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fremove-dfs-link%2F&amp;linkname=Remove%20DFS%20link" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fremove-dfs-link%2F&amp;linkname=Remove%20DFS%20link" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fremove-dfs-link%2F&amp;linkname=Remove%20DFS%20link" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.lavatelli.it%2Fremove-dfs-link%2F&#038;title=Remove%20DFS%20link" data-a2a-url="https://www.lavatelli.it/remove-dfs-link/" data-a2a-title="Remove DFS link"></a></p><p>The post <a href="https://www.lavatelli.it/remove-dfs-link/">Remove DFS link</a> appeared first on <a href="https://www.lavatelli.it">IT Blog Site</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>TLS and NPS</title>
		<link>https://www.lavatelli.it/tls-and-nps/</link>
		
		<dc:creator><![CDATA[Franz]]></dc:creator>
		<pubDate>Tue, 22 Sep 2020 07:41:18 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[NPS]]></category>
		<category><![CDATA[TLS]]></category>
		<category><![CDATA[TLS 1.0]]></category>
		<category><![CDATA[TLS 1.1]]></category>
		<category><![CDATA[TLS 1.2]]></category>
		<guid isPermaLink="false">https://www.lavatelli.it/?p=537</guid>

					<description><![CDATA[<p>Looks like NPS only supports TLS1.0 by default. So if you go restricting your ciphers too much you’ll find none of your NPS clients able to connect using EAP. That’s a bit of a problem when you have an 802.1x secure network and every client is expected to authenticate. If a&#160;cipher is not available on ...</p>
<p>The post <a href="https://www.lavatelli.it/tls-and-nps/">TLS and NPS</a> appeared first on <a href="https://www.lavatelli.it">IT Blog Site</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="entry">


<h2 class="wp-block-heading">Looks like NPS only supports TLS1.0 by default. So if you go restricting your ciphers too much you’ll find none of your NPS clients able to connect using EAP.</h2>



<p class="wp-block-paragraph">That’s a bit of a problem when you have an 802.1x secure network and every client is expected to authenticate. If a&nbsp;cipher is not available on both client and server then you’ll get a client unable to connect or reconnect when their sessions require.</p>



<p class="wp-block-paragraph">So in order to expand the ciphers supported by newer systems you should ensure you can deliver them over a wider number of protocols , including TLS1.1 and 1.2.</p>



<h3 class="wp-block-heading">Ensure you have the required update patch for your system</h3>



<p class="wp-block-paragraph">To add these registry values, follow these steps:</p>



<ol class="wp-block-list"><li>Click <strong>Start</strong>, click <strong>Run</strong>, type regedit in the <strong>Open</strong> box, and then click <strong>OK</strong>.</li><li>Locate and then click the following subkey in the registry: <strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\RasMan\PPP\EAP\13<br></strong></li><li>On the <strong>Edit</strong> menu, point to <strong>New</strong>, and then click <strong>DWORD Value</strong>.</li><li>Type TlsVersion for the name of the DWORD, and then press Enter.</li><li>Right-click <strong>TlsVersion</strong>, and then click <strong>Modify</strong>.</li><li>In the <strong>Value data</strong> box, use the following values for the various versions of TLS, and then click <strong>OK</strong>. TLS version DWORD value TLS 1.0 0xC0 TLS 1.1 0x300 TLS 1.2 0xC00 Any OR’ed combination of these values will enable the corresponding protocols. By default, TLS 1.0 is enabled. If any invalid value is configured, TLS 1.0 will be used.</li><li>Exit Registry Editor, and then either restart the computer or restart the EapHost service.</li></ol>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>Support for TLS1.0, 1.1 and 1.2 = 0xFC0. TLS1.1 and 1.2 only = 0xF00.</p></blockquote>


</div><p><a class="a2a_button_email" href="https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Ftls-and-nps%2F&amp;linkname=TLS%20and%20NPS" title="Email" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Ftls-and-nps%2F&amp;linkname=TLS%20and%20NPS" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Ftls-and-nps%2F&amp;linkname=TLS%20and%20NPS" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Ftls-and-nps%2F&amp;linkname=TLS%20and%20NPS" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Ftls-and-nps%2F&amp;linkname=TLS%20and%20NPS" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.lavatelli.it%2Ftls-and-nps%2F&#038;title=TLS%20and%20NPS" data-a2a-url="https://www.lavatelli.it/tls-and-nps/" data-a2a-title="TLS and NPS"></a></p><p>The post <a href="https://www.lavatelli.it/tls-and-nps/">TLS and NPS</a> appeared first on <a href="https://www.lavatelli.it">IT Blog Site</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Windows Server In-Place Upgrade Path</title>
		<link>https://www.lavatelli.it/windows-server-in-place-upgrade-path/</link>
		
		<dc:creator><![CDATA[Franz]]></dc:creator>
		<pubDate>Tue, 12 May 2020 17:07:24 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[in-place]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[windows server]]></category>
		<guid isPermaLink="false">https://www.lavatelli.it/?p=528</guid>

					<description><![CDATA[<p>This are the supported path for in-place upgrade of windows server</p>
<p>The post <a href="https://www.lavatelli.it/windows-server-in-place-upgrade-path/">Windows Server In-Place Upgrade Path</a> appeared first on <a href="https://www.lavatelli.it">IT Blog Site</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="entry">


<p class="wp-block-paragraph">This are the supported path for in-place upgrade of windows server</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="999" height="615" src="https://www.lavatelli.it/wp-content/uploads/2020/05/Windows-Server-Upgrade-Paths-Diagram.png" alt="" class="wp-image-529" srcset="https://www.lavatelli.it/wp-content/uploads/2020/05/Windows-Server-Upgrade-Paths-Diagram.png 999w, https://www.lavatelli.it/wp-content/uploads/2020/05/Windows-Server-Upgrade-Paths-Diagram-300x185.png 300w, https://www.lavatelli.it/wp-content/uploads/2020/05/Windows-Server-Upgrade-Paths-Diagram-768x473.png 768w, https://www.lavatelli.it/wp-content/uploads/2020/05/Windows-Server-Upgrade-Paths-Diagram-439x270.png 439w" sizes="(max-width: 999px) 100vw, 999px" /></figure>


</div><p><a class="a2a_button_email" href="https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fwindows-server-in-place-upgrade-path%2F&amp;linkname=Windows%20Server%20In-Place%20Upgrade%20Path" title="Email" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fwindows-server-in-place-upgrade-path%2F&amp;linkname=Windows%20Server%20In-Place%20Upgrade%20Path" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fwindows-server-in-place-upgrade-path%2F&amp;linkname=Windows%20Server%20In-Place%20Upgrade%20Path" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fwindows-server-in-place-upgrade-path%2F&amp;linkname=Windows%20Server%20In-Place%20Upgrade%20Path" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fwindows-server-in-place-upgrade-path%2F&amp;linkname=Windows%20Server%20In-Place%20Upgrade%20Path" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.lavatelli.it%2Fwindows-server-in-place-upgrade-path%2F&#038;title=Windows%20Server%20In-Place%20Upgrade%20Path" data-a2a-url="https://www.lavatelli.it/windows-server-in-place-upgrade-path/" data-a2a-title="Windows Server In-Place Upgrade Path"></a></p><p>The post <a href="https://www.lavatelli.it/windows-server-in-place-upgrade-path/">Windows Server In-Place Upgrade Path</a> appeared first on <a href="https://www.lavatelli.it">IT Blog Site</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Windows cannot access the specified device, path or file.</title>
		<link>https://www.lavatelli.it/windows-cannot-access-the-specified-device-path-or-file/</link>
		
		<dc:creator><![CDATA[Franz]]></dc:creator>
		<pubDate>Wed, 29 Apr 2020 16:03:48 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[control panel]]></category>
		<category><![CDATA[gpedit]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[UAC]]></category>
		<category><![CDATA[windows 2019]]></category>
		<guid isPermaLink="false">https://www.lavatelli.it/?p=523</guid>

					<description><![CDATA[<p>On Windows 2019 you can get this error trying to opening some setting. To resolve please run gpedit.msc to open Group Policy Editor, then switch to Computer Configuration&#8212;> Windows Settings&#8212;> Security Settings &#8212;> Local Policies&#8212;> Security Options, then enable &#8220;User Account Control: Admin Approval Mode for the Built-in Administrator account&#8221;. After all restart Windows to ...</p>
<p>The post <a href="https://www.lavatelli.it/windows-cannot-access-the-specified-device-path-or-file/">Windows cannot access the specified device, path or file.</a> appeared first on <a href="https://www.lavatelli.it">IT Blog Site</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="entry">


<p class="wp-block-paragraph">On Windows 2019 you can get this error trying  to opening some setting.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="470" height="110" src="https://www.lavatelli.it/wp-content/uploads/2020/04/image.png" alt="" class="wp-image-524" srcset="https://www.lavatelli.it/wp-content/uploads/2020/04/image.png 470w, https://www.lavatelli.it/wp-content/uploads/2020/04/image-300x70.png 300w" sizes="(max-width: 470px) 100vw, 470px" /></figure>



<p class="wp-block-paragraph">To resolve please run gpedit.msc to open Group Policy Editor, then switch to Computer Configuration&#8212;> Windows Settings&#8212;> Security Settings &#8212;> Local Policies&#8212;> Security Options, then enable &#8220;User Account Control: Admin Approval Mode for the Built-in Administrator account&#8221;.</p>



<p class="wp-block-paragraph">After all restart Windows to take effect. </p>



<p class="wp-block-paragraph">Figure as below:</p>



<figure class="wp-block-image"><img decoding="async" src="https://social.technet.microsoft.com/Forums/getfile/702945" alt=""/></figure>


</div><p><a class="a2a_button_email" href="https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fwindows-cannot-access-the-specified-device-path-or-file%2F&amp;linkname=Windows%20cannot%20access%20the%20specified%20device%2C%20path%20or%20file." title="Email" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fwindows-cannot-access-the-specified-device-path-or-file%2F&amp;linkname=Windows%20cannot%20access%20the%20specified%20device%2C%20path%20or%20file." title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fwindows-cannot-access-the-specified-device-path-or-file%2F&amp;linkname=Windows%20cannot%20access%20the%20specified%20device%2C%20path%20or%20file." title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fwindows-cannot-access-the-specified-device-path-or-file%2F&amp;linkname=Windows%20cannot%20access%20the%20specified%20device%2C%20path%20or%20file." title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fwindows-cannot-access-the-specified-device-path-or-file%2F&amp;linkname=Windows%20cannot%20access%20the%20specified%20device%2C%20path%20or%20file." title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.lavatelli.it%2Fwindows-cannot-access-the-specified-device-path-or-file%2F&#038;title=Windows%20cannot%20access%20the%20specified%20device%2C%20path%20or%20file." data-a2a-url="https://www.lavatelli.it/windows-cannot-access-the-specified-device-path-or-file/" data-a2a-title="Windows cannot access the specified device, path or file."></a></p><p>The post <a href="https://www.lavatelli.it/windows-cannot-access-the-specified-device-path-or-file/">Windows cannot access the specified device, path or file.</a> appeared first on <a href="https://www.lavatelli.it">IT Blog Site</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Server 2012/2016/2019 Deduplication Data – how check save data</title>
		<link>https://www.lavatelli.it/server-2012-2016-2019-deduplication-data-how-check-save-data/</link>
		
		<dc:creator><![CDATA[Franz]]></dc:creator>
		<pubDate>Wed, 25 Mar 2020 15:36:41 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[ddpeval]]></category>
		<guid isPermaLink="false">https://www.lavatelli.it/?p=512</guid>

					<description><![CDATA[<p>If you have a file server and you want get know how much data &#160;you will be able save if &#160;migrate to Server 2012 , copy from Windows Server 2012 &#160;from path&#160;c:\windows\system32\&#160;you will found &#160;tool&#160;ddpeval.exe This tool only show you, how much data You will be able to save. This tool does not deduplicate ! ...</p>
<p>The post <a href="https://www.lavatelli.it/server-2012-2016-2019-deduplication-data-how-check-save-data/">Server 2012/2016/2019 Deduplication Data – how check save data</a> appeared first on <a href="https://www.lavatelli.it">IT Blog Site</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="entry">


<p class="wp-block-paragraph">If you have a file server and you want get know how much data &nbsp;you  will be able save if &nbsp;migrate to Server 2012 , copy from Windows Server  2012 &nbsp;from path&nbsp;<strong>c:\windows\system32\</strong>&nbsp;you will found &nbsp;tool&nbsp;<strong>ddpeval.exe</strong></p>



<div class="wp-block-file"><a href="https://www.lavatelli.it/wp-content/uploads/2020/03/ddpeval.zip">ddpeval</a><a href="https://www.lavatelli.it/wp-content/uploads/2020/03/ddpeval.zip" class="wp-block-file__button" download>Download</a></div>



<h2 class="wp-block-heading"><strong>This tool only show you, how much data You will be able to save. This tool does not deduplicate ! Examples</strong></h2>



<p class="wp-block-paragraph"><strong>ddpeval.exe \\dchv\d&nbsp;</strong></p>



<p class="wp-block-paragraph">or</p>



<p class="wp-block-paragraph"><strong>ddpeval.exe :d</strong></p>



<p class="wp-block-paragraph">————————————————————————————————————</p>



<h2 class="wp-block-heading"><strong>In pictures below you can see how turn on deduplication on the server and result of real deduplication</strong></h2>



<p class="wp-block-paragraph">FIRST &nbsp;“enable deduplication data” &nbsp;( feature of file server role ),</p>



<figure class="wp-block-image"><a href="http://marwin.e-blog.cz/?attachment_id=561"><img decoding="async" src="https://marwin.e-blog.cz/wp-content/uploads/start-DedupJob.png" alt="start-DedupJob" class="wp-image-561"/></a></figure>



<figure class="wp-block-image"><a href="http://marwin.e-blog.cz/?attachment_id=559"><img decoding="async" src="https://marwin.e-blog.cz/wp-content/uploads/get-DedupStatus.png" alt="get-DedupStatus"/></a></figure>



<p class="wp-block-paragraph"><strong>Deduplicate features works with local disks, volumes , no remote network store, remote network shares</strong></p>


</div><p><a class="a2a_button_email" href="https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fserver-2012-2016-2019-deduplication-data-how-check-save-data%2F&amp;linkname=Server%202012%2F2016%2F2019%20Deduplication%20Data%20%E2%80%93%20how%20check%20save%20data" title="Email" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fserver-2012-2016-2019-deduplication-data-how-check-save-data%2F&amp;linkname=Server%202012%2F2016%2F2019%20Deduplication%20Data%20%E2%80%93%20how%20check%20save%20data" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fserver-2012-2016-2019-deduplication-data-how-check-save-data%2F&amp;linkname=Server%202012%2F2016%2F2019%20Deduplication%20Data%20%E2%80%93%20how%20check%20save%20data" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fserver-2012-2016-2019-deduplication-data-how-check-save-data%2F&amp;linkname=Server%202012%2F2016%2F2019%20Deduplication%20Data%20%E2%80%93%20how%20check%20save%20data" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fserver-2012-2016-2019-deduplication-data-how-check-save-data%2F&amp;linkname=Server%202012%2F2016%2F2019%20Deduplication%20Data%20%E2%80%93%20how%20check%20save%20data" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.lavatelli.it%2Fserver-2012-2016-2019-deduplication-data-how-check-save-data%2F&#038;title=Server%202012%2F2016%2F2019%20Deduplication%20Data%20%E2%80%93%20how%20check%20save%20data" data-a2a-url="https://www.lavatelli.it/server-2012-2016-2019-deduplication-data-how-check-save-data/" data-a2a-title="Server 2012/2016/2019 Deduplication Data – how check save data"></a></p><p>The post <a href="https://www.lavatelli.it/server-2012-2016-2019-deduplication-data-how-check-save-data/">Server 2012/2016/2019 Deduplication Data – how check save data</a> appeared first on <a href="https://www.lavatelli.it">IT Blog Site</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Powershell script to import LDAP object into exchange contact</title>
		<link>https://www.lavatelli.it/powershell-script-to-import-ldap-object-into-exchange-contact/</link>
		
		<dc:creator><![CDATA[Franz]]></dc:creator>
		<pubDate>Fri, 01 Feb 2019 16:55:35 +0000</pubDate>
				<category><![CDATA[AD]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://www.lavatelli.it/?p=463</guid>

					<description><![CDATA[<p>Whith this powershell script, it&#8217;s possible to import external ldap object into active directory mail-contact. Exchange will parse and create a list of contact available for everyone. The script will clear all OU before importing.</p>
<p>The post <a href="https://www.lavatelli.it/powershell-script-to-import-ldap-object-into-exchange-contact/">Powershell script to import LDAP object into exchange contact</a> appeared first on <a href="https://www.lavatelli.it">IT Blog Site</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="entry">


<p class="wp-block-paragraph">Whith this powershell script, it&#8217;s possible to import external ldap object into active directory mail-contact.</p>



<p class="wp-block-paragraph">Exchange will parse and create a list of contact available for everyone.</p>



<p class="wp-block-paragraph">The script will clear all OU before importing.<br></p>



<pre class="wp-block-code"><code>$ErrorActionPreference = 'Stop'
#load Exchange pssnapin
Add-PSSnapIn Microsoft.Exchange.Management.PowerShell.SnapIn
#load Assembly DirectoryServices
&#91;System.Reflection.Assembly]::LoadWithPartialName("System.DirectoryServices.Protocols") 
&#91;System.Reflection.Assembly]::LoadWithPartialName("System.Net") 
$body = ""
start-transcript
get-date
#---------------------------------------------
$OUS="TEST","TEST2","TEST3"
foreach ($OU in $OUS)
{
	#----------------------------------------------------------------------------------------------------------
	#load user and password to logon in Openldap
	$count = 0
	$UserName = "uid=reader,ou=users,dc=test,dc=eu"  
	$Password = "CgtCat34"
	$BODY= $body + "`n Processing OU "+$OU+"`n"
	$filter = "(objectclass=inetOrgPerson)"
	#Insert openLDAP source server and the OU of the company created in this openLDAP 
	$domain = "LDAP://10.241.37.1:389/o="+$OU+",dc=test,dc=eu"

	#Launch the search in the openLDAP
	$root = New-Object -TypeName System.DirectoryServices.DirectoryEntry($domain,$UserName,$Password,'FastBind')
	$query = New-Object System.DirectoryServices.DirectorySearcher($root,$filter)
	$objuser = $query.findall()
	#write-host "NO ERROR"
	#exit(1)
	get-mailcontact -ResultSize Unlimited -OrganizationalUnit ("OU="+$OU+",OU=LDAP-XXX,DC=TEST,DC=local") -filter {CustomAttribute11 -ne $null}|set-mailcontact -CustomAttribute11 ""
	Start-Sleep -s 30 #delay of 30 seconds to let AD to replicate the contact in the DCS servers

	#search user by user in the openLDAP ou
	foreach ($user in $objUser.GetEnumerator()) {
	  
		#this counter is only a security counter and for testing porpouses, in case of you dont want to launch all users at the same time
		if ($count -ge 0) #insert the number of users you want to import
		{ 
			write-host "-------------------------------------------------------"
			#select the mail of the user in openLDAP
			if ($user.properties.mail -eq $null)
			{ 
				$smtpmail=""
				write-host "the contact has empty email address" $user.properties.displayname
			}
			else
			{
				$smtpmail=""
				$smtpmail = &#91;Microsoft.Exchange.Data.ProxyAddress]("$($user.properties.mail)")		
			}

		if(-not(&#91;string]::IsNullOrEmpty($smtpmail.SmtpAddress))) # check if the smtp field is not empty
		{
		
		$mail = $smtpmail.SmtpAddress        
		write-host $user.properties.cn
	   
		If (&#91;string]$user.properties.displayname -ne (Get-MailContact (&#91;string]$user.properties.displayname) -ErrorAction silentlycontinue)) #check if the user exist in the AD yet   
		{
			If ( (get-mailcontact -ResultSize Unlimited  -OrganizationalUnit ("OU="+$OU+",OU=LDAP-XXX,DC=TEST,DC=local") -filter {WindowsEmailAddress -eq $mail}) -eq $null ) 
			{
				write-host "the contact doesnt exist, I create it"
				#change the OU where the contacts will be created in your AD, changing "-organizationalunit" property
				New-MailContact -Name $user.properties.cn -DisplayName $user.properties.displayname -FirstName $user.properties.givenname -LastName $user.properties.sn -OrganizationalUnit ("OU="+$OU+",OU=LDAP-XXX,DC=TEST,DC=local") -ExternalEmailAddress $mail #-Alias $_.mailNickname
				Start-Sleep -s 30 #delay of 15 seconds to let AD to replicate the contact in the DCS servers		
				Write-host "update contacts properties.... " $user.properties.displayname
				Set-Contact -identity (&#91;string]$user.properties.displayname) -Phone $user.properties.telephonenumber -mobilePhone $user.properties.mobile -Office $user.properties.physicaldeliveryofficename -Title $user.properties.title -Department $user.properties.department -Company $user.properties.o -city $user.properties.l
				set-Mailcontact -identity (&#91;string]$user.properties.displayname) -CustomAttribute10 $OU
				Set-Mailcontact -identity (&#91;string]$user.properties.displayname) -CustomAttribute11 "updated"
				$BODY=$BODY+"ADDED "+$user.properties.displayname+"`n"
			}
			else
			{
				write-host "contact has been renamed"
			}
		}
		Else
		{
			write-host "the contact exist"
			Write-host "update contacts properties.... " $user.properties.displayname
			Set-Contact -identity (&#91;string]$user.properties.displayname) -Phone $user.properties.telephonenumber -mobilePhone $user.properties.mobile -Office $user.properties.physicaldeliveryofficename -Title $user.properties.title -Department $user.properties.department -Company $user.properties.o -city $user.properties.l
			Set-Mailcontact -identity (&#91;string]$user.properties.displayname) -CustomAttribute10 $OU -ForceUpgrade
			Set-Mailcontact -identity (&#91;string]$user.properties.displayname) -CustomAttribute11 "updated" -ForceUpgrade
			#$BODY=$BODY+"UPDATED "+$user.properties.displayname+"`n"
		}
		
		
		}
		$count++
		}
	}
	#Remove all contact not updated
	Start-Sleep -s 60 #delay of 60 seconds to let AD to replicate the contact in the DCS servers
	Write-host "start removing removed contact.... "
	$removed=get-mailcontact -ResultSize Unlimited  -OrganizationalUnit ("OU="+$OU+",OU=LDAP-XXX,DC=TEST,DC=local") -filter {CustomAttribute11 -eq $null}|% { $_.Name}
	if ($removed) {
		$body = $body + "REMOVED " + ($removed -join "`nREMOVED ")
		$body = $body + "`n------------------------------------------------------`n"
	}
	get-mailcontact -OrganizationalUnit ("OU="+$OU+",OU=LDAP-XXX,DC=TEST,DC=local") -filter {CustomAttribute11 -eq $null}|remove-mailcontact -Confirm:$false
}
#----------------------------------------------------------------------------------------------------------
get-date
stop-transcript
$log = Get-childitem -Filter *.txt c:\users\administrator\Documents | sort LastWriteTime | select -last 1
send-mailmessage -from "Administrator &lt;administrator@test.it>" -to "Test &lt;dest@email.com>" -subject "LDAP Import" -attachment C:\users\administrator\Documents\$log -body $BODY -smtpServer smtp.isp.it
#----------------------------------------------------------------------------------------------------------
$Daysback = "-7"
 
$CurrentDate = Get-Date
$DatetoDelete = $CurrentDate.AddDays($Daysback)
Get-ChildItem -Filter *.txt c:\users\administrator\Documents | Where-Object { $_.LastWriteTime -lt $DatetoDelete } | Remove-Item
</code></pre>


</div><p><a class="a2a_button_email" href="https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fpowershell-script-to-import-ldap-object-into-exchange-contact%2F&amp;linkname=Powershell%20script%20to%20import%20LDAP%20object%20into%20exchange%20contact" title="Email" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fpowershell-script-to-import-ldap-object-into-exchange-contact%2F&amp;linkname=Powershell%20script%20to%20import%20LDAP%20object%20into%20exchange%20contact" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fpowershell-script-to-import-ldap-object-into-exchange-contact%2F&amp;linkname=Powershell%20script%20to%20import%20LDAP%20object%20into%20exchange%20contact" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fpowershell-script-to-import-ldap-object-into-exchange-contact%2F&amp;linkname=Powershell%20script%20to%20import%20LDAP%20object%20into%20exchange%20contact" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fpowershell-script-to-import-ldap-object-into-exchange-contact%2F&amp;linkname=Powershell%20script%20to%20import%20LDAP%20object%20into%20exchange%20contact" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.lavatelli.it%2Fpowershell-script-to-import-ldap-object-into-exchange-contact%2F&#038;title=Powershell%20script%20to%20import%20LDAP%20object%20into%20exchange%20contact" data-a2a-url="https://www.lavatelli.it/powershell-script-to-import-ldap-object-into-exchange-contact/" data-a2a-title="Powershell script to import LDAP object into exchange contact"></a></p><p>The post <a href="https://www.lavatelli.it/powershell-script-to-import-ldap-object-into-exchange-contact/">Powershell script to import LDAP object into exchange contact</a> appeared first on <a href="https://www.lavatelli.it">IT Blog Site</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to configure DC to sync with external NTP</title>
		<link>https://www.lavatelli.it/how-to-configure-dc-to-sync-with-external-ntp/</link>
		
		<dc:creator><![CDATA[Franz]]></dc:creator>
		<pubDate>Thu, 06 Dec 2018 14:20:40 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://www.lavatelli.it/?p=449</guid>

					<description><![CDATA[<p>net stop w32time w32tm /config /syncfromflags:manual /manualpeerlist:&#8221;0.pool.ntp.org,0x1 1.pool.ntp.org,0x1 2.pool.ntp.org,0x1 3.pool.ntp.org,0x1&#8243; /reliable:yes /update net start w32time</p>
<p>The post <a href="https://www.lavatelli.it/how-to-configure-dc-to-sync-with-external-ntp/">How to configure DC to sync with external NTP</a> appeared first on <a href="https://www.lavatelli.it">IT Blog Site</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="entry">


<p class="wp-block-paragraph">
<strong>net stop w32time</strong></p>



<p class="wp-block-paragraph"><strong>w32tm /config /syncfromflags:manual /manualpeerlist:&#8221;0.pool.ntp.org,0x1 1.pool.ntp.org,0x1 2.pool.ntp.org,0x1 3.pool.ntp.org,0x1&#8243; /reliable:yes /update</strong></p>



<p class="wp-block-paragraph">
<strong>net start w32time</strong></p>


</div><p><a class="a2a_button_email" href="https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fhow-to-configure-dc-to-sync-with-external-ntp%2F&amp;linkname=How%20to%20configure%20DC%20to%20sync%20with%20external%20NTP" title="Email" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fhow-to-configure-dc-to-sync-with-external-ntp%2F&amp;linkname=How%20to%20configure%20DC%20to%20sync%20with%20external%20NTP" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fhow-to-configure-dc-to-sync-with-external-ntp%2F&amp;linkname=How%20to%20configure%20DC%20to%20sync%20with%20external%20NTP" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fhow-to-configure-dc-to-sync-with-external-ntp%2F&amp;linkname=How%20to%20configure%20DC%20to%20sync%20with%20external%20NTP" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fhow-to-configure-dc-to-sync-with-external-ntp%2F&amp;linkname=How%20to%20configure%20DC%20to%20sync%20with%20external%20NTP" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.lavatelli.it%2Fhow-to-configure-dc-to-sync-with-external-ntp%2F&#038;title=How%20to%20configure%20DC%20to%20sync%20with%20external%20NTP" data-a2a-url="https://www.lavatelli.it/how-to-configure-dc-to-sync-with-external-ntp/" data-a2a-title="How to configure DC to sync with external NTP"></a></p><p>The post <a href="https://www.lavatelli.it/how-to-configure-dc-to-sync-with-external-ntp/">How to configure DC to sync with external NTP</a> appeared first on <a href="https://www.lavatelli.it">IT Blog Site</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Delete long filename</title>
		<link>https://www.lavatelli.it/delete-long-filename/</link>
		
		<dc:creator><![CDATA[Franz]]></dc:creator>
		<pubDate>Fri, 06 Oct 2017 21:46:32 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://www.lavatelli.it/?p=419</guid>

					<description><![CDATA[<p>mkdir empty_dir robocopy empty_dir the_dir_to_delete /s /mir rmdir empty_dir rmdir the_dir_to_delete</p>
<p>The post <a href="https://www.lavatelli.it/delete-long-filename/">Delete long filename</a> appeared first on <a href="https://www.lavatelli.it">IT Blog Site</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="entry">
<pre><code>mkdir empty_dir
robocopy empty_dir the_dir_to_delete /s /mir
rmdir empty_dir
rmdir the_dir_to_delete</code></pre>
</div>
<p><a class="a2a_button_email" href="https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fdelete-long-filename%2F&amp;linkname=Delete%20long%20filename" title="Email" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fdelete-long-filename%2F&amp;linkname=Delete%20long%20filename" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fdelete-long-filename%2F&amp;linkname=Delete%20long%20filename" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fdelete-long-filename%2F&amp;linkname=Delete%20long%20filename" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Fdelete-long-filename%2F&amp;linkname=Delete%20long%20filename" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.lavatelli.it%2Fdelete-long-filename%2F&#038;title=Delete%20long%20filename" data-a2a-url="https://www.lavatelli.it/delete-long-filename/" data-a2a-title="Delete long filename"></a></p><p>The post <a href="https://www.lavatelli.it/delete-long-filename/">Delete long filename</a> appeared first on <a href="https://www.lavatelli.it">IT Blog Site</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Fixing Office 365 DirSync account matching issues</title>
		<link>https://www.lavatelli.it/fixing-office-365-dirsync-account-matching-issues/</link>
		
		<dc:creator><![CDATA[Franz]]></dc:creator>
		<pubDate>Mon, 12 Dec 2016 16:32:36 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[azure]]></category>
		<category><![CDATA[dirsync]]></category>
		<category><![CDATA[office 365]]></category>
		<guid isPermaLink="false">http://www.lavatelli.it/?p=386</guid>

					<description><![CDATA[<p>Recently I had to fix some issues with DirSync. For some reason (there were some cloud users created before DirSync was enabled) there were duplicate users, because DirSync failed to match the already present cloud user and the corresponding AD (Active Directory) user. There were also accounts that failed to sync and thus failed to ...</p>
<p>The post <a href="https://www.lavatelli.it/fixing-office-365-dirsync-account-matching-issues/">Fixing Office 365 DirSync account matching issues</a> appeared first on <a href="https://www.lavatelli.it">IT Blog Site</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="entry">
<div class="entry clearfix">
<p><img decoding="async" class="alignleft wp-post-image" src="https://dirteam.com/dave/wp-content/uploads/sites/4/2014/08/DirSyncServer-229x210.png" alt="DirSyncServer" width="229" height="210" />Recently I had to fix some issues with DirSync. For some reason (there were some cloud users created before DirSync was enabled) there were duplicate users, because DirSync failed to match the already present cloud user and the corresponding AD (Active Directory) user. There were also accounts that failed to sync and thus failed to sync all attributes properly.</p>
<p>If there is already a cloud account and there is need for a synced account, you can create an AD account in DirSynced OU’s. But be sure to create the user with a full UPN matching the one in Office 365 and SMTP addresses that are present on the Cloud account. With the next sync it should match both accounts. If not, it fails matching and you end up with either duplicate accounts (one cloud user and a DirSynced user with the same name/lastname/displayname) or get an InvalidSoftMatch.</p>
<p>When UPN/SMTP matching failed you can merge those accounts again by setting the ImmutableID on the Office 365 account (MsolUser) which is derived from the AD user’s ObjectGuid. You can only add this attribute to Office 365 accounts. After this is set, DirSync should match the accounts correctly.</p>
<p>So, how did I resolve this? See below:</p>
<h3>When there are duplicates:</h3>
<ul>
<ul>
<li>Remove user from DirSync (move to OU which is not synced, will only work when OU Filtering is used. If not, disable DirSync…).</li>
<li>Perform DirSync.</li>
<li>Remove duplicate synced user (NOT cloud user):
<ul>
<li>Remove-MSOLuser -UserPrincipalName &lt;UPN&gt; -RemoveFromRecycleBin</li>
<li>Add ImmutableID from AD user to Cloud user
<ul>
<li>$guid = (get-Aduser &lt;username&gt;).ObjectGuid<br />
$immutableID = [System.Convert]::ToBase64String($guid.tobytearray())</li>
<li>Connect to AD Azure (Connect-MSOLService when AD Azure Powershell Module is installed).</li>
<li>Set-MSOLuser -UserPrincipalName &lt;clouduserUPN&gt; -ImmutableID $immutableID</li>
<li>It’s possible that the clouduserUPN must be changed to the &lt;tenant&gt;.onmicrosoft.com format. It should be changed by DirSync to correspond with the AD UPN.</li>
<li>See also <a href="http://www.joseph-streeter.com/?p=423">http://www.joseph-streeter.com/?p=423</a></li>
</ul>
</li>
</ul>
</li>
<li>Place account back in correct (synced) AD OU.</li>
<li>Manually kick off a sync on the DirSync Server if you don’t want to wait (up to 3 hours with default settings):
<ul>
<li>C:\Program Files\Windows Azure Directory Sync\DirSyncConfigShell.psc1</li>
<li>Start-OnlineCoexistenceSync</li>
</ul>
</li>
</ul>
</ul>
<p>In my case it didn’t always match the accounts and was required to perform a Full DirSync (on DirSync server):</p>
<ul>
<ul>
<li>Via MIISClient, Management Agents:
<ul>
<li>C:\Program Files\Windows Azure Active Directory Sync\SYNCBUS\Synchronization Service\UIShell\missclient.exe</li>
</ul>
</li>
<li>Be sure to be member of local group “FIMSyncAdmins”<br />
Names might be different depending on DirSync version</li>
<li>On the Windows Azure Active Directory Connector:
<ul>
<li>Properties&gt;Run&gt;Full Import Delta Sync</li>
</ul>
</li>
<li>on the Active Directory Connector:
<ul>
<li>Properties&gt;Run&gt;Full Import Full Sync</li>
</ul>
</li>
</ul>
<li>Note that a Full Sync can take a long time if you have a lot of objects. Furthermore, changes can take a while to propagate in Office 365.</li>
<li>It might be necessary to edit an attribute (Description, office etc. Something that is synced), and then perform a (normal) sync.</li>
</ul>
<h3>When you have an InvalidSoftMatch (SMTP Address matching doesn’t work because SMTP address already exists in Cloud):</h3>
<p>Within the MIISClient.exe on the DirSync server, you can check for errors. In this case the account wasn’t properly matched:</p>
<p><a href="https://dirteam.com/legacy/dave/clip_image001_212783F2.png"><img loading="lazy" decoding="async" class="alignnone" title="clip_image001" src="https://dirteam.com/legacy/dave/clip_image001_thumb_23640CAE.png" alt="clip_image001" width="244" height="119" border="0" /></a></p>
<ul>
<li>Add ImmutableID from AD user to Cloud user:
<ul>
<li>$guid = (get-Aduser &lt;username&gt;).ObjectGuid</li>
<li>$immutableID = [System.Convert]::ToBase64String($guid.tobytearray())</li>
<li>Connect to AD Azure (Connect-MSOLService when AD Azure Powershell Module is installed)</li>
<li>Set-MSOLuser -UserPrincipalName &lt;clouduserUPN&gt; -ImmutableID $immutableID</li>
<li>It’s possible that the clouduserUPN must be changed to the &lt;tenant&gt;.onmicrosoft.com format. It should be changed by DirSync to correspond with the AD UPN.</li>
<li>See also <a href="http://www.joseph-streeter.com/?p=423">http://www.joseph-streeter.com/?p=423</a></li>
</ul>
</li>
<li>Then perform a sync as described in the previous section.</li>
</ul>
<p>In my case these procedures resolved my issues. But as always, use this information at your own risk. Best to make sure that you don’t end up in a situation like this <img decoding="async" class="wlEmoticon wlEmoticon-winkingsmile" src="https://dirteam.com/legacy/dave/wlEmoticon-winkingsmile_555BAD38.png" alt="Winking smile" /></p>
<h4>See also:</h4>
<p>One or more objects don’t sync when using the Azure Active Directory Sync tool <a href="http://support.microsoft.com/kb/2643629/en-us">http://support.microsoft.com/kb/2643629/en-us</a></p>
<p>How to use SMTP matching to match on-premises user accounts to Office 365 user accounts for directory synchronization <a href="http://support.microsoft.com/kb/2641663/en-us">http://support.microsoft.com/kb/2641663/en-us</a></p>
</div>
</div>
<p><a class="a2a_button_email" href="https://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Ffixing-office-365-dirsync-account-matching-issues%2F&amp;linkname=Fixing%20Office%20365%20DirSync%20account%20matching%20issues" title="Email" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Ffixing-office-365-dirsync-account-matching-issues%2F&amp;linkname=Fixing%20Office%20365%20DirSync%20account%20matching%20issues" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Ffixing-office-365-dirsync-account-matching-issues%2F&amp;linkname=Fixing%20Office%20365%20DirSync%20account%20matching%20issues" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Ffixing-office-365-dirsync-account-matching-issues%2F&amp;linkname=Fixing%20Office%20365%20DirSync%20account%20matching%20issues" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.lavatelli.it%2Ffixing-office-365-dirsync-account-matching-issues%2F&amp;linkname=Fixing%20Office%20365%20DirSync%20account%20matching%20issues" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.lavatelli.it%2Ffixing-office-365-dirsync-account-matching-issues%2F&#038;title=Fixing%20Office%20365%20DirSync%20account%20matching%20issues" data-a2a-url="https://www.lavatelli.it/fixing-office-365-dirsync-account-matching-issues/" data-a2a-title="Fixing Office 365 DirSync account matching issues"></a></p><p>The post <a href="https://www.lavatelli.it/fixing-office-365-dirsync-account-matching-issues/">Fixing Office 365 DirSync account matching issues</a> appeared first on <a href="https://www.lavatelli.it">IT Blog Site</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Object Caching 184/154 objects using Redis
Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Minified using Redis

Served from: www.lavatelli.it @ 2026-11-21 09:04:23 by W3 Total Cache
-->