# Read the Powershell commands in a Provisioning

**URL:** <https://developer.sailpoint.com/discuss/t/read-the-powershell-commands-in-a-provisioning/15194>\
**Category:** IIQ Discussion and Questions\
**Tags:** identityiq, provisioning\
**Created:** [July 27, 2023, 9:36am UTC](https://developer.sailpoint.com/discuss/t/read-the-powershell-commands-in-a-provisioning/15194 "2023-07-27T09:36:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Remold](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/remold/32/3275_2.png) [@Remold](https://developer.sailpoint.com/discuss/u/Remold)\
**Post date:** [July 27, 2023, 1:33pm UTC](https://developer.sailpoint.com/discuss/t/read-the-powershell-commands-in-a-provisioning/15194/2 "2023-07-27T13:33:32Z")

</div>

Hi Guilherme,

I can not provide a direct answer to your question, but we have been using our own powershell script to perform the same.  
The main reason we used our own PowerShell script as changing a primary email-address requires to turn off the EmailAddressPolicy on Exchange online. Which is not done using the ‘normal’ commands used by the IQService.

```auto
Set-RemoteMailbox $UserPrincipalName -ErrorAction Stop -EmailAddressPolicyEnabled:$FALSE

```

For some hints take a look at:

- [Running Powershell directly via the IQService - Compass](https://community.sailpoint.com/t5/IdentityIQ-Wiki/Running-Powershell-directly-via-the-IQService/ta-p/146530)
- [Issues running Remote powershell after upgrading from 8.0-\>8.3p3](https://developer.sailpoint.com/discuss/t/issues-running-remote-powershell-after-upgrading-from-8-0-8-3p3/14209)

If you have additional questions, we are here to help 🙂

– Remold

---

_[View the full topic](https://developer.sailpoint.com/discuss/t/read-the-powershell-commands-in-a-provisioning/15194)._
