<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Lendice on Medium]]></title>
        <description><![CDATA[Stories by Lendice on Medium]]></description>
        <link>https://medium.com/@Lendice?source=rss-4336b90eba79------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ZdsspeTgFbs7lBEq.gif</url>
            <title>Stories by Lendice on Medium</title>
            <link>https://medium.com/@Lendice?source=rss-4336b90eba79------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 10:10:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Lendice/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Create OrgnizationUnit and Move Computer]]></title>
            <link>https://medium.com/@Lendice/create-orgnizationunit-and-move-computer-6ecb7528c8cc?source=rss-4336b90eba79------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ecb7528c8cc</guid>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[powershell]]></category>
            <dc:creator><![CDATA[Lendice]]></dc:creator>
            <pubDate>Wed, 24 May 2023 05:47:54 GMT</pubDate>
            <atom:updated>2023-05-24T05:52:09.247Z</atom:updated>
            <content:encoded><![CDATA[<h3>bulk computers to another OU through powershell</h3><p>I can write a csv file</p><p>computername,ou,prefix<br>a0574-cli01,EA3<br>a0574-cli02,EA4<br>a0574-cli00,EA5,a0574</p><p>you can edit<br>ou<br>prefix ## computername <br>path ## create ou path<br>TargetPath ## computer put location</p><pre>&quot;Import-Module ActiveDirectoryImport-Csv &quot;C:\temp\list.csv&quot; | foreach {<br>if ($_.ou -ne $null) {<br>$ou = $_.ou<br>$prefix = $_.prefix<br>$computername = $_.computername<br>New-ADOrganizationalUnit -Name $ou -Path &quot;OU=DeployFirst,DC=Dynasos,DC=net&quot; -ProtectedFromAccidentalDeletion $False<br>Get-ADComputer -Filter &quot;Name -like &#39;*$prefix*&#39;&quot; | Move-ADObject -TargetPath &quot;OU=$ou,OU=DeployFirst,DC=Dynasos,DC=net&quot;<br>  }<br>}&quot;<br><br></pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ecb7528c8cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>