<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7587624246230000886</id><updated>2025-12-19T08:26:06.581-08:00</updated><category term="Exchange PowerShell"/><category term="PowerShell"/><category term="Remote Execute"/><category term="Microsoft Exchange"/><category term="Windows 7"/><category term="Exchange 2010"/><category term="GAL"/><category term="OnMicrosoft"/><category term="PsExec"/><category term="PsTools"/><category term="Regedit"/><category term="SQL"/><category term="Skype For Business"/><category term="Skype For Business 2016"/><category term="WMIC"/><category term="Active Directory"/><category term="Automating Hyper-V Remote Manager"/><category term="DPM 2010"/><category term="Disable IPv6"/><category term="Disk2Vhd"/><category term="EMC"/><category term="Enable Remote Desktop"/><category term="Excel Sheet for Skype For Business"/><category term="Manage Virtual Machines Remotely With Hyper-V Manager and Windows 7"/><category term="Outlook 2010"/><category term="P2V"/><category term="Powershell Skype For Business"/><category term="Remote management"/><category term="Remotely Enable Remote Desktop"/><category term="Sharepoint"/><category term="Sharepoint Hyperlink"/><category term="Skype"/><category term="Skype For Business DialPlan"/><category term="Skype For Business Extensions"/><category term="Skype For Business Reporting"/><category term="Skype for Business Powershell"/><category term="Skype for Business VoicePolicy."/><category term="Skype for Business cmdlet"/><category term="Skype4b"/><category term="VirtualBox VDI increase size"/><category term="Virtualbox"/><category term="Virtualbox P2V"/><category term="cmdlet"/><category term="phpvirtualbox"/><category term="virtualbox remote management"/><title type='text'>UsysE</title><subtitle type='html'>PowerShell Scripts for day to day tasks!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>34</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-6449002970095432294</id><published>2018-08-24T11:18:00.000-07:00</published><updated>2018-08-24T11:24:35.455-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Skype For Business"/><category scheme="http://www.blogger.com/atom/ns#" term="Skype For Business 2016"/><category scheme="http://www.blogger.com/atom/ns#" term="Skype for Business cmdlet"/><category scheme="http://www.blogger.com/atom/ns#" term="Skype For Business DialPlan"/><category scheme="http://www.blogger.com/atom/ns#" term="Skype for Business Powershell"/><category scheme="http://www.blogger.com/atom/ns#" term="Skype for Business VoicePolicy."/><title type='text'>Skype for Business - Powershell to set Dialplan Policy &amp; Voice Policy to Automatic.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If you had manually assigned DialPlan &amp;amp; VoicePolicy and started using the Site level policy then you might want to change your DialPlan &amp;amp; VoicePolicy for all users to back to Automatic.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Basically from&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqXRwZE-t9CystbcfIiykqThPtRQNKfDHAdMGDiH-zaI62v3uAGath9-LGIrTfZxfJaPX9fgJUrOfZKbffTLC8KSxJccF5oq-aPIV473eqaIw3V9do60g7yEfpy0JlEkWzLiMe5e315Gr0/s1600/Dialplan.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;116&quot; data-original-width=&quot;431&quot; height=&quot;85&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqXRwZE-t9CystbcfIiykqThPtRQNKfDHAdMGDiH-zaI62v3uAGath9-LGIrTfZxfJaPX9fgJUrOfZKbffTLC8KSxJccF5oq-aPIV473eqaIw3V9do60g7yEfpy0JlEkWzLiMe5e315Gr0/s320/Dialplan.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
To&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihjOuqphc4QBmKK9IJeNa9xwY8JWXmz7fM76ieHqVn6sMxw65uAQitLzYNHmu3diwnpkhy22E3XoZY8Fme478vqsak-ZaYSIXQFo9guqZdqKgIjDJpHo299cp2V67r-8UFQpsQ7bB5C_Wy/s1600/Dilaplan2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;107&quot; data-original-width=&quot;423&quot; height=&quot;80&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihjOuqphc4QBmKK9IJeNa9xwY8JWXmz7fM76ieHqVn6sMxw65uAQitLzYNHmu3diwnpkhy22E3XoZY8Fme478vqsak-ZaYSIXQFo9guqZdqKgIjDJpHo299cp2V67r-8UFQpsQ7bB5C_Wy/s320/Dilaplan2.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Here is the powershell which targets users via RegisterPool. I also make a backup of dialplan &amp;amp; volicepolicy which was assigned to user in csv.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;Import-Module&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: blueviolet;&quot;&gt;SkypeOnlineConnector&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#Change the below pool for targeting users&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$RegistrarPool&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: darkred;&quot;&gt;&quot;frontend.domain.com&quot;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$users&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Get-CsUser&lt;/span&gt; &lt;span style=&quot;color: navy;&quot;&gt;-Filter&lt;/span&gt; {&lt;span style=&quot;color: blue;&quot;&gt;RegistrarPool&lt;/span&gt; &lt;span style=&quot;color: navy;&quot;&gt;-eq&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$RegistrarPool&lt;/span&gt;} &lt;span style=&quot;color: darkgrey;&quot;&gt;|&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;select&lt;/span&gt; &lt;span style=&quot;color: blueviolet;&quot;&gt;DisplayName&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$array&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt;
@()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;foreach&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; (&lt;span style=&quot;color: orangered;&quot;&gt;$user&lt;/span&gt;
&lt;span style=&quot;color: darkblue;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$users&lt;/span&gt;)
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$userpolicy&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;get-csuser&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$user&lt;/span&gt;&lt;span style=&quot;color: darkgrey;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: darkgrey;&quot;&gt;].&lt;/span&gt;DisplayName &lt;span style=&quot;color: darkgrey;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;select&lt;/span&gt; &lt;span style=&quot;color: blueviolet;&quot;&gt;DisplayName&lt;/span&gt;&lt;span style=&quot;color: darkgrey;&quot;&gt;,&lt;/span&gt;
&lt;span style=&quot;color: blueviolet;&quot;&gt;VoicePolicy&lt;/span&gt;&lt;span style=&quot;color: darkgrey;&quot;&gt;,&lt;/span&gt;
&lt;span style=&quot;color: blueviolet;&quot;&gt;DialPlan&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$array&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;+=&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$userpolicy&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;get-csuser&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$user&lt;/span&gt;&lt;span style=&quot;color: darkgrey;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: darkgrey;&quot;&gt;].&lt;/span&gt;DisplayName &lt;span style=&quot;color: darkgrey;&quot;&gt;|&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Grant-CsDialPlan&lt;/span&gt; &lt;span style=&quot;color: navy;&quot;&gt;-PolicyName&lt;/span&gt;
&lt;span style=&quot;color: darkred;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;get-csuser&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$user&lt;/span&gt;&lt;span style=&quot;color: darkgrey;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: darkgrey;&quot;&gt;].&lt;/span&gt;DisplayName &lt;span style=&quot;color: darkgrey;&quot;&gt;|&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Grant-CsVoicePolicy&lt;/span&gt; &lt;span style=&quot;color: navy;&quot;&gt;-PolicyName&lt;/span&gt;
&lt;span style=&quot;color: darkred;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#Dialplan set&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#get-csuser Firstname LastName | Grant-CsDialPlan -PolicyName
&quot;&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#VoicePolicy set&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#get-csuser firstname.lastname@skype.com | Grant-CsVoicePolicy
-PolicyName &quot;&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$array&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Export-Csv&lt;/span&gt; &lt;span style=&quot;color: navy;&quot;&gt;-notype&lt;/span&gt; &lt;span style=&quot;color: navy;&quot;&gt;-Path&lt;/span&gt; &lt;span style=&quot;color: blueviolet;&quot;&gt;C:\Scripts\dialplanpolicyFinal-+$RegistrarPool+.csv
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/6449002970095432294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2018/08/skype-for-business-powershell-to-set.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/6449002970095432294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/6449002970095432294'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2018/08/skype-for-business-powershell-to-set.html' title='Skype for Business - Powershell to set Dialplan Policy &amp; Voice Policy to Automatic.'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqXRwZE-t9CystbcfIiykqThPtRQNKfDHAdMGDiH-zaI62v3uAGath9-LGIrTfZxfJaPX9fgJUrOfZKbffTLC8KSxJccF5oq-aPIV473eqaIw3V9do60g7yEfpy0JlEkWzLiMe5e315Gr0/s72-c/Dialplan.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-1310959142351918803</id><published>2017-07-14T06:43:00.000-07:00</published><updated>2017-07-14T06:43:43.620-07:00</updated><title type='text'>Remove roaming profile and free up space on server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
You can free up space by deleting user profiles to save space on the server.&lt;br /&gt;
&lt;br /&gt;
Shortcut cmd is &lt;b&gt;rundll32 sysdm.cpl,EditUserProfiles&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/1310959142351918803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2017/07/remove-roaming-profile-and-free-up.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/1310959142351918803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/1310959142351918803'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2017/07/remove-roaming-profile-and-free-up.html' title='Remove roaming profile and free up space on server'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-5014707408394168793</id><published>2016-07-27T14:16:00.002-07:00</published><updated>2017-12-13T08:34:18.505-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Excel Sheet for Skype For Business"/><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><category scheme="http://www.blogger.com/atom/ns#" term="Powershell Skype For Business"/><category scheme="http://www.blogger.com/atom/ns#" term="Skype"/><category scheme="http://www.blogger.com/atom/ns#" term="Skype For Business"/><category scheme="http://www.blogger.com/atom/ns#" term="Skype For Business 2016"/><category scheme="http://www.blogger.com/atom/ns#" term="Skype For Business Extensions"/><category scheme="http://www.blogger.com/atom/ns#" term="Skype For Business Reporting"/><category scheme="http://www.blogger.com/atom/ns#" term="Skype4b"/><title type='text'>Skype For Business - Reports for Users with Enterprise Voice Enabled and their Extensions.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #9fc5e8; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;Skype For Business 2015 - Reports for Users with Enterprise Voice Enabled and their Extensions.&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;color: #9fc5e8; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#Create table and populate users properties&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$table&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt;
@()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#Get users who have Enterprise Voice Enabled and select Name,
LineURI and #EnterpriseVoiceEnabled columns &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$users&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Get-CsUser&lt;/span&gt; &lt;span style=&quot;color: navy;&quot;&gt;-Filter&lt;/span&gt; {&lt;span style=&quot;color: blue;&quot;&gt;EnterpriseVoiceEnabled&lt;/span&gt; &lt;span style=&quot;color: navy;&quot;&gt;-eq&lt;/span&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$true&lt;/span&gt;} &lt;span style=&quot;color: darkgrey;&quot;&gt;|&lt;/span&gt;&amp;nbsp;`&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Select&lt;/span&gt; &lt;span style=&quot;color: blueviolet;&quot;&gt;DisplayName&lt;/span&gt;&lt;span style=&quot;color: darkgrey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: blueviolet;&quot;&gt;LineURI&lt;/span&gt;&lt;span style=&quot;color: darkgrey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: blueviolet;&quot;&gt;EnterpriseVoiceEnabled&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#Loop through each users&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;foreach&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;(&lt;span style=&quot;color: orangered;&quot;&gt;$user&lt;/span&gt;
&lt;span style=&quot;color: darkblue;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$users&lt;/span&gt;){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#Get Name from the user list for each user&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$name&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$user&lt;/span&gt;&lt;span style=&quot;color: darkgrey;&quot;&gt;.&lt;/span&gt;DisplayName&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#Grab extension which is after = sign and grab the 1st part
after = &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$ext&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$user&lt;/span&gt;&lt;span style=&quot;color: darkgrey;&quot;&gt;.&lt;/span&gt;LineURI&lt;span style=&quot;color: darkgrey;&quot;&gt;.&lt;/span&gt;Split(&lt;span style=&quot;color: darkred;&quot;&gt;&quot;=&quot;&lt;/span&gt;)&lt;span style=&quot;color: darkgrey;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: darkgrey;&quot;&gt;]&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#Grab value of EnterpriceVoiceEnabled in this case it will be
always True&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#cause our initial search only includes Enterprise Enabled
users.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$entvoice&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$user&lt;/span&gt;&lt;span style=&quot;color: darkgrey;&quot;&gt;.&lt;/span&gt;EnterpriseVoiceEnabled&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#Add each columns with property for users.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$objAverage&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;New-Object&lt;/span&gt; &lt;span style=&quot;color: blueviolet;&quot;&gt;System.Object&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$objAverage&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Add-Member&lt;/span&gt; &lt;span style=&quot;color: navy;&quot;&gt;-type&lt;/span&gt; &lt;span style=&quot;color: blueviolet;&quot;&gt;NoteProperty&lt;/span&gt;
&lt;span style=&quot;color: navy;&quot;&gt;-name&lt;/span&gt; &lt;span style=&quot;color: darkred;&quot;&gt;&quot;User&quot;&lt;/span&gt;
&lt;span style=&quot;color: navy;&quot;&gt;-value&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$name&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$objAverage&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Add-Member&lt;/span&gt; &lt;span style=&quot;color: navy;&quot;&gt;-type&lt;/span&gt; &lt;span style=&quot;color: blueviolet;&quot;&gt;NoteProperty&lt;/span&gt;
&lt;span style=&quot;color: navy;&quot;&gt;-name&lt;/span&gt; &lt;span style=&quot;color: darkred;&quot;&gt;&quot;Extension&quot;&lt;/span&gt;
&lt;span style=&quot;color: navy;&quot;&gt;-value&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$ext&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$objAverage&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Add-Member&lt;/span&gt; &lt;span style=&quot;color: navy;&quot;&gt;-type&lt;/span&gt; &lt;span style=&quot;color: blueviolet;&quot;&gt;NoteProperty&lt;/span&gt;
&lt;span style=&quot;color: navy;&quot;&gt;-name&lt;/span&gt; &lt;span style=&quot;color: darkred;&quot;&gt;&quot;Enterprise
Voice&quot;&lt;/span&gt; &lt;span style=&quot;color: navy;&quot;&gt;-value&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$entvoice&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#Add them to table&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$table&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;+=&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$objAverage&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#Format the table. This is useless as we are sending
email from below $body&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$table&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Format-Table&lt;/span&gt; &lt;span style=&quot;color: navy;&quot;&gt;-AutoSize&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#CSS formating&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$a&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: darkred;&quot;&gt;&quot;&amp;lt;style&amp;gt;&quot;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$a&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$a&lt;/span&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: darkred;&quot;&gt;&quot;BODY{background-color:white;}&quot;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$a&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$a&lt;/span&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: darkred;&quot;&gt;&quot;TABLE{border-width: 2px;border-style:
solid;`&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;span style=&quot;color: darkred;&quot;&gt;border-color: black;border-collapse:&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9pt;&quot;&gt;&amp;nbsp;collapse;}&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$a&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$a&lt;/span&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: darkred;&quot;&gt;&quot;TH{border-width: 2px;padding: 2px;`&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;span style=&quot;color: darkred;&quot;&gt;border-style:
solid;border-color:&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9pt;&quot;&gt;&amp;nbsp;black;background-color:GoldenRod}&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$a&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$a&lt;/span&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: darkred;&quot;&gt;&quot;TD{border-width: 2px;padding: 2px;border-style: `&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;span style=&quot;color: darkred;&quot;&gt;solid;border-color:&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9pt;&quot;&gt;&amp;nbsp;black;background-color:palegoldenrod}&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$a&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$a&lt;/span&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: darkred;&quot;&gt;&quot;&amp;lt;/style&amp;gt;&quot;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9pt;&quot;&gt;##############Change your SMTP Details Start###&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9pt;&quot;&gt;#Your SMTP server&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$smtpServer&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: darkred;&quot;&gt;&quot;intermailserver.usyse.com&quot;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#Your from address&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$from&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: darkred;&quot;&gt;&quot;Do_Not_Reply@&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: 12px;&quot;&gt;usyse.com&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;span style=&quot;color: darkred;&quot;&gt;&quot;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$To = &quot;me@&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: 12px;&quot;&gt;usyse.com&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&quot;,
&quot;you@&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: 12px;&quot;&gt;usyse.com&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9pt;&quot;&gt;$CC = &quot;someone@&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: 12px;&quot;&gt;usyse.com&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9pt;&quot;&gt;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 12px;&quot;&gt;##############Change your SMTP Details Ends###&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$Subject&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: darkred;&quot;&gt;&quot;Skype For Business Extensions&quot;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$Body&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: darkred;&quot;&gt;&quot;Skype For
Business Extension Details&amp;lt;br&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&amp;nbsp;&amp;lt;br&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#Here I am sorting it out with Extension&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$Body&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: darkgrey;&quot;&gt;+=&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$table&lt;/span&gt;&amp;nbsp; &lt;span style=&quot;color: darkgrey;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sort-Object&lt;/span&gt; &lt;span style=&quot;color: blueviolet;&quot;&gt;Extension&lt;/span&gt;
&lt;span style=&quot;color: darkgrey;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;ConvertTo-Html&lt;/span&gt;
&lt;span style=&quot;color: navy;&quot;&gt;-head&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$a&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$Body&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: darkgrey;&quot;&gt;+=&lt;/span&gt; &lt;span style=&quot;color: darkred;&quot;&gt;&quot;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&quot;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#$message.Body&amp;nbsp; +=
&quot; &amp;lt;br&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#$message.Body&amp;nbsp; +=
&quot; &amp;lt;br&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;$Body&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: darkgrey;&quot;&gt;+=&lt;/span&gt; &lt;span style=&quot;color: darkred;&quot;&gt;&quot; &quot;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;#Send email finally&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt;Send-MailMessage&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;span style=&quot;color: navy;&quot;&gt;-To&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$to&lt;/span&gt;&amp;nbsp; &lt;span style=&quot;color: navy;&quot;&gt;-Subject&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$subject&lt;/span&gt; &lt;span style=&quot;color: navy;&quot;&gt;-Body&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$body&lt;/span&gt; &lt;span style=&quot;color: navy;&quot;&gt;-SmtpServer&lt;/span&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$smtpserver&lt;/span&gt; &lt;span style=&quot;color: navy;&quot;&gt;-From&lt;/span&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$from&lt;/span&gt; &lt;span style=&quot;color: navy;&quot;&gt;-BodyAsHtml&lt;/span&gt;&amp;nbsp; &lt;span style=&quot;color: navy;&quot;&gt;-Cc&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$CC&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
And the Email will look like this:-&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i.imgur.com/aNd5SE4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;237&quot; src=&quot;https://i.imgur.com/aNd5SE4.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-bottom: 0.0001pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/5014707408394168793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2016/07/skype-for-business-report-users-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/5014707408394168793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/5014707408394168793'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2016/07/skype-for-business-report-users-with.html' title='Skype For Business - Reports for Users with Enterprise Voice Enabled and their Extensions.'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-1528728658388597526</id><published>2015-03-05T10:17:00.003-08:00</published><updated>2015-03-05T10:23:19.921-08:00</updated><title type='text'>Office 365 - Give permission to a someone for all calendars</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;Following powershell will list mailbox with resource type as &quot;Room&quot; and then it will add &lt;a href=&quot;mailto:user@domain.com&quot;&gt;user@domain.com&lt;/a&gt; as Editor for that rooms calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;$rooms&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;get-mailbox&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;|&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;where&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; {&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;$_&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;resourcetype &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;-eq&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&quot;room&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;} &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;

&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;foreach&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;$room&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;in&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;$rooms&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;
{&lt;br /&gt;

&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;Add-MailboxFolderPermission&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: navy; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: navy; font-family: Lucida Console; font-size: xx-small;&quot;&gt;-Identity&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;$room&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;windowsliveid &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;+&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&quot;:\calendar&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;) &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: navy; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: navy; font-family: Lucida Console; font-size: xx-small;&quot;&gt;-user&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blueviolet; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;a href=&quot;mailto:user@domain.com&quot;&gt;user@domain.com&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: navy; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: navy; font-family: Lucida Console; font-size: xx-small;&quot;&gt;-AccessRights&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blueviolet; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: Lucida Console; font-size: xx-small;&quot;&gt;Editor&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: Lucida Console; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;} &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/1528728658388597526/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2015/03/office-365-give-permission-to-someone.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/1528728658388597526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/1528728658388597526'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2015/03/office-365-give-permission-to-someone.html' title='Office 365 - Give permission to a someone for all calendars'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-8802676673886193393</id><published>2013-08-15T07:13:00.001-07:00</published><updated>2013-08-15T07:14:12.299-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exchange PowerShell"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft Exchange"/><title type='text'>Show more details in Calendar (Room Mailbox)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If you made a Room Mailbox for a meeting room and someone wants to see who booked it and more details for that booking you can run the following cmdlet to change the default setting to Reviewer which will give end user more information about that booking.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Set-MailboxFolderPermission &lt;strong&gt;meetingroom&lt;/strong&gt;:\Calendar -User Default -AccessRights Reviewer&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/8802676673886193393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2013/08/show-more-details-in-calendar-room.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/8802676673886193393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/8802676673886193393'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2013/08/show-more-details-in-calendar-room.html' title='Show more details in Calendar (Room Mailbox)'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-5865773692627337995</id><published>2013-08-14T12:07:00.001-07:00</published><updated>2013-08-14T12:07:26.565-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Active Directory"/><category scheme="http://www.blogger.com/atom/ns#" term="cmdlet"/><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><title type='text'>List users in security group.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
So group you want to target is vpn_users and you want to output to a text file called vpnusers.txt. &lt;br /&gt;
&lt;br /&gt;
1st option is very detailed and has OU information in it. 2nd option is on the fly kind of deal and useful for just looking at members. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
dsquery group -name &quot;&lt;strong&gt;vpn_users&lt;/strong&gt;&quot; | dsget group -members -expand &amp;gt; &lt;strong&gt;c:\vpnusers.txt&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;
Or&lt;br /&gt;
&lt;br /&gt;
net group &lt;strong&gt;vpn_users&lt;/strong&gt; /domain &amp;gt; &lt;strong&gt;c:\vpnusers.txt&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Also you might like &lt;strong&gt;net user ijaved/domain&lt;/strong&gt; command as well :) I love it to check details like if account has expired password or account is locked. Saves me from going into AD and checking Account tab.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/5865773692627337995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2013/08/list-users-in-security-group.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/5865773692627337995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/5865773692627337995'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2013/08/list-users-in-security-group.html' title='List users in security group.'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-8159413758610767023</id><published>2013-08-14T12:07:00.000-07:00</published><updated>2017-12-13T08:37:28.696-08:00</updated><title type='text'>Password Expiry Notification - Powershell Script</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Here&#39;s a powershell script to send out email to end user to remind them of password expiry.&lt;br /&gt;
&lt;br /&gt;
Feel free to use it. It&#39;s not the&amp;nbsp;best method but it gets the work done for me.&amp;nbsp;If you make it better please post it back so it can help other users. &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
# ======================================&lt;br /&gt;

&lt;br /&gt;
# = Password Expiry Email Notification =&lt;br /&gt;

&lt;br /&gt;
# ======================================&lt;br /&gt;

&lt;br /&gt;
# Created: [10/10/2013]&lt;br /&gt;

&lt;br /&gt;
# By ijaved&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$smtpSrv&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot;smtp.server.com&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;#Name of your exchange server.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$emailDomain&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot;@server.com&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;              &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;#Your email domain&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$emailUser&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot;helpdesk&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;                 &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;#Needs this to authenticate before sending email.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$emailPass&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot;HelpDeskPwd&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;               &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;#Pass for above user.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$emailFrom&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;a href=&quot;mailto:helpdesk@server.com&quot;&gt;helpdesk@server.com&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;#Sender Email Address&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$adminEmail&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;a href=&quot;mailto:alerts@server.com&quot;&gt;alerts@server.com&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;       &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;#CC admin on email sent to user.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$owaUrl&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot;https://owa.server.com/owa&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;#OWA URL needed for email msg&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$groupName&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot;RemoteUsers&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;              &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;#Name of security group where user will be picked up from.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
#Function Mail Users&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Function&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;mail&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$smtpserver&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$smtpSrv&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$msg&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;new-object&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Net.Mail.MailMessage&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$smtp&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;new-object&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Net.Mail.SmtpClient&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$smtpServer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$smtp&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;EnableSsl &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$True&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$smtp&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Credentials &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;New-Object&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;System.Net.NetworkCredential&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$emailUser&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$emailPass&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$msg&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;From &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$emailFrom&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$msg&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;To&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Add(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;”&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$email&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;”&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$msg&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;CC&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Add(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;”&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$adminEmail&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;”&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$msg&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Subject &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;“Password Expiry Notice!”&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$msg&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Body &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;“Hi &quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;+&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$fullName&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;+&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;br /&gt;
 &lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;You have &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$calExpire&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; days left to change your password. Your password will expire on &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$formatDate&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;.  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;

&lt;br /&gt;
You can either do it by pressing &amp;lt;CTRL&amp;gt;&amp;lt;ALT&amp;gt;&amp;lt;DELETE&amp;gt; and then clicking Change Password button or from OWA.&lt;br /&gt;


&lt;br /&gt;
To change it from OWA please follow the below steps :-&lt;br /&gt;


&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;1. Open any Web browser and type &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$owaUrl&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; in the address bar.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;br /&gt;
2. Log in using your credentials.&lt;br /&gt;

&lt;br /&gt;
3. Once you are logged in, click on Options, located at the top right hand corner of OWA.&lt;br /&gt;

&lt;br /&gt;
4. Drop down menu will display multiple option. Click on Change Your Password.&lt;br /&gt;

&lt;br /&gt;
5. Enter your former password as well as your new password, and then click on Save. &lt;br /&gt;

&lt;br /&gt;
6. Outlook Web Access will tell you that your password has been successfully changed. Click on OK to log in with your new password.&lt;br /&gt;


&lt;br /&gt;
Best Regards,&lt;br /&gt;


&lt;br /&gt;
HelpDesk&quot;&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$smtp&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Send(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$msg&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;br /&gt;
}&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;#End Function Mail&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
#Users in an array for testing. Add multiple like this &quot;test&quot;,&quot;test2&quot;&lt;br /&gt;

&lt;br /&gt;
#$users = &quot;jiqbal&quot;&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
#Users from domain group&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$pickUser&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;net&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;group&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$groupName&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;/domain&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;|&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;out-string&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$users&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; ((&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$pickUser&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;-split&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot;(-{79})|(The command completed successfully.)&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;[&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;) &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;-split&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot;\s+&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
#Loop through $users and get each user and run.&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;foreach&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$user&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;in&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$users&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;) &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;br /&gt;
{&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;#Check if $user is not empty&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;If&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$user&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;){&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Continue&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;

&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Else&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
#Execute net user command with username&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$result&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;net&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;user&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$user&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;/domain&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
#Get Firstname of user by selecting string with &quot;Full Name&quot;&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$fName&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$result&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;|&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;select-string&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot;Full Name&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
#Split at space and drop empty spaces with where-object (where object is not equal to space) collect word 4 &amp;amp; 5 (Firstname &amp;amp; Lastname)&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$filternames&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$fName&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;tostring()&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;split(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;) &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;|&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;where-object&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; {&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$_&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;-ne&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
#Pick Names from the array 2 &amp;amp; 3 &lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$name&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$filternames&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;[&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
#Join the two together&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$fullName&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;[&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;string&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;]::&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Join(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot; &quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$name&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;

&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
#Creating email by adding Firstname.Lastname&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$email&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;[&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;string&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;]::&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Join(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot;.&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$name&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;) &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;+&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$emailDomain&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
#Get password expiry date by searching &quot;Password expires&quot;&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$pwdexpires&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$result&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;|&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;select-string&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot;Password expires&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
#Split at space and collect array 2 which is the password expiry date&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$formatDate&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$pwdexpires&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;tostring()&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;split(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot; &quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;) &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;|&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;where-object&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$_&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;-ne&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;} ; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$formatDate&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$formatDate&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;[&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
#If password never expired is selected then you will get error. Skip the user by using if statement&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;If&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$formatDate&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;-eq&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot;Never&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;){&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Write-Host&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: navy; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: navy; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: navy; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;-f&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;red&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot;Skipping &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$user&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; : Password never expires selected.&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Continue&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Else&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
#Changing format for expireDate and assigning todays date.&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$expiryDate&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Get-Date&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: navy; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: navy; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: navy; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;-Date&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$formatDate&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$today&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Get-Date&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
#Calculate days left to reset by - expiry date with current date. (expiry date will be in future)&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$calExpire&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$expiryDate&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$today&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;days&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;br /&gt;
}&lt;br /&gt;


&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;#Notify admin about expiry date if its less than 14&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;If&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$calExpire&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;-le&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;14&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;){&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Write-Host&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$fullName&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; has &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$calExpire&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; days left to change his password. His password will expire on &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$formatDate&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;.&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
}&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;#If expiry date is equal to 7 / 3 / 1 then go ahead and send email notification to user.&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;If&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$calExpire&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;-le&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;7&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;){&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;mail&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;ElseIf&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$calExpire&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;-eq&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;4&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;){&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;mail&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;ElseIf&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$calExpire&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;-eq&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;){&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;mail&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;ElseIf&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$calExpire&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;-eq&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;){&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;mail&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;ElseIf&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$calExpire&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;-eq&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;){&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;mail&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Else&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; {&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;Write-Host&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: navy; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: navy; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: navy; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;-f&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;green&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$fullName&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; has &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;$calExpire&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt; days left&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;lucida console&amp;quot;; font-size: xx-small;&quot;&gt;
&lt;br /&gt;
}&lt;br /&gt;

&lt;br /&gt;
} &lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/8159413758610767023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2013/08/password-expiry-notification-powershell.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/8159413758610767023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/8159413758610767023'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2013/08/password-expiry-notification-powershell.html' title='Password Expiry Notification - Powershell Script'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-3187083688860218742</id><published>2013-08-09T14:12:00.002-07:00</published><updated>2013-08-12T06:48:32.666-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exchange 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="Exchange PowerShell"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft Exchange"/><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><title type='text'>Exchange 2010 - Deny User from distribution list to send mails to other distribution list.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This probably sounds crazy but I was asked to do this. &lt;br /&gt;
&lt;br /&gt;
Basically they wanted to stop a users to send emails to all distribution list. Usually used when terminating a user or if the user is being retarded and sending personal emails to all DL&#39;s. Whatever it might be I just had to come up with a script to do it to all over 150 DL. I wasn&#39;t going to do it one by one from EMC so I made a cmdlet.&lt;br /&gt;
&lt;br /&gt;
Below is the powershell script for exchange 2010 probably works on 2013 as well.&lt;br /&gt;
&lt;br /&gt;
Make a DL called &quot;Denied Users&quot; and add users or user to that DL if you want to block him from sending emails to DL. Please note that this script will only add the Denied User DL in block list once. So if you create a new DL after running this script. Then that DL will not have Denied users in rejected user and hence you will have to re-run the script.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;$temp&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgrey; font-family: Lucida Console; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;Get-DistributionGroup&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: navy; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: navy; font-family: Lucida Console; font-size: xx-small;&quot;&gt;-ResultSize&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blueviolet; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: Lucida Console; font-size: xx-small;&quot;&gt;Unlimited&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blueviolet; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blueviolet; font-family: Lucida Console; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkblue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;foreach&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;$group&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkblue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkblue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;in&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;$temp&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;) &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;
&lt;br /&gt;
{ &lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Lucida Console; font-size: xx-small;&quot;&gt;Set-DistributionGroup&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: navy; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: navy; font-family: Lucida Console; font-size: xx-small;&quot;&gt;-Identity&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: orangered; font-family: Lucida Console; font-size: xx-small;&quot;&gt;$group&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: navy; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: navy; font-family: Lucida Console; font-size: xx-small;&quot;&gt;-RejectMessagesFromDLMembers&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&quot;Denied Users&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: darkred; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkred; font-family: Lucida Console; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;br /&gt;
}&lt;br /&gt;

&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Lucida Console; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: darkgreen; font-family: Lucida Console; font-size: xx-small;&quot;&gt;#Remove the above setting incase they change their mind.&lt;br /&gt;

&lt;br /&gt;
#Set-DistributionGroup -Identity&amp;nbsp;$group -RejectMessagesFromDLMembers $null &lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/3187083688860218742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2013/08/exchange-2010-deny-user-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/3187083688860218742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/3187083688860218742'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2013/08/exchange-2010-deny-user-from.html' title='Exchange 2010 - Deny User from distribution list to send mails to other distribution list.'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-6082124136648693031</id><published>2012-01-16T09:53:00.000-08:00</published><updated>2012-01-16T09:57:17.876-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Outlook 2010"/><title type='text'>Outlook 2010 forward emails after specific time.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Source: &lt;a href=&quot;http://danfolkes.com/2011/02/18/outlook-rule-only-at-specific-times/&quot;&gt;http://danfolkes.com/2011/02/18/outlook-rule-only-at-specific-times/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
I wanted to create a forward so that helpdesk email gets forwarded to my phone on my personal email. Setting up helpdesk email was the easy way but it gets 20+ emails every hour during work time. After work hours its pretty much quite. So for those times I wanted the rule.&lt;br /&gt;
&lt;br /&gt;
Rules which needs to be created :-&lt;br /&gt;
&lt;br /&gt;Quoted from the post below :-&lt;br /&gt;
&lt;br /&gt;
&quot;&lt;br /&gt;
The Rule that will check email header* for UTC times.  Make sure it’s assigned to the FWD category. And then FWD it:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;wp_syntax&quot;&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;pre class=&quot;txt&quot; style=&quot;font-family: monospace;&quot;&gt;Apply this rule after the message arrives
with &#39;2011 23:&#39; or &#39;2012 18:,2012 19:.....2012 11:&#39; in the message header
    and assigned to &#39;FWD&#39; category
forward it to &lt;a href=&quot;mailto:&#39;email@example.com&#39;&quot;&gt;&#39;email@example.com&#39;&lt;/a&gt;&lt;/pre&gt;
&quot;&lt;br /&gt;
&lt;br /&gt;
Seach for this string in header.&lt;br /&gt;
&lt;br /&gt;2012 18:,2012 19:,2012 20:,2012 21:,2012 22:,2012 23:,2012 24:,2012 01:,2012 02:,2012 03:,2012 04:,2012 05:,2012 06:,2012 07:,2012 08:,2012 09:,2012 10:,2012 11:&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/6082124136648693031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2012/01/outlook-2010-forward-emails-after.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/6082124136648693031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/6082124136648693031'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2012/01/outlook-2010-forward-emails-after.html' title='Outlook 2010 forward emails after specific time.'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-335723058208671902</id><published>2012-01-13T15:33:00.000-08:00</published><updated>2012-01-16T08:28:12.180-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DPM 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="Exchange 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>DPM 2010 - Script to export all recoverable item to drive</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.5pt; line-height: 125%;&quot;&gt;Ok so I finished writing my script for exporting recovery data to f: drive (local to DPM 2010 server) for all the servers (DPM 2010 Agents) I have 4 of them.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.5pt; line-height: 125%;&quot;&gt;If any of you had the pleasure of doing this through GUI knows how painful it is... I fortunately was very lucky to be assigned to export (recover to network folder) 16 datasources from 4 different servers. After doing this for couple of days I started looking at cmdlets and found some scripts and hints on how to do this. and then...&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background: white; line-height: 125%;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.5pt; line-height: 125%;&quot;&gt;This scripts loops through all the servers and all the datasource protected and recovers them to f: drive then it 7z the files and put in 7z folder it also date stamps folders and 7z files. You have to download 7za and place it in system32 folder in order for it to 7z the folders.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Times New Roman; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background: white; line-height: 125%;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.5pt; line-height: 125%;&quot;&gt;I am posting this script to that it might come handy to someone else out there.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Times New Roman; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background: white; line-height: 125%;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.5pt; line-height: 125%;&quot;&gt;I use this in production environment and it works fine but doesn’t mean it might work for you. So standard disclaimer use it at your own risk! ( I did not write some of the code and copied it from other user posts from this forum. Hopefully they won’t mind). You are free to modify and use the script.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Times New Roman; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background: white; line-height: 125%;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8.5pt; line-height: 125%;&quot;&gt;It recovers SQL, System Protection and Exchange 2010. Please note I only export exchange recovery on 15th of every month you can change that. Search for “#Only run Exchange Recovery on 15th of every month. Otherwise Skip” and change the days below that.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Times New Roman; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: black;&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: green;&quot;&gt;# ====================================&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;# = DPM 2010 Recover to Drive looped =&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;# = for all servers and datasource.  =&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;# ====================================&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;# Created: [01/12/12]&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;# By EvilWasp&lt;/span&gt;

&lt;span style=&quot;color: green;&quot;&gt;#0 Time Stamp folders&lt;/span&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$date&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; get&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;date
&lt;span style=&quot;color: orangered;&quot;&gt;$TimeStamp&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$date&lt;/span&gt;.ToShortDateString()
&lt;span style=&quot;color: green;&quot;&gt;#Replace / as folder name cannot contain it.&lt;/span&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$time&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$TimeStamp&lt;/span&gt;.Replace(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;/&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;-&quot;&lt;/span&gt;) 
&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;color: green;&quot;&gt;#1 You have to modify the below varibles to make it work for you.&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;#Below varibles&lt;/span&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$DPMServerName&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Krait&quot;&lt;/span&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$DestinationLocation&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;F:\Recovered\$time&quot;&lt;/span&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$Destination7z&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;F:\7z\$time&quot;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;color: green;&quot;&gt;#2 Import DPM Shell if its not loaded.&lt;/span&gt;
If((Get&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;PSSnapIn &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Name &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Microsoft.DataProtectionManager.PowerShell&quot;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;ErrorAction SilentlyContinue) &lt;span style=&quot;color: grey;&quot;&gt;-eq&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$null&lt;/span&gt;)
    {
  Add&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;PSSnapIn &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Microsoft.DataProtectionManager.PowerShell&quot;&lt;/span&gt;
  Start&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Sleep 5
    }

&lt;span style=&quot;color: green;&quot;&gt;#3 Get list of DPM Agents - Protected Group&lt;/span&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$pg&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; Get&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;ProtectionGroup &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;DPMServerName &lt;span style=&quot;color: orangered;&quot;&gt;$DPMServerName&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;#Count how many servers!&lt;/span&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$pgc&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$pg&lt;/span&gt;.count

&lt;span style=&quot;color: green;&quot;&gt;#4 Start Function Recover it needs $i from $pg.&lt;/span&gt;
Function Recover (&lt;span style=&quot;color: orangered;&quot;&gt;$i&lt;/span&gt;)
{
  &lt;span style=&quot;color: green;&quot;&gt;#if $i is not null then do the loop.&lt;/span&gt;
  If (&lt;span style=&quot;color: orangered;&quot;&gt;$i&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-ne&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$null&lt;/span&gt;) 
  {
    &lt;span style=&quot;color: orangered;&quot;&gt;$dsc&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$ds&lt;/span&gt;.count &lt;span style=&quot;color: green;&quot;&gt;#Counting how many datasource is available in array&lt;/span&gt;
    &lt;span style=&quot;color: green;&quot;&gt;#Loop through all the servers with ForLoop&lt;/span&gt;
    For (&lt;span style=&quot;color: orangered;&quot;&gt;$d&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;0; &lt;span style=&quot;color: orangered;&quot;&gt;$d&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-le&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$dsc&lt;/span&gt;; &lt;span style=&quot;color: orangered;&quot;&gt;$d&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;++&lt;/span&gt;) &lt;span style=&quot;color: green;&quot;&gt;#looping datasource for each servers&lt;/span&gt;
    {
    &lt;span style=&quot;color: orangered;&quot;&gt;$dsn&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$ds&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;$d&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;]&lt;/span&gt;
    &lt;span style=&quot;color: green;&quot;&gt;#8 If &amp;amp; ElseIf Statments to find the write command for each recovery.&lt;/span&gt;
    &lt;span style=&quot;color: green;&quot;&gt;#Three different types -SQL, -SystemProtectionDataSource and -E14datasource for exchange 2010 (Use -Exchange) for older versions. &lt;/span&gt;
    &lt;span style=&quot;color: green;&quot;&gt;#There&#39;s -FileSystem as well which I havent used.&lt;/span&gt;
    &lt;span style=&quot;color: green;&quot;&gt;#-like is used with wildcard(*) to accomodate different versions of SQL i.e 2005, 2008 extra.&lt;/span&gt;
        
        &lt;span style=&quot;color: green;&quot;&gt;#find SQL server in each server&lt;/span&gt;
        If (&lt;span style=&quot;color: orangered;&quot;&gt;$dsn&lt;/span&gt;.Type.Name &lt;span style=&quot;color: grey;&quot;&gt;-like&lt;/span&gt; &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;SQL Server*&quot;&lt;/span&gt;) 
            {
            &lt;span style=&quot;color: green;&quot;&gt;#Recovery Options - Where to place recovered files - for SQL&lt;/span&gt;
            &lt;span style=&quot;color: orangered;&quot;&gt;$rop&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; New&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;RecoveryOption &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;TargetServer &lt;span style=&quot;color: orangered;&quot;&gt;$DPMServerName&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;TargetLocation &lt;span style=&quot;color: orangered;&quot;&gt;$DestinationLocation&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;RecoveryLocation CopyToFolder `
            &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;SQL &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;RecoveryType restore
            }
        &lt;span style=&quot;color: green;&quot;&gt;#find System Protection server&lt;/span&gt;
        ElseIf (&lt;span style=&quot;color: orangered;&quot;&gt;$dsn&lt;/span&gt;.Type.Name &lt;span style=&quot;color: grey;&quot;&gt;-like&lt;/span&gt; &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;System Protection*&quot;&lt;/span&gt;) 
            {
            &lt;span style=&quot;color: green;&quot;&gt;#Recovery Options - Where to place recovered files - for System Protection&lt;/span&gt;
            &lt;span style=&quot;color: orangered;&quot;&gt;$rop&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; New&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;RecoveryOption &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;TargetServer &lt;span style=&quot;color: orangered;&quot;&gt;$DPMServerName&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;TargetLocation &lt;span style=&quot;color: orangered;&quot;&gt;$DestinationLocation&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;RecoveryLocation CopyToFolder `
            &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;SystemProtectionDataSource &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;RecoveryType restore
            }
        &lt;span style=&quot;color: green;&quot;&gt;#find Exchange server&lt;/span&gt;
        ElseIf (&lt;span style=&quot;color: orangered;&quot;&gt;$dsn&lt;/span&gt;.Type.Name &lt;span style=&quot;color: grey;&quot;&gt;-like&lt;/span&gt; &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Exchange Mailbox Database*&quot;&lt;/span&gt;) 
            {
            &lt;span style=&quot;color: green;&quot;&gt;#Only run Exchange Recovery on 15th of every month. Otherwise Skip.&lt;/span&gt;
            If (&lt;span style=&quot;color: orangered;&quot;&gt;$date&lt;/span&gt;.Day &lt;span style=&quot;color: grey;&quot;&gt;-eq&lt;/span&gt; 15) 
                {
            &lt;span style=&quot;color: green;&quot;&gt;#Recovery Options - Where to place recovered files - for Exchange 2010&lt;/span&gt;
            &lt;span style=&quot;color: orangered;&quot;&gt;$rop&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; New&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;RecoveryOption &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;TargetServer &lt;span style=&quot;color: orangered;&quot;&gt;$DPMServerName&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;TargetLocation &lt;span style=&quot;color: orangered;&quot;&gt;$DestinationLocation&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;RecoveryLocation CopyToFolder `
            &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;E14datasource &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;ExchangeOperationType NoOperation &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;RecoveryType restore
                }
                &lt;span style=&quot;color: green;&quot;&gt;#If its not the 15th of month then skip&lt;/span&gt;
                Else
                {
                Continue
                }
            }
        &lt;span style=&quot;color: green;&quot;&gt;#If $dsn.Type.Name is nothing/null skip&lt;/span&gt;
        Else
         {
         Continue
         }
        &lt;span style=&quot;color: green;&quot;&gt;#Sort by latest on top Recovery Points.&lt;/span&gt;
        &lt;span style=&quot;color: orangered;&quot;&gt;$recoveryPoints&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; @(Get&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;RecoveryPoint &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;datasource &lt;span style=&quot;color: orangered;&quot;&gt;$dsn&lt;/span&gt; | sort &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;property RepresentedPointInTime &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Descending)
            If (&lt;span style=&quot;color: orangered;&quot;&gt;$recoveryPoints&lt;/span&gt;.Length &lt;span style=&quot;color: grey;&quot;&gt;-eq&lt;/span&gt; 0)
                {
                 Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Host &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;No recovery point available for&quot;&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$dsn&lt;/span&gt;.Name &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;ForeGroundColor Yellow
                 }
            Else
                {
        &lt;span style=&quot;color: green;&quot;&gt;#Select the latest recovery point found on Array [0]&lt;/span&gt;
        &lt;span style=&quot;color: orangered;&quot;&gt;$latestRecoveryPoint&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$RecoveryPoints&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;]&lt;/span&gt;
        &lt;span style=&quot;color: green;&quot;&gt;#Recovering&lt;/span&gt;
        Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Host &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Recovering&quot;&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$dsn&lt;/span&gt;.Name
        &lt;span style=&quot;color: green;&quot;&gt;#Run Recovery Job&lt;/span&gt;
        &lt;span style=&quot;color: orangered;&quot;&gt;$recoveryJob&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; Recover&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;RecoverableItem &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;RecoverableItem &lt;span style=&quot;color: orangered;&quot;&gt;$latestRecoveryPoint&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;RecoveryOption &lt;span style=&quot;color: orangered;&quot;&gt;$rop&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;JobStateChangedEventHandler &lt;span style=&quot;color: orangered;&quot;&gt;$jobStateChangeHandler&lt;/span&gt;
                }
        &lt;span style=&quot;color: green;&quot;&gt;#If it failed!&lt;/span&gt;
        If(!&lt;span style=&quot;color: orangered;&quot;&gt;$recoveryJob&lt;/span&gt;)
            {
        Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Host &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Failure on invoking Recover-RecoverableItem&quot;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;ForeGroundColor Red
        Continue
            }        
        &lt;span style=&quot;color: green;&quot;&gt;#Wait till the recovery job completes&lt;/span&gt;
        &lt;span style=&quot;color: blue;&quot;&gt;while&lt;/span&gt; (! &lt;span style=&quot;color: orangered;&quot;&gt;$recoveryJob&lt;/span&gt;.hasCompleted )
        { 
        &lt;span style=&quot;color: green;&quot;&gt;# Show a progress bar&lt;/span&gt;
        Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Host &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;.&quot;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;NoNewLine
        Start&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Sleep 5
        }
        &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;(&lt;span style=&quot;color: orangered;&quot;&gt;$recoveryJob&lt;/span&gt;.Status &lt;span style=&quot;color: grey;&quot;&gt;-ne&lt;/span&gt; &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Succeeded&quot;&lt;/span&gt;)
        {
        Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Host &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Recovery failed&quot;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;ForeGroundColor Red
        }
        &lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt;
        {
        Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Host &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Recovery successful&quot;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;ForeGroundColor Green
        }
    
    }
  }    
}
&lt;span style=&quot;color: green;&quot;&gt;#End Function&lt;/span&gt;

