Exchange

202K

Solutions

72K

Contributors

Exchange is the server side of a collaborative application product that is part of the Microsoft Server infrastructure. Exchange's major features include email, calendaring, contacts and tasks, support for mobile and web-based access to information, and support for data storage.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi,

Im trying to develop a script that will strip the msexchangeguid attribute from a particular OU only, once a week as a scheduled task.
Im almost there.

The first part of the script successfully identifies all users in that OU that has a non-NULL msExchangeGUID
 
Get-ADUser -SearchBase "OU=Disabled-Objects,dc=my,dc=domain,dc=com" -filter * -Properties * | ? {$_.msExchMailboxGuid -ne $null}

Open in new window


The next part of the linked script will just give me the SAMAccountNames of those users with a non-Null msExchangeGUID from the above command
Select-Object SamAccountName

Open in new window


Put the final part of setting the attribute to be Null (0000) doesnt take the SamAccountNames for action
Set-RemoteMailbox  -ExchangeGUID 00000000-0000-0000-0000-00000000000

Open in new window


Here it is in one non-functioning line.

Get-ADUser -SearchBase "OU=Disabled-Objects,dc=my,dc=domain,dc=com" -filter * -Properties * | ? {$_.msExchMailboxGuid -ne $null} | Select-Object SamAccountName | Set-RemoteMailbox  -ExchangeGUID 00000000-0000-0000-0000-000000000000

Open in new window



I also thought about i could put the output of the first two lines into a text file, that I think use as a variable
Get-ADUser -SearchBase "OU=Disabled-Objects,dc=my,dc=domain,dc=com" -filter * -Properties * | ? {$_.msExchMailboxGuid -ne $null} | Select-Object SamAccountName > users.txt

Open in new window


$users=Get-content users.txt
Foreach($user in $users){
get-aduser $user| set-aduser -clear msExchMailboxGuid
}

Open in new window


But the users.txt has trailing whitespaces after the username so the  
get-aduser $user| set-aduser -clear msExchMailboxGuid

Open in new window

looks like
get-aduser "USERNAME        "| set-aduser -clear msExchMailboxGuid

Open in new window

when it runs. It fails on the excess whitespaces.

Any help from Powershell gurus out there?
Thanks!
0
Big Business Goals? Which KPIs Will Help You
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

"Outlook is using an old copy of your Outlook data file (.ost). Exit Outlook, delete the file, and restart Outlook. A new file will be automatically created the next time you initiate a send/receive.

deleted the ost ,turned off cache and encrption

Still get same error.

Goes way if I create a new profile,but would like to not have to readd 6 email boxes in new profile again.
0
I received A pop up message of microsoft exchange asking to put my credential after changing my AD network password this morning and  before logging into Microsoft Outlook.
we have on premise AD and AD users are synced through AAD sync and mailbox es in offic e365

we have outlook through offic e365 proplus installed as click to run with shared computer licensing.

any reason why outlook prompted for password
0
I have  distribution groups and there are 400 members in it, these DL's are in office 365

i need to validate how many members are there in the group
 
is there any commandshell we can run,

lets say if i want to add or remove members.

also

to run this periodically or every 15 days , how can i implement a schedule task through task scheduler.
0
The new team technician did not realize that IIS was out (and needed to be restarted) and resolved to delete the Powershell virtual directory (do not ask me why, it just did). Now when I open the Console or the Shell I can not connect to Exchange 2010. When I tried to add this virtual directory again through normal Powershell, with the imported Exchange snap, I get the error below:

IIS without Powershell VDir:
001.JPG
Error recreating Powershell VDir:
002.JPG
With IIS Metabase Explorer no more Powershell VDir configs:
003.JPG
Some way to reinstall this Virtual Directory?
0
Dear all

I have run exchange server 2010 SP3 & 2007 in same organization and i got Error when trying to remove a Mailbox Database1 on Exchange Server 2010

The full error is:

