<?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 1.3.1 VBO - Unable to execute Get-ADUser command in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/PowerShell-1-3-1-VBO-Unable-to-execute-Get-ADUser-command/m-p/90048#M40340</link>
    <description>&lt;P&gt;Hello, ask them to check if the security option "Prevent access to command prompt" is enabled.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="24152.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/24288iDB124619ED2466F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="24152.png" alt="24152.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Steps : &lt;A href="https://youtu.be/pe6u_XacNbU" target="test_blank"&gt;https://youtu.be/pe6u_XacNbU&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Leonardo Soares&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Tue, 12 Sep 2023 13:01:00 GMT</pubDate>
    <dc:creator>LeonardoSQueiroz</dc:creator>
    <dc:date>2023-09-12T13:01:00Z</dc:date>
    <item>
      <title>PowerShell 1.3.1 VBO - Unable to execute Get-ADUser command</title>
      <link>https://community.blueprism.com/t5/Product-Forum/PowerShell-1-3-1-VBO-Unable-to-execute-Get-ADUser-command/m-p/90042#M40334</link>
      <description>&lt;P&gt;Hi Team, We have a requirement where with user email id we need to know whether he is an active user in organization or user left the organization. In order to do that we are using powershell Get -ADUser commands.&lt;/P&gt;
&lt;P&gt;When i pass only powershell script in "PowerShellScriptCode" variable we are not getting any output or no error too. Manually the same script is working fine&lt;/P&gt;
&lt;P&gt;Sample - &lt;SPAN&gt;&lt;SPAN class="ui-provider ep bkb bhl bkc bkd bke bkf bkg bkh bki bkj bkk bkl bkm bkn bko bkp bkq bkr bks bkt bku bkv bkw bkx bky bkz bla blb blc bld ble blf blg blh" dir="ltr"&gt;Get-ADUser -property manager, department -Filter {EmailAddress -like "user@xyz.com"}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Please let us know if you have faced this issue or is there any better way to handle this scenario. Thanks in Advance&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;sai bhargava raja&lt;BR /&gt;Consultant&lt;BR /&gt;Deloitte&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 11:38:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/PowerShell-1-3-1-VBO-Unable-to-execute-Get-ADUser-command/m-p/90042#M40334</guid>
      <dc:creator>sai_bhargavaraj</dc:creator>
      <dc:date>2023-09-11T11:38:00Z</dc:date>
    </item>
    <item>
      <title>RE: PowerShell 1.3.1 VBO - Unable to execute Get-ADUser command</title>
      <link>https://community.blueprism.com/t5/Product-Forum/PowerShell-1-3-1-VBO-Unable-to-execute-Get-ADUser-command/m-p/90043#M40335</link>
      <description>&lt;P&gt;Hi &lt;A id="MainCopy_ctl11_ucMessageList_rptMessageList_ProfileImageDisplay_0_NameLink_0" biobubblekey="6c265991-20d8-4d0b-8318-1b05e02ce027" href="https://community.blueprism.com/network/profile?UserKey=6c265991-20d8-4d0b-8318-1b05e02ce027" target="_blank" rel="noopener"&gt;sai bhargava raja&lt;/A&gt; - Just to understand this bit more - are you able to run any other powershell script files ?and when you say you were able to run it manually was it inside your robot's environment or your primary account?&lt;/P&gt;
