<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2527 " id="quads-ad2527" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<p>To create a script that would auto-login you to Office 365 or SSO or Windows Azure Active Directory, Copy the following Script in notepad and save it as auto-login.ps1</p>
<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2529 " id="quads-ad2529" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2522 " id="quads-ad2522" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2523 " id="quads-ad2523" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>




<p>Once the file is saved with the ps1 extension you can run Powershell as administrator, Drag and drop this file into Powershell and it&#8217;ll login you automatically.</p>



<p>TEXT BOX</p>



<p>$powerUser = &#8220;admin@domain.onmicrosoft.com&#8221;</p>



<p>$powerPass = &#8220;password&#8221;</p>



<p>$password = ConvertTo-SecureString $powerPass -AsPlainText -Force</p>



<p>$LiveCred = New-Object -TypeName System.Management.Automation.PSCredential -argumentlist $powerUser,$password</p>



<p>$s=new-pssession -configurationname microsoft.exchange -connectionuri <a href="https://www.google.com/url?q=https%3A%2F%2Fps.outlook.com%2Fpowershell&;sa=D&;sntz=1&;usg=AFQjCNG6kFRYvmIcjlQdnFK1Kf4g8-0vgg" target="_blank" rel="noreferrer noopener">https://ps.outlook.com/powershell</a> -credential $livecred -authentication basic -allowredirection</p>
<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2531 " id="quads-ad2531" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>




<p>$import = import-pssession $s</p>



<p>Import-Module MSOnline</p>



<p>connect-msolservice -credential $livecred</p>



<p><strong>Exporting Mailflow transport rules from Office 365 (Exchange Online)</strong></p>



<p>Exporting Rules</p>
<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2526 " id="quads-ad2526" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>




<figure class="wp-block-image"><img src="https://lh3.googleusercontent.com/z_eG4v7a06lOKMzsSgmVpr8x1dm2HLtmD8tU8oKrhkmAEN6iZHpdYzIqWsGEQ72JYu9AZdxg_g=w572" alt=""/> 

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2528 " id="quads-ad2528" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>
 
</figure>



<figure class="wp-block-image"><img src="https://lh3.googleusercontent.com/gIBqoYkmmMdPYXQdVWEBDbwK_0Qo1Q0DVkpOPlff2OIuqStg7yrQ9VkQczdwhCk4Ha8QtqWu6-V0WfL8NibPUuOF6UyvS9LEkXdVdBbHF8HGow9bQMs=w1175" alt=""/></figure>



<p>Importing rules</p>



<figure class="wp-block-image"><img src="https://lh3.googleusercontent.com/7o24Esqq1Ff6WSE9xpIC1OF2x9XdH3l4mVJBuBV0xAPTU409vCWJU9Y-__c2GaqHveWTawc=w1175" alt=""/></figure>
</p>
<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2524 " id="quads-ad2524" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>


Reset and manage your Active Directory users' Passwords Active Directory is one of the most…
Finding Exchange Database hidden mailboxes. Story:Maybe you have been in this situation before, trying to…
If you're using a Proxy server in your firewall or in your network and have…
Story:I got some clients that have reported some of their users being locked out and…
Delegate Permissions This is a code that I have wrote recently to check if an…
Story: I got a request from a client who constantly gets CVs and have to…