<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Powershell - How do I format my script? in Digital Exchange</title>
    <link>https://community.blueprism.com/t5/Digital-Exchange/Powershell-How-do-I-format-my-script/m-p/98658#M3120</link>
    <description>&lt;P&gt;Hello &lt;A class="user-content-mention" data-sign="@" data-contactkey="b87b8a8c-dc66-4e4b-b4b1-018b596e6ce8" data-tag-text="@Chris Brown" href="https://community.blueprism.com/network/profile?UserKey=b87b8a8c-dc66-4e4b-b4b1-018b596e6ce8" data-itemmentionkey="b6b11fcd-95cb-4be2-ab7e-b50fea16ff6b"&gt;@Chris Brown&lt;/A&gt;!&lt;/P&gt;
&lt;P&gt;How are you getting on with this? I'm going to move your question over to the Digital Exchange Community as the Powershell VBO is supported primarily through that space. I'll also bump it to the top for you to see if we can get some of our code pros on the case.&lt;/P&gt;
&lt;P&gt;Good question!&lt;/P&gt;</description>
    <pubDate>Thu, 26 Oct 2023 14:48:44 GMT</pubDate>
    <dc:creator>Michael_S</dc:creator>
    <dc:date>2023-10-26T14:48:44Z</dc:date>
    <item>
      <title>Powershell - How do I format my script?</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Powershell-How-do-I-format-my-script/m-p/98657#M3119</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;How do I format my script that I have to run within the Powershell object?&amp;nbsp;&lt;BR /&gt;I have one data item I wish to use [User Logon Name] and this needs to be used in the script to generate the Remote Mailbox, and set a locale.&lt;/P&gt;
&lt;P&gt;I'm not sure how to format the code to ensure that it works and what needs to wrap around the [User Logon Name].&lt;/P&gt;
&lt;PRE class="language-csharp"&gt;&lt;CODE&gt;$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri &lt;A href="http://EXCH-01/PowerShell/" target="test_blank"&gt;http://EXCH-01/PowerShell/&lt;/A&gt;
Import-PSSession $Session -AllowClobber -DisableNameChecking | Out-Null

Set-ADServerSettings -ViewEntireForest $true

cls

Enable-RemoteMailbox -Identity [User Logon Name] -Alias [User Logon Name] -RemoteRoutingAddress "[User Logon Name]@domain.mail.onmicrosoft.com"
Set-ADUser -identity [User Logon Name] -replace @{ 'preferredlanguage' = 'en-GB'}

Remove-PSSession $Session&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks, Chris&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 12:03:26 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Powershell-How-do-I-format-my-script/m-p/98657#M3119</guid>
      <dc:creator>chrisbrownnsft</dc:creator>
      <dc:date>2023-10-23T12:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell - How do I format my script?</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Powershell-How-do-I-format-my-script/m-p/98658#M3120</link>
      <description>&lt;P&gt;Hello &lt;A class="user-content-mention" data-sign="@" data-contactkey="b87b8a8c-dc66-4e4b-b4b1-018b596e6ce8" data-tag-text="@Chris Brown" href="https://community.blueprism.com/network/profile?UserKey=b87b8a8c-dc66-4e4b-b4b1-018b596e6ce8" data-itemmentionkey="b6b11fcd-95cb-4be2-ab7e-b50fea16ff6b"&gt;@Chris Brown&lt;/A&gt;!&lt;/P&gt;
&lt;P&gt;How are you getting on with this? I'm going to move your question over to the Digital Exchange Community as the Powershell VBO is supported primarily through that space. I'll also bump it to the top for you to see if we can get some of our code pros on the case.&lt;/P&gt;
&lt;P&gt;Good question!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 14:48:44 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Powershell-How-do-I-format-my-script/m-p/98658#M3120</guid>
      <dc:creator>Michael_S</dc:creator>
      <dc:date>2023-10-26T14:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell - How do I format my script?</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Powershell-How-do-I-format-my-script/m-p/98659#M3121</link>
      <description>&lt;P&gt;Find and replace your variables before you run the script?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simple Example&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35917.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35934i4BF3EE6A493562C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="35917.png" alt="35917.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 12:39:26 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Powershell-How-do-I-format-my-script/m-p/98659#M3121</guid>
      <dc:creator>mat-tvp</dc:creator>
      <dc:date>2023-10-27T12:39:26Z</dc:date>
    </item>
  </channel>
</rss>