&lt;P&gt;I did try running a sample powershell script by just placing the file path in the "Test Script" and using the "Run Script" action and it ran successfully.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="24145.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/24274iE3C15349C7C7E6B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="24145.png" alt="24145.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kindly up vote this as "Best Answer" if it adds value or resolves your query in anyway possible, happy to help.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Mukesh Kumar - Senior Automation Developer&lt;BR /&gt;&lt;BR /&gt;NHS, England, United Kingdom, GB&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Sep 2023 15:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/PowerShell-1-3-1-VBO-Unable-to-execute-Get-ADUser-command/m-p/90043#M40335</guid>
      <dc:creator>Mukeshh_k</dc:creator>
      <dc:date>2023-09-11T15:46:00Z</dc:date>
    </item>
    <item>
      <title>RE: PowerShell 1.3.1 VBO - Unable to execute Get-ADUser command</title>
      <link>https://community.blueprism.com/t5/Product-Forum/PowerShell-1-3-1-VBO-Unable-to-execute-Get-ADUser-command/m-p/90044#M40336</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Hello Sai, I carried out the test and it was successful based on the information provided.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Check:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;1. Security settings that may impact script execution.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;2. Parameters based on Mukesh's screenshot&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Leonardo Soares&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Sep 2023 23:20:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/PowerShell-1-3-1-VBO-Unable-to-execute-Get-ADUser-command/m-p/90044#M40336</guid>
      <dc:creator>LeonardoSQueiroz</dc:creator>
      <dc:date>2023-09-11T23:20:00Z</dc:date>
    </item>
    <item>
      <title>RE: PowerShell 1.3.1 VBO - Unable to execute Get-ADUser command</title>
      <link>https://community.blueprism.com/t5/Product-Forum/PowerShell-1-3-1-VBO-Unable-to-execute-Get-ADUser-command/m-p/90045#M40337</link>
      <description>&lt;P&gt;Thank You for the response Mukesh.&lt;BR /&gt;Actually i'm using powershell for the first time, please excuse me if my query is not clear.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;1.I'm just passing my sample query in "PowerShell Script Code" and not passing any filename or other parameters in Run Script action.&lt;/P&gt;
&lt;P&gt;2.Yes when i say manually, i'm able to execute the query/commands in my bot local environment.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Also if you are able to run below command, can you please guide me with few more details/screenshots of it?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sample -&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider ep bkb bhl bkc bkd bke bkf bkg bkh bki bkj bkk bkl bkm bkn bko bkp bkq bkr bks bkt bku bkv bkw bkx bky bkz bla blb blc bld ble blf blg blh" dir="ltr"&gt;Get-ADUser -property manager, department -Filter {EmailAddress -like "user@xyz.com"}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider ep bkb bhl bkc bkd bke bkf bkg bkh bki bkj bkk bkl bkm bkn bko bkp bkq bkr bks bkt bku bkv bkw bkx bky bkz bla blb blc bld ble blf blg blh" dir="ltr"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider ep bkb bhl bkc bkd bke bkf bkg bkh bki bkj bkk bkl bkm bkn bko bkp bkq bkr bks bkt bku bkv bkw bkx bky bkz bla blb blc bld ble blf blg blh" dir="ltr"&gt;Thanks in advance&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;sai bhargava raja&lt;BR /&gt;Consultant&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 05:59:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/PowerShell-1-3-1-VBO-Unable-to-execute-Get-ADUser-command/m-p/90045#M40337</guid>
      <dc:creator>sai_bhargavaraj</dc:creator>
      <dc:date>2023-09-12T05:59:00Z</dc:date>
    </item>
    <item>
      <title>RE: PowerShell 1.3.1 VBO - Unable to execute Get-ADUser command</title>
      <link>https://community.blueprism.com/t5/Product-Forum/PowerShell-1-3-1-VBO-Unable-to-execute-Get-ADUser-command/m-p/90046#M40338</link>
      <description>&lt;P&gt;Thank you for the response, Leonardo. Can you please provide some more details on the security settings which you mentioned. I will check with my application support team.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;sai bhargava raja&lt;BR /&gt;Consultant&lt;BR /&gt;Deloitte&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 06:01:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/PowerShell-1-3-1-VBO-Unable-to-execute-Get-ADUser-command/m-p/90046#M40338</guid>
      <dc:creator>sai_bhargavaraj</dc:creator>
      <dc:date>2023-09-12T06:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: PowerShell 1.3.1 VBO - Unable to execute Get-ADUser command</title>
      <link>https://community.blueprism.com/t5/Product-Forum/PowerShell-1-3-1-VBO-Unable-to-execute-Get-ADUser-command/m-p/90047#M40339</link>
      <description>&lt;P&gt;&lt;A id="MainCopy_ctl11_ucMessageList_rptMessageList_ProfileImageDisplay_2_NameLink_2" biobubblekey="6c265991-20d8-4d0b-8318-1b05e02ce027" href="https://community.blueprism.com/network/profile?UserKey=6c265991-20d8-4d0b-8318-1b05e02ce027" target="_blank" rel="noopener"&gt;sai bhargava raja&lt;/A&gt; - I cannot run AD Module as its not available in my machine and if you have it you can customise your script to fetch data from list of email ids in CSV and write back the results to a Text/CSV file as well - Just for testing refer below screenshots for one of other script file I am using -&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;I would run my powershell scripts by giving the path of my script file with extension as .ps1 (write the script in notepad and save it with extension as .ps1) - powershell script that I have with me as sample script below is for toggling the caps lock on if its off) -&lt;/P&gt;
