Exchange Server 2010 Command power shell problem after windows updated

Always show up message box " Open With "  - choose the program you want to use to open this file :

when i running this command :

[PS] C:\Windows\system32>Remove-Mailbox -Database "MDatabase 1533988578" -StoreMailboxIdentity "cadf0e59-1c32-427b-b6e2-
dfce22b4eb58"

Dear Moderator,

Please allow me tempprary access to upload small screen shot picture

Regards,

Wahyu

June 17th, 2015 9:07am

Hi Wahyu,

Check the properties of Exchange Management Shell Icon. The 'Target' filed should show as

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command ". 'C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto

If not, edit it correctly.

Second thing, you should be able to upload picture as shown below: Click on Insert image and upload the picture required. If this is not properly working on your computer, use a different browser and check it again. It can an issue with your computer/browser

Free Windows Admin Tool Kit Click here and download it now
June 17th, 2015 10:31am

Hi Philip,

This is my shortcut properties , everything normal :

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command ". 'C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto"

the other command running well :

disable-mailbox ..., get-mailbox .....just fine.

just this command after windows update have problem:

PS] C:\Windows\system32>Remove-Mailbox -Database "MDatabase 1533988578" -StoreMailboxIdentity cadf0e59-1c32-427b-b6e2-dfce22b4eb58

When i want upload image, message box appear " Body text cannot contain images or links until we are able to verify you account"

i have try with two browser IE and Firefox, just same.

Regards,

Wahyu


  • Edited by Wahyu W Thursday, June 18, 2015 1:16 AM update
June 18th, 2015 1:10am

Hey Wahwy,

Instead of the cmdlet you mentioned, use the following and see how it is working

Remove-StoreMailbox -Database "MDatabase 1533988578" -Identity "cadf0e59-1c32-427b-b6e2-dfce22b4eb58" -MailboxState SoftDeleted

Inorder to upload image, you have to verify the Microsoft account you use to login the TechNet Forums. Go to the mail account and see there any activation email has been generated and follow it accordingly. Else, try for sending activation steps again?

Free Windows Admin Tool Kit Click here and download it now
June 18th, 2015 2:33am

Hi,

[PS] C:\Windows\system32>Get-MailboxStatistics -Database "MDatabase 1533988578" | Where-Object {$_
ke $NULL} | FL DisplayName, DisconnectDate, MailboxGuid


DisplayName    : Jarod Trusatmoko
DisconnectDate : 6/17/2015 9:07:24 AM
MailboxGuid    : cadf0e59-1c32-427b-b6e2-dfce22b4eb58



[PS] C:\Windows\system32>Remove-StoreMailbox -Database "MDatabase 1533988578" -Identity "cadf0e59-
4eb58" -MailboxState SoftDeleted
The operation could not be performed because mailbox cadf0e59-1c32-427b-b6e2-dfce22b4eb58 was in s
is different from the requested state SoftDeleted.
    + CategoryInfo          : InvalidArgument: (cadf0e59-1c32-427b-b6e2-dfce22b4eb58:StoreMailboxI
   StoreMailbox], UnexpectedRemov...manentException
    + FullyQualifiedErrorId : B5E42343,Microsoft.Exchange.Management.StoreTasks.RemoveStoreMailbox

[PS] C:\Windows\system32>

Regards,

Wahyu

June 18th, 2015 2:59am

Dear All,

I have problem with Exchange command shell :

Remove-Mailbox -Database "MDatabase 1533988578" -StoreMailboxIdentity "cadf0e59-1c32-427b-b6e2-xxxxx.

This command not run after the server updated with several security .net update and windows updated,which update number make this command failed ?

This is last month update :

- Cumulative Security Update for Internet Explorer 9 for Windows Server 2008 R2 x64 Edition (KB3049563)
- Update for Windows Server 2008 R2 x64 Edition (KB3020369)
- Security Update for Microsoft .NET Framework 3.5.1 on Windows 7 and Windows Server 2008 R2 SP1 for x64-based Systems (KB3048070)
- Security Update for Windows Server 2008 R2 x64 Edition (KB3051768) - Security Update for Windows Server 2008 R2 x64 Edition (KB3061518)
- Security Update for Microsoft .NET Framework 3.5.1 on Windows 7 and Windows Server 2008 R2 SP1 for x64-based Systems (KB3023215)
- Security Update for Microsoft .NET Framework 3.5.1 on Windows 7 and
- Windows Server 2008 R2 SP1 for x64-based Systems (KB3032655)
- Security Update for Windows Server 2008 R2 x64 Edition (KB3045171) - Security Update for Windows Server 2008 R2 x64 Edition (KB3055642)
- Security Update for Microsoft .NET Framework 4 on Windows Server 2003, Vista, Windows 7, Server 2008, Server 2008 R2 x64 (KB3032662)
- Security Update for Windows Server 2008 R2 x64 Edition (KB3055642)

