Friday, July 1, 2022
Sage 300 ERP - ODBC error - Invalid Database Specification
Monday, June 6, 2022
Microsoft 365 Tenant Migration with AAD Connect reusing same domain
- We had an internal domain connected with AAD Connect - intdomain.com which was not the primary domain in tenant.
- There were 8 domains total in the tenant used for various email accounts. 4 domains were moving, 4 were not. The intdomain.com was moving
- A handful of users had a single user account with email addresses across all 8 domains!
Get-Mailbox | Select Name, PrimarySMTPAddress, LegacyExchangeDN | Export-Csv 'pathtofile\LegacyExchangeDN.csv' -NoTypeInformationGet-DistributionGroup | Select Name, PrimarySMTPAddress, LegacyExchangeDN | Export-Csv 'pathtofile\LegacyExchangeDNgroups.csv' -NoTypeInformation
- Changed MX Records to an invalid record for each domain. This made any mail sent to us get "held" by the sending server for retry instead of giving back an NDR. I want all that mail to come through once I've moved the domains.
- Run the final MigrationWiz, I also removed everyone's access from SharePoint. Wait for final pass to finish before proceeding!
- Add an empty root OU to AD, this is temporary.
- Run AADConnect configuration, and point it to that empty root OU you just created. When the sync runs there with be NOTHING to sync and so it will process this as removal of ALL of your AADSync objects. Just like that it removed everything for you so you can remove your domains.
- Remove any objects that were cloud only objects for the moving domains.
- Under Settings - Domains - click on each domain and go through the tabs, you'll see what objects are left on each domain. Once the domains that are moving are cleared of all objects you can delete each of the domains!
- Now you can go to your new Tenant and add each domain. Hint: use a different web browser for each tenant so you're not having to constantly login and out. For PowerShell use 2 different VM's.
- Now we're going to fix the UPN for all of the new Tenant pre staged users. You're going to use the CSV you created with Powershell
- Now all of the users in the new tentant have the proper accounts that MATCH their internal Active Directory UPN's. This way AADSync will automatically associate them properly.
- Go back to AADSync and configure it to point to your proper OU's again. Let the sync run and bingo, you now see that it associated properly AND all your groups are back and created / populated with group membership.
- Fix your MX Records and test! Don't forget to setup SPF, DKIM, DMARC again as needed.
- Note that you need to create "cloud only" distribution groups and add membership back. If you converted them to Active Directory prior then they where automatically created by the sync
- Test your emails setup out again! Send and Receive
- Now it's time to fix apps
- $users = Import-Csv 'path to file\userCloud.csv'
- foreach ($user in $users){Set-MsolUserPrincipalName -UserPrincipalName $user.PrimarySmtpAddress -NewUserPrincipalName $user.upn }
- I started with ensuring everything was closed.
- Opened Control Panel, switch to small icons, open Mail, Show Profiles, Delete
- Opened Excel (or Word), File, Account, Sign Out
- Open Settings, Accounts, Accesss work or School, expand the account, Disconnect.
- Also checked under Accounts, Email & Accounts, and removed anything I could.
- Opened Edge browser, Settings, Sign Out of profile, Did not clear their favorites and other info.
- Dumped linkes to SharePoint as I saw this (and added the new site)
- Opened OneDrive and Unlink this PC (note it prompts that it will stop synching and a copy of the files will be left on the PC).
- Open Teams and Sign out
- Reboot
- Open up each and setup new. Edge, OneDrive, SharePoint, Office, Teams. Note that GPO's or Azure AD can help do this automatically for you with SSO and device mgmt if you have it.
Wednesday, January 12, 2022
Godaddy - new certificate crt and pem files, but need pfx
Thursday, October 21, 2021
NEC SV9100 inMail and Exchange Online / Microsoft 365
We've utilized NEC SV9100 with inmail for voicemail for 5 years. We also utilize Microsoft Office 365 / Exchange Online.
Setting up the voicemail to email feature is fairly easy and there are lots of guides online to do so. For that matter, being in IT and setting up system SMTP for scanning, alerting, etc, etc, etc is like brushing my teeth. So, looking at the inmail settings for SMTP was enough to make me yawn, grab a cup of coffee to help stay away the boredom, and get to work.
Ten minutes later all done, tested, working... seemingly. I had put in the smtp.office365.com port 587, TLS, username, password, blah blah blah. In fact, I did this almost 3 or 4 years ago.
Fast forward to yesterday. Complaint comes in about "I've called and left a VM and no one contacted me". Of course, that triggers the CEO to call, leave a message, and then send out the email "Who got that message? call me". Quick looksee anddddd, well, no one got the message WTH. I call the number, leave a message and seconds later have the message. Call again, receive message. Start to suspect the number the CEO called or the classic "What did the user do wrong?". You know PEBKAC.
At this point I decide PEBKAC is wrong (since it's the CEO) and call into the VM box directly (which btw no one checks because it's an email forward only mailbox) and listen to the messages. I hear me testing, I hear me testing again, I hear a fax machine crap message, I hear the CEO asking for someone to call him... Definitely not a PEBKAC, but rather an OHCRAP.
After a quick chat with a friend that is an NEC Certified Tech I find that I'm not the first to see this issue. As soon as the words "inmail Office365 random issue" come out of my computer he stops me and responds with a resounding "Yesssss, we never recommend that".
Here's the thing, directly inputting an account into SMTP settings on inmail so that it can authenticate and send works and from my experience it almost always works. BUT when you can't lose an occasional random message from a customer, "almost" isn't good enough.
According to my friend and online searches the general accepted method is to use Gmail, local relay, or Option #2 or Option #3 of this document. (Note: I was using option #1)
Option #2 and Option #3 I see lots of comments online of working, but in my mind Option #1 looked like it was working to me.
In the end I decided to go the tried and true way that hasn't failed me yet IIS SMTP Relay. Alteratively using an onsite Exchange Server, HMailServer, or other reliable method would be acceptable. Basically, I wanted the mail to have a quick trip locally to an email Queue. With this I can even write a Powershell script to monitor it if desired. At the very least I'm not depending on some online authentication to occur between the NEC and Microsoft which could fail mid communication.
If you haven't setup IIS SMTP Relay before, well, it's pretty easy. Google how to install if you don't know. I'll give the quick config to make it work with the NEC. I usually do this on my Print Server or another lightly used server. Note that it does require installation of the role IIS.
- Add a secondary IP address to the server (don't do this on a DC). I prefer to run each SMTP Relay on it's own dedicated IP.
- Create a new home directory (will be used in later step). I usually put this in C:\Inetpub\New Name. The "new name" I typically make named the task that this relay would be for. IE, voicemail or NEC.
- Open up Internet Information Services (IIS) 6.0 Manager (of course after you've installed the required roles)
- Right click on the server name, New, SMTP Virtual Server
- Give it a name. I like to name them the task followed by - and the last octet of the ip address assigned in step 1. Example: NEC - .44
- Select the IP assigned to the server in Step 1
- Select the Home directly we created in Step 2
- Enter a domain name. I typically make this the servers FQDN. DO NOT make it the domain name of the email that these are going to. For instance, if the account you're emailing this to is voicemail@contoso.com then you would not want to enter contoso.com or the emails will go into the "drop" folder because it's a "local" address. In my case the FQDN is different than the email domain so I enter FQDN :) If your emails are going to the Drop folder (more on this in a minute) then check this.
- OK and you'll be presented with a new pretty SMTP relay
- Right click on the "NEC - .45" / virtual server and select properties
- Ensure "Limit number of connects to" is unchecked
- On Access tab, click Relay, Only the list of below, Add the NEC ip address, and I uncheck the "Allow all computers which...."
- Messages tab. I change the limit message size and session size to 20480 (ie 20MB).
- Delivery tab, I change the expiration timeout to 4 days.
- Outbound security. This will depend somewhat on where it's going, but in my case I require authentication. This will mostly depend on how you want to setup your SMTP Relay server using that previous link in my post. As you can see, we're moving the Microsoft Option 1, 2 or 3 to here. So the SMTP Relay is the one authenticating with Exchange online instead of the NEC.
- So, I change this to Basic Auth, enter the username of my Voicemail account, password
- Check the TLS Encyrption option
- Outbound Connections, change TCP Port to 587
- Advanced, change the Smart Host to smtp.office365.com
- Hit OK to exit out of the properties.
- Restart the Simple Mail Transport Protocol service (not sure if this is required)
- Now we test it.
- Make a file on the desktop of the server or somewhere named Test email. Remove the file extension from it so that it's extensionless.
- Open the file with Notepad or Notepad++
- Enter the following 4 lines. Notice there are no spaces
- To:myemail@contoso.com
- From:Voicemail@contoso.com
- If you're using Option 1 from MS then the email address entered must match EXACTLY the account you're using to send Voicemail.
- Option 2 and 3 it must match any email address in your Exchange online environment. (so it can be a dist list), but note that means Step 14 Outbound security will be different as well. (maybe I'll change mine and update this post at a later date)
- Subject:Test
- Test Test (this is line 4 which is the message body)
- Save the file
- Create a copy of the file
- Open up file explorer to C:\inetpub\voicemail\pickup and drag and drop the copy you just made into the folder.
- It will instantly disappear.
- Go to the C:\inetpub\voicemail\drop and badmail directories to see if it's there (hopefully not). If not then you probably got the email.
- If it's in Queue then something doesn't match up properly and it's gone into retry mode. This could be that the credentials are wrong, no path out, you didn't setup Office 365 properly, etc. Basically, it can't deliver to Office 365. If you wait long enough (4 days) it will eventually move to badmail.
- If it's in badmail, then most likely issue is the From email address doesn't match up properly and it was rejected.
- If it's in Drop, then from my experience this typically means I forgot my own advice and made the smtp virtual server domain the same as my email domain. To fix this expand the tree, and in the right windows double click and change the domain.
So what was the point of this post? This is all over the googles if you search for it... I intend for this to be one more post that shows on the googles when people like me search to setup inmail with office365 so that others hopefully don't run into the random missing voicemail when all appears to be working OHCRAP moment. My failure is online so hopefully you don't have this failure.
Have a better option? Post it!
Wednesday, October 20, 2021
IIS 7 SSL Cert - There was an error while performing this operation
It was that exciting time of year again, SSL Cert renewal time!
I say exciting, because it never fails that when Cert renewal times comes up I hit my head against some issue (I suspect it's the exact same issue year after year and I just don't remember).
This time changing the cert in IIS 7 I'm greeted with "There was an error while performing this operation. Details: A specified logon session does not exist. It may already have been terminated. (Exception from HRESULT: 0x80070520)
It should be noted that when this occurred the site went down! I was able to select the old cert and hit okay and all was well again. Select new cert, OK, and error with site down again.
NOTE: I have since found another way to produce this issue with it's own fix. I have modified the below with Fix 1 and Fix 2. You may have to do BOTH of the below as I recently discovered.
I found a lot of solutions out there and I'm sure they work, but I didn't see the easy one that worked for me. I also found some that say the solution is that you have to have "export private key" checked when importing the certificate (note that this IS NOT NEEDED).
FIX 1: I had my certificate imported from a pfx without the option for export private key. It was stored under Local Computer - Web Hosting (this is true of the old cert and new cert).
In the binding screen I selected the "Localhost" certificate. Hit OK
I then immediately hit edit again. Selected the new certificate from the drop down and hit OK. Click Close, go to your site and verify it's using the new cert.
FIX 2: I had a new certificate that I imported via the IIS Server Certificates option. No matter what I would continue to get the error following my directions above. I found a post online where a commenter mentioned that they had to import from MMC rather than IIS. Deleted the cert that I had imported via IIS. Had cmd open so went to it and typed MMC, File - Add/Remote Snap-in - Certificates - Computer Account - OK. Expand Web Hosting - Certificates. Right click import my new cert changing file type to *.* and selecting cert. DO NOT check the box for exportable.
Then went back to IIS and followed my FIX 1 steps. Worked great.
No error, very minimal downtime (when localhost cert is selected). Happy happy
Now, will I remember this next year? Or remember to check my blog notes? Probably not.
Thursday, July 16, 2020
Trend Micro Worry Free Business - very slow opening of apps
This appears to be a well known issue when using Trend Micro with "Unauthorized Change Prevention Service". Watching the task manager when doing many of the tasks and I could see this service jump to the top.
Unfortunately, many of the TM options are dependent on this service, but at the end of the day I'm a firm believer that machines need to be speedy, so I disabled the service. Note: I also disabled the Behavior Monitoring as this is dependent on the service.
If you're reading this while "thinking" of moving to Trend Micro I would advice you to take a test drive first. I've found several issues which support is working through, but it's been a bumpy road.
- Extreme slowdown when scheduled scans run (as opposed to what we're used to seeing with Webroot).
- Unauthorized Change Prevention Service slowdown.
- Issue with builds prior to 6.7.1319 being unable to restore to domain OU's.
- Issue with many of our installs prior to 6.7.1319 being unable to update to latest build automatically - support still looking into issue.
Tuesday, June 2, 2020
Dot net 3.5 install error
ISO mounted and received "the source files can't be found". This was with the latest Win10 Iso download.
Checked WSUS and feature on demand is checked.
Easy fix is to bypass WSUS temporarily...
HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
UseWUServer set to 0
Reboot
Install Dot Net 3.5
Set the reg key back to 1
reboot
Monday, March 30, 2020
Windows Server 2016 RDSH - Start Menu stops working
Searching the internet you find a number of solutions, but the most crazy (in my opinion) solution I found was the one that actually worked!
In this post user MrManual says to delete and recreate a registry key dealing with the Firewall. One, like me, would think this crazy and continue on trying all the other solutions only to have the issue remain (or return shortly).
Finally, figuring it's best to try a crazy solution than rebuild the server I open powershell and give it a go:
Remove-Item "HKLM:\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\RestrictedServices\Configurable\System" New-Item "HKLM:\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\RestrictedServices\Configurable\System"
Click start menu and GASP it opens!
Note: other ideas on the thread do work, but seemingly only temporary. I still suspect this to have something to do with the crappy UPD's.
On the note of UPD's one might ask "if you hate UPD's so much why not switch to fxlogic? I mean, it is free afterall..."
https://blogs.microsoft.com/blog/2018/11/19/microsoft-acquires-fslogix-to-enhance-the-office-365-virtualization-experience/
https://www.brianmadden.com/opinion/Microsoft-FSLogix-free-to-all-customers
Saturday, March 21, 2020
Dell Latitude 7480 / 7490 loud fan issue
https://www.dell.com/community/Latitude/fan-noise-and-heat-Dell-Latitude-7490/td-p/7439643
https://www.dell.com/community/Latitude/Dell-7480-and-Dell-5480-fan-noise-and-heating-issue-on-more-than/td-p/6072570
https://www.dell.com/community/Latitude/Latitude-7490-Overheating/td-p/6073431
In the past when I would get one of these laptops it was a matter of ensuring the BIOS was up to date and the issue would be gone. Lately, my own laptop (7490) started having high pitch fast fan noise. Of course I remembered right away that I had recently updated the BIOS to 1.13.1.
I quickly decided to do a BIOS downgrade to 1.11.0 to see if that would help.
No more loud fan noise at this point... Having issues with your fan always running top speed? Try an older BIOS version and call Dell rep to complain.
Sunday, September 15, 2019
Have a device (Roku or other) that won't connect to wifi?
Finally she decides to call me. After about 20 seconds looking at her router settings I advise making the 2.4GHz and 5GHz wifi networks the same password. Since the Roku Express only supports 2.4GHz it's trying to connect to 2.4, but since they are different passcodes and the same SSID there is nothing indicating to her that she needs to enter the 2.4GHz passcode. In fact she didn't even know it or that there was ANY difference as Xfinity staff set it up.
Immediately this resolved the issue
Make them the same SSID and Passcode and let it just work. The device will connect to the frequency it wants / supports and the end user doesn't need to care. Or if you insist on different passcodes for some reason, make the SSID different as well as a visual indicator.
Thursday, June 27, 2019
Testing your website for weak ciphers and protocols
Monday, February 18, 2019
Wyse ThinOS and RD Gateway with Broker - External Access
- All servers running Windows Server 2016
- 1 server with RD Gateway and Web installed together. We'll refer to this as rds.externaldomain.com
- 1 server with Connection Broker installed (NOT in HA config)
- 2 servers running RDSH and the desktop being published - Collection Name: Desktop Resources
- Dell Wyse 3040 ThinOS 8.6_013 connected to my home network. NO VPN to main datacenter.
Signon=Yes SaveLastDomainUser=no LastUserName=No
DisableDomain=Yes
FastDisconnect=No
AddCert="Go Daddy Root CA - G2.cer"
AddCert="Go Daddy Secure CA - G2.cer"
SignOn=No ExpireTime=0 RequireSmartCard=No SCRemovalBehavior=0 DisableGuest=No
SecurityPolicy=full SecuredNetworkProtocol=Yes TLSMinVersion=1 TLSMaxVersion=3 DNSFileServerDiscover=Yes TLSCheckCN=Yes
AutoSignoff=10 Shutdown=no Reboot=no
ShutdownCounter=0
SysMode=Classic toolbarclick=No ToolBarAutoQuit=No EnableLogonMainMenu=No
Desktop=No
AutoLoad=2 VerifySignature=yes
ConnectionBroker=MICROSOFT \
host=https://rds.externaldomain.com AutoConnectList="Desktop Resources"
SessionConfig=all \
Reconnect=0
SessionConfig=rdp \
EnableNLA=yes EnableRecord=no EnableRFX=yes EnableTSMM=no ForceSpan=no enablegfx=no EnableUDP=yes EnableVOR=yes USBRedirection=rdp defaultcolor=2 MaxBmpCache=128 RDPScreenAlign4=no AutoDetectNetwork=yes EnableRdpH264=yes
Tuesday, September 18, 2018
Office 365 "Belongs to:" incorrect / activation
The user can wait the 31 days until it begins to complain that it's unlicensed, but that's not good product administration in my opinion. I don't want my users to have to worry about it, period.
Logging out on the account page and logging back in also does not update the "belongs to" field.
Options:
- Reinstall Office - wow, what a waste of time for something that should be easy
- Do an online repair - Again, this works, but it takes awhile depending on your connection.
- Run a quick script - YAY (but again, what the heck is MS thinking, this should be easy!)
- cscript.exe "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /dstatus
- then run
- cscript.exe "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /unpkey:XXXXX
I have to do this fairly often so I slapped together a weak powershell file with this. Since I'm not overly skilled with PS I have to retype the last 5 of the key back in, but at least I don't have to remember the commands. Maybe someone can take the output of the first one and pull out the last 5 for the second command automagically.
Invoke-Command -ScriptBlock {cscript.exe "C:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs" /dstatus}$prodkey = Read-Host "Enter the last 5 characters of the product key"Invoke-Command -ScriptBlock {cscript.exe "C:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs" /unpkey:$prodkey} -ArgumentList $prodkey
Monday, July 30, 2018
Office 365 Outlook prompts for password
Update:
We've had a few users where this issue started again.
Settings - Accounts - Access Work or School - select user - disconnect. Fixes every time, instantly so far.
Wednesday, July 11, 2018
Windows 10 Fall Creators Update 1709 fails to apply (update 1803 I experienced same issue)
In most cases I would be left with no indication of why it failed. I attempted installation from WSUS, Windows Update Assistant, and Windows Media Creation to USB.
I updated drivers, bios, all applications, removed AV (note had most succeed with AV), repair windows update, rename the softwaredistribution folder, etc, all to no effect.
Only when using the Windows Media Creation tool and then running the update from USB did it give me any workable indication of what was going wrong. (double click setup from the USB drive)
"We couldn't install Windows 10. We've set your PC back to the way it was right before you started installing. 0x8007042B - 0x3000D The installation failed in the FIRST_BOOT phase with an error during MIGRATE_DATA operation"
That helps! MS even gives a "click here" for troubleshooting codes that pertain. Unfortunately, none of them are this code. Google foo gave some info and short time later I was looking at the C:\Windows\Panther\ folder. In particular the C:\Windows\Panther\NewOs\Panther\setuperr.log.
Almost at the very bottom I found a line stating:
Error WRITE, 0x000000B7 while gathering/applying object: File, C:\Users\username\AppData\Roaming\Microsoft\Windows\Recent [2017_09_1_3177.pdf.lnk]. Will return 0[gle=0x00000002]
Error 183 while applying object C:\Users\username\AppData\Roaming\Microsoft\Windows\Recent [2017_09_1_3177.pdf.lnk]. Shell application requested abort[gle=0x00000002]
Abandoning apply due to error for object: C:\Users\username\AppData\Roaming\Microsoft\Windows\Recent [2017_09_1_3177.pdf.lnk][gle=0x00000002]
Apply failed. Last error: 0x00000000
Cleanup profile:
I went to the path in question and dumped the entire recent folder. Started upgrade again and success!
What a pain, why can't the error descriptions be descriptive and helpful.


