<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Snippet on Janik von Rotz</title>
    <link>https://janikvonrotz.ch/tags/snippet/</link>
    <description>Recent content in Snippet on Janik von Rotz</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 11 Dec 2013 17:35:45 +0000</lastBuildDate>
    <atom:link href="https://janikvonrotz.ch/tags/snippet/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Change Active Directory User Password Expiration Mode</title>
      <link>https://janikvonrotz.ch/2013/12/11/change-active-directory-user-password-expiration-mode/</link>
      <pubDate>Wed, 11 Dec 2013 17:35:45 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2013/12/11/change-active-directory-user-password-expiration-mode/</guid>
      <description>&lt;p&gt;To change an Active Directory users password expiration mode you can use this PowerShell snippet:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-powershell&#34; data-lang=&#34;powershell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Import-Module ActiveDirectory&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Get-ADGroupMember &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Group1&amp;#34;&lt;/span&gt; -Recursive |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Get-ADUser -Properties PasswordNeverExpires |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;where {$_.enabled &lt;span style=&#34;color:#f92672&#34;&gt;-eq&lt;/span&gt; $true &lt;span style=&#34;color:#f92672&#34;&gt;-and&lt;/span&gt; $_.PasswordNeverExpires &lt;span style=&#34;color:#f92672&#34;&gt;-eq&lt;/span&gt; $false} |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;select -First &lt;span style=&#34;color:#ae81ff&#34;&gt;50&lt;/span&gt; | %{&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Write-Host $_.UserPrincipalName&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Set-ADUser $_ -PasswordNeverExpires $true&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Latest version of this snippet: &lt;a href=&#34;https://gist.github.com/7913696&#34;&gt;&lt;a href=&#34;https://gist.github.com/7913696&#34;&gt;https://gist.github.com/7913696&lt;/a&gt;&lt;/a&gt;&lt;/pre&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Archive ActiveDirectory Users and their Mailbox</title>
      <link>https://janikvonrotz.ch/2013/10/14/archive-activedirectory-users-and-their-mailbox/</link>
      <pubDate>Mon, 14 Oct 2013 17:04:19 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2013/10/14/archive-activedirectory-users-and-their-mailbox/</guid>
      <description>&lt;p&gt;One of my company&amp;rsquo;s requirements is the retention time of 10 years for user accounts and their mailbox data, I have to admit, this might not be common or even recommended.&#xA;However I have to deal with it.&lt;/p&gt;&#xA;&lt;p&gt;One problem to face is the availabilty of user account names, by the number of about 500 employees there&amp;rsquo;s a hight change that two or even more people are having the same name.&lt;/p&gt;&#xA;&lt;p&gt;To clean up the available names in the system I&amp;rsquo;ve written a script that renames a users identity and the mailboxes address.&#xA;So let&amp;rsquo;s see what this script does:&lt;/p&gt;</description>
    </item>
    <item>
      <title>ExchangeOnline OWA Policies - Disable OWA light</title>
      <link>https://janikvonrotz.ch/2013/09/09/exchangeonline-owa-policies-disable-owa-light/</link>
      <pubDate>Mon, 09 Sep 2013 09:11:32 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2013/09/09/exchangeonline-owa-policies-disable-owa-light/</guid>
      <description>&lt;p&gt;To alter the Exchange owa policies you can access them Using the Office365 administration site and navigate to the Exchange section. In the default policy editor are only limited options available.&lt;/p&gt;&#xA;&lt;p style=&#34;text-align: center;&#34;&gt;![owa policy settings](/wp-content/uploads/2013/09/2013-09-09-09_45_09-Outlook-Web-App-Postfachrichtlinie.png)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Manage ActiveDirectory Distribution Groups</title>
      <link>https://janikvonrotz.ch/2013/08/27/manage-activedirectory-distribution-groups/</link>
      <pubDate>Tue, 27 Aug 2013 12:39:11 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2013/08/27/manage-activedirectory-distribution-groups/</guid>
      <description>&lt;p&gt;With Office365 connected with an ADFS you have to redesgin your Exchange distribution groups. ADFS only syncs distribution groups that have these definitions:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;    &lt;li&gt;&lt;del&gt;Group scope is universal&lt;/del&gt;&lt;/li&gt;&#xA;    &lt;li&gt;Group type is distribution&lt;/li&gt;&#xA;    &lt;li&gt;Group members have to be users&#xA;&lt;ul&gt;&#xA;    &lt;li&gt;Yes, it&#39;s not possible to have security groups or something else as distribution group members.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;My idea was simple, I&amp;rsquo;m developing a script that creates for every OU and child OU I&amp;rsquo;m chosing in the ActiveDirectory structure a distribution list containing the users of the chosen OU recursively.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Create a Office365 user license report</title>
      <link>https://janikvonrotz.ch/2013/08/23/create-a-office365-user-license-report/</link>
      <pubDate>Fri, 23 Aug 2013 12:14:46 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2013/08/23/create-a-office365-user-license-report/</guid>
      <description>&lt;p&gt;With over 350 users in the Office365 cloud as in my case it&amp;rsquo;s difficult being aware of which licenses I really need.&lt;/p&gt;&#xA;&lt;p&gt;To help my out I&amp;rsquo;ve made an ActiveDirectory group which holds the allowed Office365 users. And with this PowerShell script I look up every Office365 user and his licenses and check if this users is allowed to use Office365.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