&lt;span style=&quot;color: green;&quot;&gt;#5 Count Servers in $pg array&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt; (&lt;span style=&quot;color: orangered;&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;0; &lt;span style=&quot;color: orangered;&quot;&gt;$i&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-le&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$pgc&lt;/span&gt;; &lt;span style=&quot;color: orangered;&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;++&lt;/span&gt;)
{
&lt;span style=&quot;color: green;&quot;&gt;#Selecting server and displaying datasource&lt;/span&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$ds&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; Get&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Datasource &lt;span style=&quot;color: orangered;&quot;&gt;$pg&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;]&lt;/span&gt; 
&lt;span style=&quot;color: green;&quot;&gt;#Call Recover function with $i (server) from #5&lt;/span&gt;
Recover &lt;span style=&quot;color: orangered;&quot;&gt;$i&lt;/span&gt;
}

&lt;span style=&quot;color: green;&quot;&gt;#6 Once all of recovery is exported 7z these.&lt;/span&gt;
cd\ &lt;span style=&quot;color: green;&quot;&gt;#Ensure its on root&lt;/span&gt;
cd &lt;span style=&quot;color: orangered;&quot;&gt;$DestinationLocation&lt;/span&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$dir&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; pwd
If (&lt;span style=&quot;color: orangered;&quot;&gt;$dir&lt;/span&gt;.path &lt;span style=&quot;color: grey;&quot;&gt;-eq&lt;/span&gt;  &lt;span style=&quot;color: orangered;&quot;&gt;$DestinationLocation&lt;/span&gt;)
    {
&lt;span style=&quot;color: green;&quot;&gt;#7 &quot;&amp;amp;&quot; is required before calling external file.&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;#Call 7za.exe to compress the whole folder. 7za command line tool needs to be downloaded and placed in system32 folder b4 hand&lt;/span&gt;
Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;host &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Starting compressiong phase. At $date .....&quot;&lt;/span&gt;
Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;host &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Compressing Recovered files from DPM Server. This will take time!&quot;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;ForeGroundColor Green
&amp;amp; 7za a &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;t7z &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;$Destination7z DPM.7z&quot;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;*&lt;/span&gt; 
Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;host &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Compression done At $date&quot;&lt;/span&gt;    
    }