- Security Update               KB3023215
- Security Update               KB3032655
- Security Update               KB3023215                                                     
- Security Update               KB3032655               
- Security Update               KB3045171               
- Security Update               KB3048070                                                      
- Security Update               KB3049563                                                      
- Security Update               KB3051768                                                      
- Security Update               KB3055642                                                      
- Security Update               KB3061518    

Regards,

Wahyu

Free Windows Admin Tool Kit Click here and download it now
June 18th, 2015 3:24am

Hi Wahyu,

Can you give more details like error message you gets when you run the PS cmdlet? It can be related a different issue also

June 18th, 2015 3:33am

Hi Wahyu,

The error message clearly says that the mailbox you tried to remove is not in 'SoftDeleted' state. change the switch to 'Disabled' and try again

Free Windows Admin Tool Kit Click here and download it now
June 18th, 2015 4:06am

Hi,

it has been disabled  yesterday like the other day.

[PS] C:\Windows\system32>Disable-Mailbox jarod.trusatmoko@tps.co.id

Confirm
Are you sure you want to perform this action?
Disabling mailbox "jarod.trusatmoko@tps.co.id" will remove the Exchange properties from the Active Directory user
object and mark the mailbox in the database for removal. If the mailbox has an archive or remote archive, the archive
will also be marked for removal. In the case of remote archives, this action is permanent. You can't reconnect this
user to the remote archive again.
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"): y
[PS] C:\Windows\system32>Clean-MailboxDatabase "MDatabase 1533988578"
[PS] C:\Windows\system32>Get-MailboxStatistics -Database "MDatabase 1533988578" | Where-Object {$_.DisconnectDate -Notlike $NULL} | FL DisplayName, DisconnectDate, MailboxGuid


DisplayName    : Jarod Trusatmoko
DisconnectDate : 6/17/2015 9:07:24 AM
MailboxGuid    : cadf0e59-1c32-427b-b6e2-dfce22b4eb58

Just when execute mailbox removal command, i got problem.

Regards,

Wahyu

June 18th, 2015 4:20am

Wahyu,

Thant means 'Disabled' switch should work?

Free Windows Admin Tool Kit Click here and download it now
June 18th, 2015 4:37am

Hi,

Disable switch working well,

Every PS command working OK before windows and .net updated.

After updated , something wrong so  i can not execute  command Remove-mailbox.

Regards,

Wahyu

June 18th, 2015 6:08am

Hi,

How about creating a new admin user with same privileges and try the cmdlets 

Free Windows Admin Tool Kit Click here and download it now
June 18th, 2015 10:40am

Hi Philip,

Thanks for assistance,

I try with different user , the result still is same.  I will restart the exchange server this afternoon and try again.

Regards,

June 19th, 2015 1:34am

Hi,

WARNING: Proxy creation has been skipped for the following command: 'Remove-Mailbox', because it would shadow anexisting local command.  Use the AllowClobber parameter if you want to shadow existing local commands.

Using :

Connect-ExchangeServer %ServerName% -AllowClobber  ---> Done

so i can use Remove-Mailbox again, i don't know why using that command that i never used before.

Regards,

  • Marked as answer by Wahyu W 28 minutes ago
Free Windows Admin Tool Kit Click here and download it now
June 21st, 2015 9:07pm

That means you are trying to execute the commands in a Hybrid environment where in which you have got an O365 also configured.
June 21st, 2015 11:16pm

Hi Philip,

I don't Know , maybe because windows updated or security updated because i never configure anything,

do you want i close this thread ? i can working normally again now and your last cmdlets as alternative too

regards,

Free Windows Admin Tool Kit Click here and download it now
June 22nd, 2015 3:17am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics