<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://blog.gl2i.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://blog.gl2i.com/feed.php">
        <title>Blog GL2i - en:powershell</title>
        <description></description>
        <link>http://blog.gl2i.com/</link>
        <image rdf:resource="http://blog.gl2i.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-05-30T19:29:07+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://blog.gl2i.com/doku.php?id=en:powershell:advanced&amp;rev=1615945896&amp;do=diff"/>
                <rdf:li rdf:resource="http://blog.gl2i.com/doku.php?id=en:powershell:dns&amp;rev=1618273595&amp;do=diff"/>
                <rdf:li rdf:resource="http://blog.gl2i.com/doku.php?id=en:powershell:start&amp;rev=1615945728&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://blog.gl2i.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>Blog GL2i</title>
        <link>http://blog.gl2i.com/</link>
        <url>http://blog.gl2i.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="http://blog.gl2i.com/doku.php?id=en:powershell:advanced&amp;rev=1615945896&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-03-17T01:51:36+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>advanced</title>
        <link>http://blog.gl2i.com/doku.php?id=en:powershell:advanced&amp;rev=1615945896&amp;do=diff</link>
        <description>PowerShell

Advanced

From basics, we know how to:

	*  read CSV file
	*  write CSV file with new columns
	*  test email format from one column

Now let's discover how to query one Active Directory. First a new PowerShell module is required to deal with AD.</description>
    </item>
    <item rdf:about="http://blog.gl2i.com/doku.php?id=en:powershell:dns&amp;rev=1618273595&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-04-13T00:26:35+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>dns</title>
        <link>http://blog.gl2i.com/doku.php?id=en:powershell:dns&amp;rev=1618273595&amp;do=diff</link>
        <description>DNS

Here I want to show how huge the difference is between a string and an object.

Initial request

Let's suppose you have to perform a lot of DNS modifications because a service provider of yours has changed IP server. Since you are wise, you are going to follow the rule: Trust but verify.</description>
    </item>
    <item rdf:about="http://blog.gl2i.com/doku.php?id=en:powershell:start&amp;rev=1615945728&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-03-17T01:48:48+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>start</title>
        <link>http://blog.gl2i.com/doku.php?id=en:powershell:start&amp;rev=1615945728&amp;do=diff</link>
        <description>PowerShell

Basics

To me, the first thing we need to learn is to deal with is CSV file. First let's read a CSV file, loop across the lines.

Here is an example of CSV input file.


Samaccountname,Mail
abc123,abc123@domain.com
def123,def123@domain.com
ghi123,ghi123@test.com</description>
    </item>
</rdf:RDF>