Else 
    {
Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;host &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Something went wrong. You have to run 7z manually!&quot;&lt;/span&gt;  &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;ForeGroundColor Red
    }
&lt;span style=&quot;color: green;&quot;&gt;#All done exit&lt;/span&gt;
Exit
&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;You can download the ps1 version from &lt;a href=&quot;https://docs.google.com/open?id=0Bw6rDmrW2grkNjBlMzMzOGQtZmU3ZS00YjVjLThiZWMtNmMwZjczMWY3Y2I2&quot;&gt;Google Docs here&#39;s the link.&lt;/a&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/335723058208671902/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2012/01/dpm-2010-script-to-export-all.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/335723058208671902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/335723058208671902'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2012/01/dpm-2010-script-to-export-all.html' title='DPM 2010 - Script to export all recoverable item to drive'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-1089568348028223583</id><published>2011-10-26T12:00:00.000-07:00</published><updated>2012-01-16T10:02:18.316-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exchange 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="Exchange PowerShell"/><category scheme="http://www.blogger.com/atom/ns#" term="GAL"/><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><title type='text'>Exchange 2010 Gal Picture Upload Script.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Alright I been working on migrating to Exchange 2010 from Exchange 2007.&amp;nbsp; Once moved we wanted to upload the pictures for users. You can do this on Exchange 2007 not covered here though.&lt;br /&gt;
&lt;br /&gt;
I made the below script by using multiple source to compile this. Some script I found did something I liked but lacked few things so I went ahead and made my own with all thse things I needed. I am pretty new to Powershell so if you find I can improve then do let me know :)&lt;br /&gt;
&lt;br /&gt;
I added option to check if the picture is already on the user ad attribute to save time. You can disable it if you dont want that. I also used hashtable to keep a log file for successful or failed uploads of pics. &lt;br /&gt;
&lt;br /&gt;
If you have any suggestions to add to this script do let me know :)&lt;br /&gt;
&lt;br /&gt;
You probably need to change Pickup folder location which is $PicFolder&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;=============Update: 10/11/11===========&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
I did not explain what this script does&amp;nbsp;cause I thought it was pretty much straight forward cause of comments I added. But anyways I looked at the post today and thought hell it doesn&#39;t really say that this can do.&lt;br /&gt;
&lt;br /&gt;
So here it is :- (I listed it in way of&amp;nbsp;execution)&lt;br /&gt;
&lt;br /&gt;
1- Gets users from exchange with get-mailbox | foreach&lt;br /&gt;
&lt;br /&gt;
2- Create and datestamp log files with start of script. (I didnt know how to datestamp each line so had to create it head of execution of script. Maybe someone can help me out with this.&lt;br /&gt;
&lt;br /&gt;
3- Initiate Hashtables for Success Log (Slist) and Failed Log (Flist).&lt;br /&gt;
&lt;br /&gt;
4- For each users found with get-mailbox fetch $alias from it and check $alias.jpg file in pickup folder. If the pic is not there for $alias skip user. &lt;br /&gt;
&lt;br /&gt;
5- Function&amp;nbsp;ChkPic is&amp;nbsp;to check if user has picture already assigned if so skip the user. This is usefull if want to re-run this script with new pictures added to pickup folder. Method used here is Export-RecipientDataProperty with username to see if it shows something. Usually if pic is there it will show RunspaceID in the result. I using that as my ref for pic is there.&lt;br /&gt;
&lt;br /&gt;
6- Check picture file size if its less then or equal to 10k. If bigger than 10k skip user. Otherwise go ahead.&lt;br /&gt;
&lt;br /&gt;
7- So finally we reached here after all that checks YAY. Go ahead and import picture.&lt;br /&gt;
&lt;br /&gt;
8- So you remember that ChkPic (Step 5) I created? we are going to use it again to check if it uploaded the picture successfully. Does the same thing but after uploading. If it finds the pic it says all good otherwise logs it to Flist and displays error.&lt;br /&gt;
&lt;br /&gt;
9- Display information about the logs and location to user. &lt;br /&gt;
&lt;br /&gt;
10- End Script&lt;br /&gt;
&lt;br /&gt;
Please leave a comment cause sometimes I feel that no one is reading this LOL. :p anyways it comes handy for me :)&lt;br /&gt;
&lt;br /&gt;
================ImporToExCh2010=====================&lt;br /&gt;
&lt;span style=&quot;color: green;&quot;&gt;#Pickup folder for pictures. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$PicFolder&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;c:\pics&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: green;&quot;&gt;#Fetch users from Exchange&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$results&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; Get&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Mailbox | Foreach {&lt;span style=&quot;color: orangered;&quot;&gt;$_&lt;/span&gt;.alias}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: green;&quot;&gt;#DateStamp&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$Date&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;$(Get&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Date &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;format g) | add&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;content c:\ExPicSuccess.log, c:\ExPicFailed.log&lt;br /&gt;
&lt;br /&gt;&lt;span style=&quot;color: green;&quot;&gt;#Using hashtable for logs.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$Slist&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;@{} &lt;span style=&quot;color: green;&quot;&gt;#Successful Log file&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$Flist&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;@{} &lt;span style=&quot;color: green;&quot;&gt;#Failed Log File&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: green;&quot;&gt;#Function to check if pic is in user ad attr&lt;/span&gt;&lt;br /&gt;
Function ChkPic {&lt;br /&gt;
Param (&lt;span style=&quot;color: orangered;&quot;&gt;$alias&lt;/span&gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: green;&quot;&gt;#Try to see if user already has pic uploaded&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$ChkUpload&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; Export&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;RecipientDataProperty &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Identity &lt;span style=&quot;color: orangered;&quot;&gt;$alias&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Picture | out&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;string&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: green;&quot;&gt;#Match for RunspaceId in result string&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$RChk&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$ChkUpload&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-match&lt;/span&gt; &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;RunspaceId&quot;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;span style=&quot;color: green;&quot;&gt;#End Function ChkPic&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Foreach (&lt;span style=&quot;color: orangered;&quot;&gt;$alias&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$results&lt;/span&gt;)&lt;br /&gt;
{&lt;br /&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$FileLoc&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;$PicFolder\$alias.jpg&quot;&lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$FileExists&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; Test&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;path &lt;span style=&quot;color: orangered;&quot;&gt;$FileLoc&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
If (&lt;span style=&quot;color: orangered;&quot;&gt;$FileExists&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-eq&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$True&lt;/span&gt;){&lt;br /&gt;
Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;host &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;f green &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;`nPicture found for $alias....checking size...&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: green;&quot;&gt;#Check photo size if its less than 10k&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$PhotoSize&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; Get&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;ChildItem &lt;span style=&quot;color: orangered;&quot;&gt;$FileLoc&lt;/span&gt; | select Length &lt;br /&gt;
&lt;br /&gt;
If (&lt;span style=&quot;color: orangered;&quot;&gt;$PhotoSize&lt;/span&gt;.Length &lt;span style=&quot;color: grey;&quot;&gt;-le&lt;/span&gt; 10000) { Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Host &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;[Size OK]&quot;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;ForeGroundColor Green } &lt;br /&gt;
Else { &lt;br /&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$Flist&lt;/span&gt;.Add(&lt;span style=&quot;color: orangered;&quot;&gt;$alias&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Pic Size Exceeded 10k - Skipped!&quot;&lt;/span&gt;)&lt;br /&gt;
Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Host &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;[Pic Size more than 10Kb..Skipping User!]&quot;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;ForeGroundColor Red; Continue}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: green;&quot;&gt;#Precheck to make sure pic is not assigned. If assigned skip user. (You can disable this)&lt;/span&gt;&lt;br /&gt;
ChkPic &lt;span style=&quot;color: orangered;&quot;&gt;$alias&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
If (&lt;span style=&quot;color: orangered;&quot;&gt;$RChk&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-eq&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$True&lt;/span&gt;) { Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Host &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;User already has picture assigned. Skipping User! `n&quot;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;f red;Continue}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: green;&quot;&gt;#All good going ahead with uploading..&lt;/span&gt;&lt;br /&gt;
Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;host &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;f yellow &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Uploading...&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: green;&quot;&gt;#Import Picture to user ad attr&lt;/span&gt;&lt;br /&gt;
Import&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;RecipientDataProperty &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Identity &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;$alias&quot;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Picture &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;FileData `&lt;br /&gt;
(&lt;span style=&quot;color: grey;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;Byte[&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;]&lt;/span&gt;]$(Get&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Content &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Path &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;$FileLoc&quot;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Encoding Byte &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;ReadCount 0))&lt;br /&gt;
&lt;br /&gt;Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Host &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;f green &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Uploaded picture for $alias&quot;&lt;/span&gt;&lt;br /&gt;
Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;host &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;f yellow &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Checking if uploaded successfully...&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: green;&quot;&gt;#Calling ChkPic Function&lt;/span&gt;&lt;br /&gt;
ChkPic &lt;span style=&quot;color: orangered;&quot;&gt;$alias&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green;&quot;&gt;#If statement to see if value is true which means successful and false means pic attr not found.&lt;/span&gt;&lt;br /&gt;
If (&lt;span style=&quot;color: orangered;&quot;&gt;$RChk&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-eq&lt;/span&gt; &lt;span style=&quot;color: orangered;&quot;&gt;$True&lt;/span&gt;) {&lt;br /&gt;
Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Host &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;f green &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;[Uploaded Successfully] `n&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
If (&lt;span style=&quot;color: orangered;&quot;&gt;$alias&lt;/span&gt;) {&lt;span style=&quot;color: orangered;&quot;&gt;$Slist&lt;/span&gt;.Add(&lt;span style=&quot;color: orangered;&quot;&gt;$alias&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Successful&quot;&lt;/span&gt;)}&lt;br /&gt;
}&lt;br /&gt;
Else {&lt;br /&gt;
Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Host &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;f red &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;[Upload Failed]&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$Flist&lt;/span&gt;.Add(&lt;span style=&quot;color: orangered;&quot;&gt;$alias&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Upload Failed.&quot;&lt;/span&gt;)&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;Else{&lt;br /&gt;
Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;host &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;f red &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Picture not found for $alias in $PicFolder&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
If (&lt;span style=&quot;color: orangered;&quot;&gt;$alias&lt;/span&gt;) {&lt;span style=&quot;color: orangered;&quot;&gt;$Flist&lt;/span&gt;.Add(&lt;span style=&quot;color: orangered;&quot;&gt;$alias&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Picture not found.&quot;&lt;/span&gt;)}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;Host &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;f yellow &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;#Note: Logs files can be found in C: with name of ExPicSuccess.log &amp;amp; ExPicFailed.log `n&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;span style=&quot;color: green;&quot;&gt;#Add Successful list to log file&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$Slist&lt;/span&gt; | out&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;string | add&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;content c:\ExPicSuccess.log&lt;br /&gt;
Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;host &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;f green &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;`n Displaying Successful Upload Userlist `n&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$Slist&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: green;&quot;&gt;#Add Failed to log&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$Flist&lt;/span&gt; | out&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;string | add&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;content c:\ExPicFailed.log&lt;br /&gt;
Write&lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;host &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;f red &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;`n Displaying Failed Upload Userlist `n&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orangered;&quot;&gt;$Flist&lt;/span&gt;&lt;br /&gt;
=======================================================&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://docs.google.com/open?id=0Bw6rDmrW2grkNmI3ZDExZDctMjZjNi00ZTdkLWE2Y2QtMGYyZjBlMTlhZjU4&quot;&gt;Download ps1 from Google Docs&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
You can&amp;nbsp;download the ps1 incase the copy paste doesnt work. Link provided above&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/1089568348028223583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2011/10/exchange-2010-gal-picture-upload-script.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/1089568348028223583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/1089568348028223583'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2011/10/exchange-2010-gal-picture-upload-script.html' title='Exchange 2010 Gal Picture Upload Script.'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-5561824327994342042</id><published>2011-10-06T13:12:00.000-07:00</published><updated>2011-10-06T13:44:03.582-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><category scheme="http://www.blogger.com/atom/ns#" term="Remote Execute"/><title type='text'>PowerShell print server inventory script by Michel Stevelmans</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Scripts looks very interesting. I haven&#39;t tried it but will do that in awhile :)&lt;br /&gt;
--------------------------------------------------------------------------------------------&lt;br /&gt;
PowerShell script which lists all installed printers and gathers information like the printer name, driver, share name, location and the IP address (the actual IP address, not the portname without the “IP” prefix).&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img border=&quot;0&quot; height=&quot;185&quot; src=&quot;http://www.michelstevelmans.com/wp-content/uploads/2011/09/Printserver_inventory.jpg&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Print server inventory script&lt;br /&gt;
# Created by Michel Stevelmans - http://www.michelstevelmans.com&lt;br /&gt;
&lt;br /&gt;
# Set print server name&lt;br /&gt;
$Printserver = &quot;PRINTSERVER&quot;&lt;br /&gt;
&lt;br /&gt;
# Create new Excel workbook&lt;br /&gt;
$Excel = new-Object -comobject Excel.Application&lt;br /&gt;
$Excel.visible = $True&lt;br /&gt;
$Excel = $Excel.Workbooks.Add()&lt;br /&gt;
$Sheet = $Excel.Worksheets.Item(1)&lt;br /&gt;
$Sheet.Cells.Item(1,1) = &quot;Printer Name&quot;&lt;br /&gt;
$Sheet.Cells.Item(1,2) = &quot;Location&quot;&lt;br /&gt;
$Sheet.Cells.Item(1,3) = &quot;Comment&quot;&lt;br /&gt;
$Sheet.Cells.Item(1,4) = &quot;IP Address&quot;&lt;br /&gt;
$Sheet.Cells.Item(1,5) = &quot;Driver Name&quot;&lt;br /&gt;
$Sheet.Cells.Item(1,6) = &quot;Shared&quot;&lt;br /&gt;
$Sheet.Cells.Item(1,7) = &quot;Share Name&quot;&lt;br /&gt;
$intRow = 2&lt;br /&gt;
$WorkBook = $Sheet.UsedRange&lt;br /&gt;
$WorkBook.Font.Bold = $True&lt;br /&gt;
&lt;br /&gt;
# Get printer information&lt;br /&gt;
$Printers = Get-WMIObject Win32_Printer -computername $Printserver&lt;br /&gt;
foreach ($Printer in $Printers)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $Sheet.Cells.Item($intRow, 1) = $Printer.Name&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $Sheet.Cells.Item($intRow, 2) = $Printer.Location&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $Sheet.Cells.Item($intRow, 3) = $Printer.Comment&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $Ports = Get-WmiObject Win32_TcpIpPrinterPort -computername $Printserver&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach ($Port in $Ports)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($Port.Name -eq $Printer.PortName)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $Sheet.Cells.Item($intRow, 4) = $Port.HostAddress&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $Sheet.Cells.Item($intRow, 5) = $Printer.DriverName&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $Sheet.Cells.Item($intRow, 6) = $Printer.Shared&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $Sheet.Cells.Item($intRow, 7) = $Printer.ShareName&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $intRow = $intRow + 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
$WorkBook.EntireColumn.AutoFit()&lt;br /&gt;
$intRow = $intRow + 1&lt;br /&gt;
$Sheet.Cells.Item($intRow,1).Font.Bold = $True&lt;br /&gt;
$Sheet.Cells.Item($intRow,1) = &quot;Print server inventory - Created by Michel Stevelmans - http://www.michelstevelmans.com&quot;&lt;br /&gt;
&lt;br /&gt;
Source : &lt;a href=&quot;http://www.michelstevelmans.com/powershell-print-server-inventory-script/&quot;&gt;http://www.michelstevelmans.com/powershell-print-server-inventory-script/&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/5561824327994342042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2011/10/powershell-print-server-inventory.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/5561824327994342042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/5561824327994342042'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2011/10/powershell-print-server-inventory.html' title='PowerShell print server inventory script by Michel Stevelmans'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-8512163722788761827</id><published>2011-10-05T08:19:00.001-07:00</published><updated>2011-10-06T13:39:09.511-07:00</updated><title type='text'>Control Panel Shortcut</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;hr width=&quot;100%&quot; /&gt;
&lt;br /&gt;
&lt;center&gt;&lt;b&gt;Control Panel Files [CPL&#39;s]&lt;/b&gt;&lt;/center&gt;
&lt;br /&gt;
File name           Purpose 
&lt;br /&gt;
----------------------------------------------------------------------- 
&lt;br /&gt;
Access.cpl          Accessibility properties &lt;br /&gt;
Appwiz.cpl          
Add/Remove Programs properties &lt;br /&gt;
Desk.cpl              Display properties 
&lt;br /&gt;
FindFast.cpl         FindFast (included with Microsoft Office for Windows 
95) &lt;br /&gt;
Inetcpl.cpl           Internet properties &lt;br /&gt;
Intl.cpl                 
Regional Settings properties &lt;br /&gt;
Joy.cpl                 Joystick properties 
&lt;br /&gt;
Main.cpl              Mouse, Fonts, Keyboard, and Printers properties 
&lt;br /&gt;
Mlcfg32.cpl         Microsoft Exchange or Windows Messaging properties 
&lt;br /&gt;
Mmsys.cpl           Multimedia properties &lt;br /&gt;
Modem.cpl          Modem 
properties &lt;br /&gt;
Netcpl.cpl or Ncpa.cpl Network properties &lt;br /&gt;
Odbccp32.cpl       
Data Sources (32-bit ODBC, included w/ Microsoft Office) &lt;br /&gt;
Password.cpl       
Password properties &lt;br /&gt;
Sticpl.cpl              Scanners and Cameras properties 
&lt;br /&gt;
Sysdm.cpl            System properties and Add New Hardware wizard 
&lt;br /&gt;
Themes.cpl          Desktop Themes &lt;br /&gt;
TimeDate.cpl       Date/Time 
properties &lt;br /&gt;
Wgpocpl.cpl         Microsoft Mail Post Office &lt;br /&gt;
&lt;br /&gt;
&lt;hr width=&quot;100%&quot; /&gt;
&lt;br /&gt;
&lt;b&gt;How to Start Single Sections of Control Panel With a Command&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Control Panel Tool             Command 
&lt;br /&gt;
--------------------------------------------------------------- 
&lt;br /&gt;
Accessibility Options            control access.cpl &lt;br /&gt;
Add New 
Hardware             control sysdm.cpl add new hardware &lt;br /&gt;
Add/Remove 
Programs         control appwiz.cpl &lt;br /&gt;
Date/Time Properties            control 
timedate.cpl &lt;br /&gt;
Display Properties                 control desk.cpl 
&lt;br /&gt;
FindFast                               control findfast.cpl &lt;br /&gt;
Internet 
Properties                control inetcpl.cpl &lt;br /&gt;
Joystick 
Properties               control joy.cpl &lt;br /&gt;
Keyboard Properties            
control main.cpl keyboard &lt;br /&gt;
Microsoft Exchange              control 
mlcfg32.cpl &lt;br /&gt;
(or Windows Messaging) &lt;br /&gt;
Microsoft Mail Post Office   control 
wgpocpl.cpl &lt;br /&gt;
Modem Properties               control modem.cpl &lt;br /&gt;
Mouse 
Properties                 control main.cpl &lt;br /&gt;
Multimedia Properties           
control mmsys.cpl &lt;br /&gt;
Network Properties              control netcpl.cpl 
or ncpa.cpl&lt;br /&gt;
Password Properties             control password.cpl &lt;br /&gt;
PC 
Card                               control main.cpl pc card (PCMCIA) &lt;br /&gt;
Power 
Management (Windows 95)  control main.cpl power &lt;br /&gt;
Power Management (Windows 
98)  control powercfg.cpl &lt;br /&gt;
Printers Properties                  control 
main.cpl printers &lt;br /&gt;
Regional Settings                    control intl.cpl 
&lt;br /&gt;
Scanners and Cameras           control sticpl.cpl &lt;br /&gt;
Sound 
Properties                    control mmsys.cpl sounds &lt;br /&gt;
System 
Properties                   control sysdm.cpl &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/8512163722788761827/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2011/10/control-panel-shortcut.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/8512163722788761827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/8512163722788761827'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2011/10/control-panel-shortcut.html' title='Control Panel Shortcut'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-1389935172369389546</id><published>2011-09-28T14:24:00.000-07:00</published><updated>2011-09-28T14:25:21.981-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PsExec"/><category scheme="http://www.blogger.com/atom/ns#" term="PsTools"/><category scheme="http://www.blogger.com/atom/ns#" term="Remote Execute"/><title type='text'>PsTools with Powershell - Remote Execution</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
So I was tasked to remote execute an exe file on a server. &lt;br /&gt;
&lt;br /&gt;
I wanted to use PowerShell to do the whole thing but ended up using PsTools due to lack of time to explore PowerShell Remote.&lt;br /&gt;
&lt;br /&gt;
I ran into few issue. Basically when I was executing the exe file it wasn&#39;t displaying anything to the end user. After doing some research I found that exe was running but on the wrong session. For example I wanted to see the Test.exe GUI logged in as a remote user. But when I executed the psexec it ran the&amp;nbsp;Test.exe in console session id 0. My session id was 2. You can see you session by going to taskmanager and go to users tab. There you will see the session id. &lt;br /&gt;
&lt;br /&gt;
In order for me to see Test.exe GUI I had to specify the session on psexec. But problem was that every time I log into remote desktop I would get a new session id. &lt;br /&gt;
&lt;br /&gt;
So I googled it and found the solution for identifying the session id. &lt;br /&gt;
&lt;br /&gt;
So basically psexec runs a command query session and looks for session id of the user where the app should be displayed. i.e the variable $UserSession&lt;br /&gt;
&lt;br /&gt;
=======================================================================&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;strong&gt;#Make sure you change the location of PsTools exe files
below&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;strong&gt;&lt;o:p&gt;#Change following variables for your setup&lt;/o:p&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;set-alias psexec &lt;b&gt;&#39;C:\PsTools\PsExec.exe&lt;/b&gt;&#39;&amp;nbsp;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;$UsersSession = &#39;ijaved&#39; #Username of the user you want the app to show&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;$UserAdmin = &#39;admin&#39; #admin user on the remote pc&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;$AdminPass = &#39;test&#39; #pass of admin user&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;$RemotePc = &#39;\\192.168.1.128&#39; #remote pc&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;$App =&#39;C:\test.exe&#39; # App to run&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;#No need to change anything below&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;$results = &amp;amp; psexec &#39;$RemotePC&#39; -u
&#39;$UserAdmin&#39; -p &#39;$AdminPass&#39; query session&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;$id = $results | Select-String &quot;$UsersSession\s+(\w+)&quot;
| Foreach {$_.Matches[0].Groups[1].Value}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;$delay = ping 127.0.0.1 -n 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
$call = &lt;span style=&quot;font-family: Calibri;&quot;&gt;&amp;nbsp;&amp;amp; psexec &#39;$RemotePC&#39;&amp;nbsp;-u
&#39;$UserAdmin&#39; -p &#39;$AdminPass&#39; -i $id -d
&#39;$App&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;#End Script&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
=======================================================================&lt;br /&gt;
&lt;br /&gt;
I found a problem where one of the installer.exe won&#39;t run even after being called. It would come up and disappear. After trying to figure out something I got my break. I found that when psexec is executing the installer it is doing so from c:\windows\system32 folder and the installer for some stupid reason was looking for its file inside system32. Don&#39;t know why but that was the case. &lt;br /&gt;
&lt;br /&gt;
So I made a batch file which called the installer from its own folder. Basically batch file did the following :-&lt;br /&gt;
&lt;br /&gt;
cd \&lt;br /&gt;
cd &quot;c:\installerfolder\&quot;&lt;br /&gt;
c:\installerfolder\install.exe&lt;br /&gt;
&lt;br /&gt;
Hope it helps anyone out there.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/1389935172369389546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2011/09/pstools-with-powershell-remote.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/1389935172369389546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/1389935172369389546'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2011/09/pstools-with-powershell-remote.html' title='PsTools with Powershell - Remote Execution'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-81709221901342607</id><published>2011-09-28T07:46:00.000-07:00</published><updated>2011-09-28T13:08:11.655-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Windows 7"/><title type='text'>AutoLogin Win 7 - Shortcut for User Accounts Wizard on Win 7</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
From run write &lt;strong&gt;netplwiz &lt;/strong&gt;to get User Accounts wizard.&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Press the Windows key + R on your keyboard to launch the “Run” dialog box. &lt;/li&gt;
&lt;li&gt;Type in &lt;strong&gt;netpliz &lt;/strong&gt;or&lt;strong&gt; control userpasswords2&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Press Enter. The User Accounts window will display. &lt;/li&gt;
&lt;li&gt;Uncheck the option “Users must enter a user name and password to use this computer” &lt;/li&gt;
&lt;li&gt;Click “OK” &lt;/li&gt;
&lt;li&gt;You will then be prompted to enter the current password and confirm it. &lt;/li&gt;
&lt;li&gt;After doing so, you will no longer be prompted to enter your password upon login. &lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
If &amp;nbsp;Checkbox is no there then &lt;br /&gt;
&lt;br /&gt;
1. Press the Windows key + R on your keyboard to launch the “Run” dialog box. &lt;br /&gt;
2. Type regedit and hit enter to open the Registry Editor &lt;br /&gt;
3. Then browse to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon\&lt;br /&gt;
4. Set AutoAdminLogon  = 1 (create it if doesn&#39;t exist its a string variable)&lt;br /&gt;
5. Set DefaultUserName = your username (create it if doesn&#39;t exist its a string variable)&lt;br /&gt;
6. Set DefaultPassword = your password (create it if doesn&#39;t exist its a string variable)&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/81709221901342607/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2011/09/shortcut-for-user-accounts-wizard-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/81709221901342607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/81709221901342607'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2011/09/shortcut-for-user-accounts-wizard-on.html' title='AutoLogin Win 7 - Shortcut for User Accounts Wizard on Win 7'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-381239706628212606</id><published>2011-09-26T12:10:00.000-07:00</published><updated>2011-09-26T12:10:49.950-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exchange PowerShell"/><category scheme="http://www.blogger.com/atom/ns#" term="Remote Execute"/><title type='text'>Disable &amp; Enable Services for Mailbox</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
PowerShell commands to Disable mailbox level services for specificed users. Works well for Microsoft 365 Cloud.&lt;br /&gt;
&lt;br /&gt;
Disable Access to Mailbox&lt;br /&gt;
&lt;br /&gt;
#Set $member to username of the user you wan&lt;br /&gt;
$member | Set-CASMailbox -OWAEnabled $false -PopEnabled $false -ImapEnabled $false -MAPIEnabled $false -ActiveSyncEnabled $false -EwsEnabled $false&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
Get-CASMailbox $member | Select-Object Name, OWAEnabled, PopEnabled, ImapEnabled, MAPIEnabled, ActiveSyncEnabled, EwsEnabled&lt;br /&gt;
&lt;br /&gt;
==========================&lt;br /&gt;
&lt;br /&gt;
Enable Access to Mailbox&lt;br /&gt;
&lt;br /&gt;
#Set $member to username of the user you wan &lt;br /&gt;
$member | Set-CASMailbox&amp;nbsp;-OWAEnabled $true -PopEnabled $true -ImapEnabled $true -MAPIEnabled $true -ActiveSyncEnabled $true -EwsEnabled $true&lt;br /&gt;
&lt;br /&gt;
Get-CASMailbox $member | Select-Object Name, OWAEnabled, PopEnabled, ImapEnabled, MAPIEnabled, ActiveSyncEnabled, EwsEnabled &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/381239706628212606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2011/09/disable-enable-services-for-mailbox.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/381239706628212606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/381239706628212606'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2011/09/disable-enable-services-for-mailbox.html' title='Disable &amp; Enable Services for Mailbox'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-8351445058746819701</id><published>2011-09-23T14:26:00.000-07:00</published><updated>2011-09-26T07:11:29.430-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exchange PowerShell"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft Exchange"/><category scheme="http://www.blogger.com/atom/ns#" term="OnMicrosoft"/><category scheme="http://www.blogger.com/atom/ns#" term="Remote Execute"/><title type='text'>Enable / Disable Microsoft 365 ActiveSync service for users.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I am currently working on Microsoft 365 cloud exchange. I want to try out different things which will enable and disable the services for users. I found the below post which stats how to enable and disable ActiveSync for users.&lt;br /&gt;
&lt;br /&gt;
Windows Mobiles can be configured for Active Sync. Active Sync is enabled for 
all users by Default in Exchange 2007 &amp;amp; 2010. &lt;br /&gt;
&lt;br /&gt;
For Security reasons its recommended to 
disabled all users and enable only for the required users&lt;br /&gt;
&lt;br /&gt;
Below power shell enabled and disabled Active for all the users in the 
exchange Organization&lt;br /&gt;
&lt;br /&gt;
get-Mailbox -resultsize unlimited | set-CASMailbox 
-ActiveSyncEnabled:$False&lt;br /&gt;
&lt;br /&gt;
get-Mailbox -resultsize unlimited | set-CASMailbox 
-ActiveSyncEnabled:$True&lt;br /&gt;
&lt;br /&gt;
Below powershell command to enable and disable active sync for given set of 
users in the text file&lt;br /&gt;
&lt;br /&gt;
Get-content C:\users.txt | set-CASMailbox -ActiveSyncEnabled:$True&lt;br /&gt;
&lt;br /&gt;
Get-content C:\users.txt| set-CASMailbox -ActiveSyncEnabled:$False&lt;br /&gt;
&lt;br /&gt;
Source : &lt;a href=&quot;http://powershell.com/cs/forums/p/2619/3506.aspx&quot;&gt;http://powershell.com/cs/forums/p/2619/3506.aspx&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/8351445058746819701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2011/09/i-am-currently-working-on-microsoft-365.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/8351445058746819701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/8351445058746819701'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2011/09/i-am-currently-working-on-microsoft-365.html' title='Enable / Disable Microsoft 365 ActiveSync service for users.'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-7210964058650332752</id><published>2011-09-22T10:20:00.000-07:00</published><updated>2011-09-22T15:51:45.607-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="EMC"/><category scheme="http://www.blogger.com/atom/ns#" term="Exchange PowerShell"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft Exchange"/><category scheme="http://www.blogger.com/atom/ns#" term="OnMicrosoft"/><category scheme="http://www.blogger.com/atom/ns#" term="Remote management"/><title type='text'>Microsoft 365 Cloud Remote Management</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Alright so I been learning how to play with Microsoft 365. In particular management
of Exchange server via “Exchange Management Console” and “Exchange Management
Shell aka Powershell”.&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;br /&gt;
I found very amazing tutorial on &lt;a href=&quot;http://technet.microsoft.com/en-us/edge/Video/hh278971&quot;&gt;http://technet.microsoft.com/en-us/edge/Video/hh278971&lt;/a&gt;
by Naomi Alpern. I watched the whole thing since it was very interesting. But
you if you really want to skip it to fun part then skip it to 20 minutes into
to tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;o:p&gt;First of install &quot;Exchange Management Tools&quot; from Exchange 2010 Sp1 cd. I downloaded mine off microsoft. Extract the files and run the setup from run. Cmd into the folder where exchange 2010 sp1 setup file is located and write &quot;setup /R:MT&quot;&lt;/o:p&gt;&lt;br /&gt;
&lt;br /&gt;
To configure Exchange Management Console do the following steps:-&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-left: 36pt; mso-list: l0 level1 lfo1; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;From the “Exchange Management Console” right
click on “Microsoft Exchange” and click on “Add Exchange Forest…”&lt;br /&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoK07GjPR4KRXPzerlnrtl83StjEPUJtwyU58svaqaETJz1jl911JJq-zIBVhUj_m-rEYCnBT8GNAFGbwBo0ouwo50kqUAjWUj3fYniwTHvnzwpuxQ-3oCy3KYfCcRKlCMJAQV5WW6dy0M/s1600/exchange1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;189&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoK07GjPR4KRXPzerlnrtl83StjEPUJtwyU58svaqaETJz1jl911JJq-zIBVhUj_m-rEYCnBT8GNAFGbwBo0ouwo50kqUAjWUj3fYniwTHvnzwpuxQ-3oCy3KYfCcRKlCMJAQV5WW6dy0M/s400/exchange1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 10pt 36pt; mso-list: l0 level1 lfo1; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;You will be prompted with the below dialog box.
In “Specify a friendly name for this Exchange forest”. Write whatever is easy
to remember for you. I put mine as “Exchange Online”. After that make sure you
select “Exchange Online” from the drop down menu of “Specify the FQDN or URL of
the server running the Remote PowerShell instance:” Click “OK” and it will ask
you for the username and password for your Microsoft 365 account. &lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNYIp3ERunroTrpc_pPEzXjUkgJB6AWtlOOe9xShI__U22Kius5w9oiczTFOz-oczvq7saU9TGKviIWDVih08sgxe0ZN3uGw6Vkw4UDQwpkjRQZeDjv8krMM89B8DdMRF5STpawrscWN25/s1600/exchange2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;267&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNYIp3ERunroTrpc_pPEzXjUkgJB6AWtlOOe9xShI__U22Kius5w9oiczTFOz-oczvq7saU9TGKviIWDVih08sgxe0ZN3uGw6Vkw4UDQwpkjRQZeDjv8krMM89B8DdMRF5STpawrscWN25/s400/exchange2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-fareast-language: EN-CA; mso-no-proof: yes;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 10pt 36pt; mso-list: l0 level1 lfo1; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;After you put in your username and password it
will refresh the EMC and if it accepts the credentials it will list your
exchange forest in the list. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn6hhG92EJRX3oX47UcbApDHr-p9ECOze-0ryxaMVL0K-Le7v1k6_UZiBU69Mu5W9sFi_iT8Le0KgrIpXyk7MLgylCak_YYj69Yluvs42g-1nvogSv_Ad1ln54L8oOT4h4eYpKBwjM3Cok/s1600/exchange3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn6hhG92EJRX3oX47UcbApDHr-p9ECOze-0ryxaMVL0K-Le7v1k6_UZiBU69Mu5W9sFi_iT8Le0KgrIpXyk7MLgylCak_YYj69Yluvs42g-1nvogSv_Ad1ln54L8oOT4h4eYpKBwjM3Cok/s400/exchange3.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
That was the &quot;Exchange Management Console&quot; connection settings. Now for &quot;Exchange Management Shell (PowerShell)&quot;&lt;br /&gt;
&lt;br /&gt;
To connect through PowerShell use the following script&lt;br /&gt;
========================================&lt;br /&gt;
Set-ExecutionPolicy unrestricted&lt;br /&gt;
#Ask for credentials&lt;br /&gt;
$cred = Get-Credential&lt;br /&gt;
#Setup a powershell session to the Exhcange online server&lt;br /&gt;
$O365 = New-PSSession -ConfigurationName Microsoft.Exchange –ConnectionUri &lt;a href=&quot;https://ps.outlook.com/powershell&quot;&gt;https://ps.outlook.com/powershell&lt;/a&gt; -Credential $cred -Authentication Basic –AllowRedirection&lt;br /&gt;
#Import the cmdlets to your local computer&lt;br /&gt;
$importcmd = Import-PSSession $O365&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-fareast-language: EN-CA; mso-no-proof: yes;&quot;&gt;=============================================&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Update : Someone asked me to automate the username and password. So here&#39;s the script with username &amp;amp; password already added :-&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;=============================================&lt;/span&gt;&lt;br /&gt;
Set-ExecutionPolicy unrestricted&lt;br /&gt;#Change to your username of microsoft 360&amp;nbsp;below&lt;br /&gt;
$userName = &quot;&lt;a href=&quot;mailto:username@domain.onmicrosoft.com&quot;&gt;&lt;strong&gt;username@domain.onmicrosoft.com&lt;/strong&gt;&lt;/a&gt;&quot;&lt;br /&gt;
#Change yourpasswordhere with your password&lt;br /&gt;$passWord = ConvertTo-SecureString &quot;&lt;strong&gt;yourpasswordhere&lt;/strong&gt;&quot; -Force -AsPlainText&lt;br /&gt;$cred = New-Object System.Management.Automation.PSCredential($userName, $passWord)&lt;br /&gt;$O365 = New-PSSession -ConfigurationName Microsoft.Exchange –ConnectionUri &lt;a href=&quot;https://ps.outlook.com/powershell&quot;&gt;https://ps.outlook.com/powershell&lt;/a&gt; -Credential $cred -Authentication Basic –AllowRedirection&lt;br /&gt;$importcmd = Import-PSSession $O365&lt;br /&gt;========================================&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-fareast-language: EN-CA; mso-no-proof: yes;&quot;&gt;The above will connect you to your online cloud exchange server. You can test it out by running exchange commands. get-mailbox or anything else.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;That pretty much sums it up. Not much different from your local exchange server. Do keep in mind there are few settings not visible on cloud exchange server since its running multiple clients setup (hosted exchange setup).&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/7210964058650332752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2011/09/microsoft-365-cloud-remote-management.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/7210964058650332752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/7210964058650332752'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2011/09/microsoft-365-cloud-remote-management.html' title='Microsoft 365 Cloud Remote Management'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoK07GjPR4KRXPzerlnrtl83StjEPUJtwyU58svaqaETJz1jl911JJq-zIBVhUj_m-rEYCnBT8GNAFGbwBo0ouwo50kqUAjWUj3fYniwTHvnzwpuxQ-3oCy3KYfCcRKlCMJAQV5WW6dy0M/s72-c/exchange1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-8962665801236794829</id><published>2011-09-22T09:30:00.000-07:00</published><updated>2011-09-22T15:13:12.141-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Regedit"/><title type='text'>Windows Registry</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
*-*-*-*-*-*-*-*-*-*-*-*-*-*Warning*-*-*-*-*-*-*-*-*-*-*-*-*-*&lt;br /&gt;
&lt;br /&gt;
Don’t ever change a value in the registry. Ever. We know we just told you to do that, but would you jump off a cliff if we told you to? Don’t ever change a value in the registry. Don’t even say the word registry. We know a guy once who said the word registry, and three days later he was hit by a bus. True story. As a matter of fact, you shouldn’t even have a registry on your computer. If you suspect that you do have a registry on your computer, please call us and a trained professional will be dispatched to your office to remove the registry immediately. If you accidentally touch the registry, wash your hands with soap and water and call a doctor. Do not swallow the registry or get it in your eyes!&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/8962665801236794829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2011/09/windows-registry.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/8962665801236794829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/8962665801236794829'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2011/09/windows-registry.html' title='Windows Registry'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-3252478231958431372</id><published>2011-09-21T09:36:00.001-07:00</published><updated>2011-09-22T15:13:27.098-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Windows 7"/><title type='text'>Windows 7 Shortcut</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Windows 7&lt;/span&gt;&lt;/strong&gt;
&lt;br /&gt;
The → symbol stands for the right arrow key, ← for the left arrow key, etc. 
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table class=&quot;innercontent&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+&lt;i&gt;↑&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Maximize the current window&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+&lt;i&gt;↓&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;If the current window is maximized, restore it; if the current window is 
restored, minimize it&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+&lt;i&gt;←&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Dock the current window to the left half of the screen&lt;br /&gt;
*If it is already 
docked left, it is moved to the right half of the screen&lt;br /&gt;
*If it is already 
docked right, it is restored to its original size&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+&lt;i&gt;→&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Dock the current window to the right half of the screen&lt;br /&gt;
*If it is already 
docked right, it is moved to the left half of the screen&lt;br /&gt;
*If it is already 
docked left, it is restored to its original size&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+Shift+&lt;i&gt;←&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Move current window to the left monitor (with dual monitors)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+Shift+&lt;i&gt;→&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Move current window to the right monitor (with dual monitors)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+Home&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Minimize all but the current window&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+Space&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Peek at the desktop&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+[Plus sign]&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Zoom in&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+[Minus sign]&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Zoom out&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+P&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Open the projection menu (generally used for laptops connected to 
projectors)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Alt+P&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;In Explorer, show/hide the preview pane&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/&quot; name=&quot;15&quot;&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;h2&gt;

Taskbar Modifiers (New in Windows 7)&lt;/h2&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table class=&quot;innercontent&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Shift+Click&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Open a new instance of the program&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Ctrl+Click&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Cycle between windows in a group&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Middle Click&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Open a new instance of the program&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Ctrl+Shift+Click&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Open a new instance of the program as Administrator&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Shift+Right-Click&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Show window menu&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/&quot; name=&quot;20&quot;&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;h2&gt;

Managing Windows&lt;/h2&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table class=&quot;innercontent&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Alt+F4&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Close the active window&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Alt+Tab&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Switch to previous active window&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Alt+Esc&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Cycle through all open windows&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+Tab&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Flip 3D [&lt;a href=&quot;http://www.microsoft.com/windowsvista/features/default.mspx&quot;&gt;more 
info&lt;/a&gt;]&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Ctrl+Win+Tab&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Persistent Flip 3D&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+T&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Cycle through applications on taskbar (showing its live preview)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+M&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Minimize all open windows&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+Shift+M&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Undo all window minimization&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+D&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Toggle showing the desktop&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+&lt;i&gt;↑&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Maximize the current window&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+&lt;i&gt;↓&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;If the current window is maximized, restore it; if the current window is 
restored, minimize it&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+&lt;i&gt;←&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Dock the current window to the left half of the screen&lt;br /&gt;
*If it is already 
docked left, it is moved to the right half of the screen&lt;br /&gt;
*If it is already 
docked right, it is restored to its original size&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+&lt;i&gt;→&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Dock the current window to the right half of the screen&lt;br /&gt;
*If it is already 
docked right, it is moved to the left half of the screen&lt;br /&gt;
*If it is already 
docked left, it is restored to its original size&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+Shift+&lt;i&gt;←&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Move current window to the left monitor (with dual monitors)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+Shift+&lt;i&gt;→&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Move current window to the right monitor (with dual monitors)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+Home&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Minimize all but the current window&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+Space&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Peek at the desktop&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+[Plus sign]&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Zoom in&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+[Minus sign]&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Zoom out&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/&quot; name=&quot;25&quot;&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;h2&gt;

Starting Programs&lt;/h2&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table class=&quot;innercontent&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+1&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Open the first program on your Quick Launch bar&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+2&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Open the second program on your Quick Launch bar&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+&lt;i&gt;n&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Open the &lt;i&gt;n&lt;/i&gt;th program on your Quick Launch bar&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+U&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Open the ease of access center&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+F&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Open the search window&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+X&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Open the Mobility Center&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+E&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Open Explorer&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+R&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Open the Run window [&lt;a href=&quot;http://productivity.ben61a.com/windows/run.php&quot;&gt;more info&lt;/a&gt;]&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+B&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Move focus to notification tray (the right-most portion of the 
taskbar)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+P&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Open the projection menu (generally used for laptops connected to 
projectors)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+Pause&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Open the System Properties portion from the Control Panel&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Ctrl+Shift+Esc&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Open Windows Task Manager&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/&quot; name=&quot;30&quot;&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;h2&gt;

Logging In And Out&lt;/h2&gt;
&lt;br /&gt;
While the below shortcuts seem unwieldy because of their length, they&#39;re 
quite easy to remember once you try them out a few times. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table class=&quot;innercontent&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win, &lt;i&gt;→&lt;/i&gt;, Enter&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Shutdown&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win, &lt;i&gt;→, →&lt;/i&gt;, R&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Restart&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win, &lt;i&gt;→, →&lt;/i&gt;, S&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Sleep&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win, &lt;i&gt;→, →&lt;/i&gt;, W&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Switch Users&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Win+L&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Locks computer&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/&quot; name=&quot;40&quot;&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;h2&gt;

Viewing Folders With Explorer&lt;/h2&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table class=&quot;innercontent&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Alt+&lt;i&gt;←&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Go back&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Alt+&lt;i&gt;→&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Go forward&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Alt+&lt;i&gt;↑&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Go up a directory&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Alt+D&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Move focus to address bar&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Alt+D, Tab&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Move focus to search bar&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Alt+Enter&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Open the Properties window of the current selection&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Ctrl+Mousewheel&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Change the view type (extra large, small, list view, detail, etc.)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class=&quot;shortcut&quot;&gt;Alt+P&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Show/hide the preview pane&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/3252478231958431372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2011/09/windows-7-shortcut.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/3252478231958431372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/3252478231958431372'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2011/09/windows-7-shortcut.html' title='Windows 7 Shortcut'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-936229334060465945</id><published>2011-09-13T14:43:00.000-07:00</published><updated>2011-09-22T15:13:37.661-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Windows 7"/><title type='text'>Useful Net commands - Don`t need admin rights to run these.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I just love using Net commands to get list of users or password expiry dates for users. &lt;br /&gt;
&lt;br /&gt;
Run the following command to get all the data for&amp;nbsp;that specific user on domain&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;strong&gt;net user username /domain&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Result :-&lt;br /&gt;
&lt;br /&gt;
C:\Users\ijaved&amp;gt;&lt;strong&gt;net user ijaved /domain&lt;/strong&gt;The request will be processed at a domain controller for domain test.local.&lt;br /&gt;
User name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ijaved&lt;br /&gt;
Full Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i Javed&lt;br /&gt;
Comment&lt;br /&gt;
User&#39;s comment&lt;br /&gt;
Country code&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 000 (System Default)&lt;br /&gt;
Account active&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes&lt;br /&gt;
Account expires&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Never&lt;br /&gt;
Password last set&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 04/07/2011 9:14:48 AM&lt;br /&gt;
Password expires&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02/10/2011 9:14:48 AM&lt;br /&gt;
Password changeable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 04/07/2011 9:14:48 AM&lt;br /&gt;
Password required&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes&lt;br /&gt;
User may change password&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes&lt;br /&gt;
Workstations allowed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; All&lt;br /&gt;
Logon script&lt;br /&gt;
User profile&lt;br /&gt;
Home directory&lt;br /&gt;
Last logon&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13/09/2011 5:03:59 PM&lt;br /&gt;
Logon hours allowed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; All&lt;br /&gt;
Local Group Memberships&lt;br /&gt;
Global Group memberships&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Employees&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Domain Users&lt;br /&gt;
The command completed successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;net group&amp;nbsp;/domain&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
This will list all the groups in your domain. &lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;net group &quot;groupname&quot; /domain&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
This will list users inside&amp;nbsp;specified&amp;nbsp;group name.&lt;br /&gt;
&lt;br /&gt;
* I love these commands because they do not require admin rights. You can run them as normal users and still get the useful information you probably didn`t have access to :)&lt;br /&gt;
&lt;br /&gt;
Additional Commands can be found at : &lt;a href=&quot;http://www.petri.co.il/list_all_users_and_groups_in_domain.htm&quot;&gt;http://www.petri.co.il/list_all_users_and_groups_in_domain.htm&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/936229334060465945/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2011/09/useful-net-commands-dont-need-admin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/936229334060465945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/936229334060465945'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2011/09/useful-net-commands-dont-need-admin.html' title='Useful Net commands - Don`t need admin rights to run these.'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-8819557765984019843</id><published>2011-09-09T11:34:00.000-07:00</published><updated>2011-09-22T15:13:53.155-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Windows 7"/><title type='text'>Windows 7 / 2008 shortcut for settings</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I hate clicking my way to network settings so found the shortcut.. from run write &lt;strong&gt;ncpa.cpl &lt;/strong&gt;that will open network connections. &lt;br /&gt;
&lt;br /&gt;
Also you can open firewall settings by opening &lt;strong&gt;firewall.cpl&lt;/strong&gt; from run.&lt;br /&gt;
&lt;br /&gt;
So here&#39;s the quick list :-&lt;br /&gt;
&lt;br /&gt;
Network Connections = &lt;strong&gt;ncpa.cpl&lt;/strong&gt;&lt;br /&gt;
Firewall Settings = &lt;strong&gt;firewall.cpl&lt;/strong&gt;&lt;br /&gt;
Device Management = &lt;strong&gt;devmgmt.msc&lt;/strong&gt;&lt;br /&gt;
Disk Management = &lt;strong&gt;diskmgmt.msc&lt;/strong&gt;&lt;br /&gt;
Services = &lt;strong&gt;services.msc&lt;/strong&gt;&lt;br /&gt;
Remote Desktop client = &lt;strong&gt;mstsc&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;If you know any good ones please leave a comment and I will add it up in ths list :)&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/8819557765984019843/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2011/09/windows-7-2008-shortcut-for-network.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/8819557765984019843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/8819557765984019843'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2011/09/windows-7-2008-shortcut-for-network.html' title='Windows 7 / 2008 shortcut for settings'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-94547187119987859</id><published>2011-09-09T11:12:00.000-07:00</published><updated>2011-09-22T15:14:17.909-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="GAL"/><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint"/><title type='text'>Export GAL details to CSV</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Segoe UI;&quot;&gt;&lt;strong&gt;CSVDE -f GalDump.csv -r objectCategory=person -l 
&quot;displayName, title, telephoneNumber, department, mail&lt;/strong&gt;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Segoe UI;&quot;&gt;Works on Windows 2008 R2 Server with AD. Might come in handy to make SharePoint Contact list by importing this csv. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
It exports to the same folder you are in on cmd. Filename will be GalDump.csv&lt;br /&gt;
&lt;br /&gt;
Source: &lt;a href=&quot;http://smtp25.blogspot.com/2010/05/how-to-dumpexport-gal-to-csv-file.html&quot;&gt;http://smtp25.blogspot.com/2010/05/how-to-dumpexport-gal-to-csv-file.html&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/94547187119987859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2011/09/export-gal-details-to-csv.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/94547187119987859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/94547187119987859'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2011/09/export-gal-details-to-csv.html' title='Export GAL details to CSV'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-4452153873482453447</id><published>2011-08-31T12:25:00.000-07:00</published><updated>2011-09-22T15:14:29.751-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>Changing authentication mode for Sql Server express edition</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
One way of doing it is through sql server management studio explained over here&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms188670.aspx&quot; target=&quot;_blank&quot; title=&quot;Login&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;http://msdn.microsoft.com/en-us/library/ms188670.aspx&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
But if you haven’t installed the management studio than in that case you need to make following change in the registry&lt;br /&gt;
&lt;br /&gt;
HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Microsoft SQL server / MSSQL.1/ MSSQLSERVER/ LoginMode&lt;br /&gt;
&lt;br /&gt;
Click on it change it’s value from 1 to 2.&lt;br /&gt;
&lt;br /&gt;
Then Restart your sql server service !!!&lt;br /&gt;
&lt;br /&gt;
After you have done this you need to enable you sa account for sql server authentication for this follow these steps&lt;br /&gt;
&lt;br /&gt;
1) Open SQL Server Management Studio Express and Login&lt;br /&gt;
2) In Object Explorer, click Security followed by Logins&lt;br /&gt;
3) Right click sa user and select Properties.&lt;br /&gt;
4) Uncheck Enforce password policy&lt;br /&gt;
5) Select Status. Click the Grant and Enabled radio buttons. Click OK&lt;br /&gt;
6) Restart your database server and select restart.&lt;br /&gt;
&lt;br /&gt;
That’s it&lt;br /&gt;
&lt;br /&gt;
Source : &lt;a href=&quot;http://nishantrana.wordpress.com/2009/01/07/changing-authentication-mode-for-sql-server-express-edtion/&quot;&gt;http://nishantrana.wordpress.com/2009/01/07/changing-authentication-mode-for-sql-server-express-edtion/&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/4452153873482453447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2011/08/changing-authentication-mode-for-sql.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/4452153873482453447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/4452153873482453447'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2011/08/changing-authentication-mode-for-sql.html' title='Changing authentication mode for Sql Server express edition'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7587624246230000886.post-6558372256410739319</id><published>2011-08-30T14:42:00.000-07:00</published><updated>2011-08-30T14:42:18.365-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PsExec"/><category scheme="http://www.blogger.com/atom/ns#" term="PsTools"/><category scheme="http://www.blogger.com/atom/ns#" term="Remote Execute"/><title type='text'>PsTools - Executing Program on a remote windows 7 machine.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;I could execute the program but it was running in the background. After&amp;nbsp;troubleshooting&amp;nbsp;figured out that you&amp;nbsp;need to put the sessionid to make sure it&amp;nbsp;displays for the user.&lt;br /&gt;
&lt;br /&gt;
psexec -s -d -i 2 &lt;a href=&quot;file://win7vm/&quot;&gt;\\win7vm&lt;/a&gt; -u &quot;ijaved&quot; -p &quot;***&quot;&amp;nbsp; &quot;calc.exe&quot;&lt;br /&gt;
&lt;br /&gt;
The number 2 above identified my session which was RDP. You can find the sessionid via taskmanager. &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usyse.blogspot.com/feeds/6558372256410739319/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://usyse.blogspot.com/2011/08/pstools-executing-program-on-remote.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/6558372256410739319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7587624246230000886/posts/default/6558372256410739319'/><link rel='alternate' type='text/html' href='http://usyse.blogspot.com/2011/08/pstools-executing-program-on-remote.html' title='PsTools - Executing Program on a remote windows 7 machine.'/><author><name>ijaved</name><uri>http://www.blogger.com/profile/07736470488275471952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>