Yet another short one with little context or reason.
A colleague of mine needed a list of all Service Principal Names assigned to all servers on the estate. Searches online brought us to a few potential solutions, most of which included the use of some difficult to use and understand .NET classes which appeared to be limited to only 1000 results.
So that got me thinking, these are just Active Directory attributes so why not use PowerShells very own Get-ADComputer?
The script below will list every single server in Active Directory and all assigned SPN’s, it will then export the list to a CSV.
Continue reading “PowerShell – How-To Retrieve SPN’s for all Servers”
This will be a bit of a reference guide to updating a CosmosDB collections and nested items in a nice manner. This thread will not cover how to use the CosmosDB package in Node.JS and it will assume you’ve successfully connected to a database.
I will use the example of updating the signature of a user of a forum where that signature is stored in a collection which is the overall thread and then nested collections which are the individual comments.
Continue reading “Node.JS – How-To Patch CosmosDB Collections and Nested Items”
Another short article with little context today.
The PowerShell script below will produce a report showing the Last Logon time of all enabled Active Directory users, it will also connect to Exchange On-Premise and request the last logon date of the mailbox. This can be useful to identify user accounts which are no longer in active use, even in organisations where mailboxes may have been retained once a user left.
There’s also a nifty status update built in that will tell you exactly how far the script has progressed and show an estimated time to completion.
Continue reading “PowerShell – Locate Inactive Users in Active Directory / Exchange On-Prem”
Short one today, the script below will import a CSV from C:\temp\users.csv that contains a ‘User Name’ field and will locate all Active Directory users that match that. Where multiple matches are found it will populate the exported CSV with all matches.
Continue reading “PowerShell – Find Active Directory Users by First and Last Name”
I’ve recently been messing around with custom ROM’s, rooting and all that good stuff on Android and came across an issue when trying to re-apply the stock image on my OnePlus Five.
When trying to install the original stock ROM to the device I received the following error message –
E:String resource 'zip_compatible_err' not found.
Using default value.
Zip Treble compatibility error!
Invalid zip file format!
Error installing zip file 'source'
Although it took me ages to figure this out, the fix is actually very simple –
Continue reading “Android – How to fix ‘Zip Treble Compatibility Error’”
Occasionally you may have to implement something which will improve the security of your organisation but that does introduce a risk. Often the correct way to determine if it will cause issues is to enable logging and then to review those logs.
But what if you don’t have centralised logging?
This article does not replace a fully functional centralised event logging system which I would strongly suggest anybody have, however, it will allow you to retrieve specific logs from all servers in your estate. If your estate is too large then the script can be modified to instead of storing all of the data in the $allEvents variable you could simply append it to an Excel file inside of the for each loop.
Continue reading “PowerShell – How to Retrieve Specific Events From All Servers”
This is a frustrating issue to come across when trying to roll out AD Schema Updates during an Exchange Cumulative Upgrade. But luckily it’s normally quite simple to resolve, this article will cover the various solutions from most to least likely to fix the issue.
Continue reading “Exchange 2016 – User account isn’t a member of the ‘Schema Admins’ or ‘Enterprise Admins’ group”
The amount of time wasted before realising how to do this simple thing isn’t worth thinking about, but luckily it’s very easy in SCCM to search in all subfolders and it can be done by doing the following –
Continue reading “How to Search Subfolders in System Center 2012 – SCCM”
- Navigate to any asset that contains a search bar at the top.
- Select the Search Bar to ensure that the Search toolbar menu appears.
- In the Search menu, select “All Subfolders” as shown below, this will search the current node and all subfolders.
I’ve recently encountered an issue on Windows 11 devices whereby Windows Defender and the Security portal refuse to open, with it showing a “You’ll need a new app to open this windowsdefender link” popup. This appears to stem from a corrupt app install after one of the recent patches.
Continue reading “Windows 11 – Fix Missing Defender / Windows Security”
Exchange has a brilliant feature called ‘Email approval’ that can be configured using mail flow rules. This allows emails to configured recipients to be redirected to a user or a mailbox where it must be approved before reaching it’s final destination.
By default, any emails awaiting approval for between 2-7 days will expire and will be automatically rejected and this is entirely dependent on when the system task runs to clear the mailboxes.
Continue reading “Exchange – Extend Email Approval Expiration”