&lt;P&gt;Script:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: rgb(35, 111, 161);"&gt;if ([console]::CapsLock -ne 'True')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: rgb(35, 111, 161);"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: rgb(35, 111, 161);"&gt;&amp;nbsp; &amp;nbsp; $wsh = New-Object -ComObject WScript.Shell;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: rgb(35, 111, 161);"&gt;&amp;nbsp; &amp;nbsp; $wsh.SendKeys('{CAPSLOCK}')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: rgb(35, 111, 161);"&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="24148.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/24278i85D67EFB4AD5D262/image-size/large?v=v2&amp;amp;px=999" role="button" title="24148.png" alt="24148.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Params for Run Script :&lt;/P&gt;
&lt;P&gt;[PowerShellScriptCode] : Get-CimInstance -ClassName Win32_ComputerSystem&lt;/P&gt;
&lt;P&gt;[Test Script] : Path of your .ps1 file&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="24149.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/24281i93E6297C8E98BA28/image-size/large?v=v2&amp;amp;px=999" role="button" title="24149.png" alt="24149.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="24150.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/24282i6A33DA48C5D3CA17/image-size/large?v=v2&amp;amp;px=999" role="button" title="24150.png" alt="24150.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kindly up vote this as "Best Answer" if it adds value or resolves your query in anyway possible, happy to help.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Mukesh Kumar - Senior Automation Developer&lt;BR /&gt;&lt;BR /&gt;NHS, England, United Kingdom, GB&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Sep 2023 09:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/PowerShell-1-3-1-VBO-Unable-to-execute-Get-ADUser-command/m-p/90047#M40339</guid>
      <dc:creator>Mukeshh_k</dc:creator>
      <dc:date>2023-09-12T09:25:00Z</dc:date>
    </item>
    <item>
      <title>RE: PowerShell 1.3.1 VBO - Unable to execute Get-ADUser command</title>
      <link>https://community.blueprism.com/t5/Product-Forum/PowerShell-1-3-1-VBO-Unable-to-execute-Get-ADUser-command/m-p/90048#M40340</link>
      <description>&lt;P&gt;Hello, ask them to check if the security option "Prevent access to command prompt" is enabled.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="24152.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/24288iDB124619ED2466F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="24152.png" alt="24152.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Steps : &lt;A href="https://youtu.be/pe6u_XacNbU" target="test_blank"&gt;https://youtu.be/pe6u_XacNbU&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Leonardo Soares&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Sep 2023 13:01:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/PowerShell-1-3-1-VBO-Unable-to-execute-Get-ADUser-command/m-p/90048#M40340</guid>
      <dc:creator>LeonardoSQueiroz</dc:creator>
      <dc:date>2023-09-12T13:01:00Z</dc:date>
    </item>
  </channel>
</rss>