This mailbox database contains one or more mailboxes, mailbox plans, archive mailboxes, public folder mailboxes or arbitration mailboxes, Audit mailboxes. To get a list of all mailboxes in this database, run the command Get-Mailbox -Database <Database ID>. To get a list of all mailbox plans in this database, run the command Get-MailboxPlan. To get a list of archive mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Archive. To get a list of all public folder mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -PublicFolder. To get a list of all arbitration mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Arbitration. To get a list of all Audit mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -AuditLog. To disable a non-arbitration mailbox so that you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID>. To disable an archive mailbox so you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID> -Archive. To disable a public folder mailbox so that you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID> -PublicFolder. To disable a Audit mailbox so that you can delete the mailbox database, run …
0
Is it secure to use Exchange cloud to support corporate emails ? Are there any reference clients for Exchange cloud ?

Thx
0
Our window domain is now in Window 2012. We want to upgrade our Exchange from 2010 to 2019.

Can I just buy licenses for a Window 2019 server (to support Exchange 2019), Exchange 2019 with Exchange CAL, without upgrading our domain to 2019 ?

Thx
0
I just successfully setup the Hybrid migration for office 365  on my exchange 2010 server on premise. i migrated two mail boxes to office 365, that was successful as well. i can route messages back and forth between the migrated accounts and the on-prem accounts. then i created a new account on office 365, when i try to communicate with that account from my on-prem emails i get a bounce-back error saying the account doesn't exist.  but i receive emails from  from the account. what could be the problem.

N.B: as per dns:
1. my mx records are pointing to the on prem server.
2: I have autodiscover pointing to my onprem as well.
0
Hello everyone, I am doing some labs with microsoft exchange 2016 to acquire more knowledge, I am with some doubts.

1 - I generated a signed Auto Certificate, internally it is accessing without problems.

2 - When performing Access Outlook Web Access is experiencing error, is this expected because CA is internal?

Thank you.
exc.JPG
exc1.JPG
0
Has Powershell sent you back into the Stone Age?
LVL 8
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Hi,

My boss was worried his email account was hacked so he changed his password. One of his friends uses Streak email tracker system. A few days ago, they were together eating lunch and his friend received notification that my boss was reading the email she sent him (my boss was not opening those emails). So my boss thought his email was hacked again.

My question is, this email tracking system will send out a notification every time when the email is opened? Do EEs think this "hacking" theory is legit or it will happen to all the tracking system.  thanks
0
My Exchange URL needs to be updated in a live environment to the new domain URL's.  I want to know if there is draw backs or no-no's doing this.  
Also do any of the IIS Applications need to be restarted?

I plan to use powershell to quickly loop through and change all the URL's I need to match my new SSL cert.  
I am using a SAN Cert issued by GoDaddy that includes 4 of the new addresses plus one old URL.


Set-ActiveSyncVirtualDirectory                                                                          
Set-AutodiscoverVirtualDirectory                                                                              
Set-EcpVirtualDirectory                                                                                      
Set-OabVirtualDirectory                                                                                      
Set-OwaVirtualDirectory|                                                                                                                                              
Set-WebServicesVirtualDirectory                                                                              
Set-WebVirtualDirectory
0
I've got an active directory domain (2008 level) which predates our email moving to Exchange, so the domain names are different. The AD one is a ".local" created in the days before the best practice was to match external domain names. This means that email addresses (using our external domain) differ from internal identifiers. We now have an on-premise Exchange 2016 server. I've implemented autodiscover which was fine before Outlook 2016 came along as we could always specify the domain name in setting up. Now with Outlook 2016 the option to set this are so hard to discover that I decided to find out why I couldn't login to Outlook with just the external facing email address. It seems to work with setting up Outlook inside the domain, but I've got some external email users who don't have this option.

After much investigation, I found that the AD field userPrincipalName is set to user@internal.local instead of user@external.com and that this governs whether you can login with the external email address on OWA. Here's the link that gave me the clue: https://social.technet.microsoft.com/Forums/en-US/15eef306-69b5-4008-904e-50e0116c223f/setup-outlook-anywhere-to-not-ask-for-domainusername-just-email-address-only?forum=exchange2010

So if I reset the field in the user's record in AD to the external email domain, I can then login with just the email address, and set up new Outlook 2016 profiles again with just the email address. So far this seems to work.

The question is …
0
We've migrated to office 365 and my old SSL Certs (from our on-prem Exchange server) are expiring. Do i need an SSL Cert for Office 365? Part of the reason i ask is because we're getting "A secure connection cannot be established with the server xxx.office365.com on our Apple Macs.
0
Another administrator created a user email account on Exchange 2010 but 5 more persons are receiving emails from this account, how can I remove them?
They receive the emails on their personal inbox.
They can't send on behalf of this account.
On Properties->Delivery options are empty
Also, "Manage Send As Permission" and "Manage Full Access Permission", doesn't contain any user
0
I am Running Exchange Server 2016 in a Hyper-V environment.  KB4340731 failed installation for CU9.  After correcting other issues, mail flow is working, but I am not able to access management either through Administrative Center or through EMS.  The Microsoft Exchange Service Host service is constantly restarting.
0
i am getting this error while sending to particular email address
The following addresses had permanent fatal errors ----- <.com>
    (reason: 550 permanent failure for one or more recipients (:blocked))

   ----- Transcript of session follows ----- ... while talking to d132923a.ess.barracudanetworks.com.:
>>> DATA

is this the receipient server blocking or barracuda?
0
Hello Experts - I am trying to export a list of domains that a user has on the Outlook spam list but the output from this command is truncated after the first few entries:

Get-MailboxJunkEmailConfiguration -Identity user@domain.com | Out-File C:\filename.txt

What additional switches do I need here so the output is not truncated?
0
Hi All

Please note we have an exchange 2010 server that is running fine with out any issues. We have just introduced an exchange 2013  server. We have bought a SAN from godaddy and applied it to new server exchange 2013. I have added the certificate to Certificates in personal, trusted root certification Authority as well as intermediate certification authorities

When i go to EAC the certificate is there but status says invalid. Any suggestions?

I have already tried
https://danblee.com/a-special-rpc-error-occurred-cannot-import-certificate-a-certificate-with-the-thumbprint-already-exists/

https://support.microsoft.com/en-us/help/954755/how-to-configure-intermediate-certificates-on-a-computer-that-is-runni
0
Determine the Perfect Price for Your IT Services
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

I have a  vendor email rejected from coming into my  exchange  server. it gives me this error. my certificate on my exchange server expires in 2020. so my certificate is fine. i attached the error the vendors sees as it bounces back. and i attached a screen shot of my receive connector.  this error stood out.
 "Remote Server returned '<[X.X.X.X] #4.7.0 SMTP; 403 4.7.0 authentication failed>'"
bounce-back.txt
0
Exchange 2010 on a SBS2011, after a power blackout
Users with Outlook are getting a pop-up when they open Outlook
"Security Alert"
remote.domain.com
information you exchange with the site cannot be viewed or changed by others. However, there is a problem with the site's security certificate
do you want to proceed.

the strange this is this certificate expired a couple years ago and it was not renewed, now this is popping up after the power blackout. Any suggestions?
Would rather not renew, the certificate used to be used for Microsoft Remote Web Access
thanks
0
Hi,

Simple question. In PowerShell ISE every times I type a cmd the PowerShell suggests me a list of paramaters or functions automatically. Is there something similar in normal PowerShell. I'm tired to search the syntax in the web...:-)

Thanks
0
Hi,

 Is there a way to resore contact by PowerShell in O365? Like with user I can run this cmd:

Restore-MsolUser -UserPrincipalName UserUPN

Is there such cmd for contact?
0
We have recently migrated Exchange from 2010 on premise to O365 in the cloud. We are able to access shared mailboxes through owa but the shared mailbox does not show in Outlook on the desktop. I can add the mailbox manually but it takes a minute or two for the process to complete and then when I try to open the shared mailbox I get this error..."Cannot expand the folder. The set of folders cannot be opened. The file D"\users\%username%\appdata\local\Microsoft\%email address% is in use and cannot be accessed. Close any application that is using this file, and then try again. You might need to restart your computer."

Any help is appreciated.
0
I need a Step by Step Guide to migrating Exchange 2010 from Windows SBS 2011 to new hardware running Windows Server 2016 (DC).  I am not terribly familiar with the Exchange Powershell system so need to know how to do this via the Management Console if possible.  The existing Windows SBS 2011 server (DC) will remain in service but only for a short time as hardware is well past its sell buy date.  Many thanks
0

Exchange

202K

Solutions

72K

Contributors

Exchange is the server side of a collaborative application product that is part of the Microsoft Server infrastructure. Exchange's major features include email, calendaring, contacts and tasks, support for mobile and web-based access to information, and support for data storage.