$UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/\ -Credential $UserCredential -Authentication Basic -AllowRedirection Import-PSSession $Session Get-MailboxFolderStatistics -Identity [email protected] -IncludeAnalysis -FolderScope All\ | Select-Object Name,FolderPath,ItemsInFolder,FolderSize,TopSubject,TopSubjectSize,TopSubjectCount,TopSubjectPath | Out-file C:\Users\%username%\Desktop\UserMailboxResults.txt
Read More
Our thinking
Recursively Propagate Permissions on a Synology NAS with synoacltool
Synology DSM lets you do some pretty complex things with permissions on files and folders, however occasionally things can get a bit mixed up and it's difficult to see what's happening and even more difficult to recover from it. Whilst you...
Read More
Read More
Disable Azure AD users from having to set up a PIN on Windows 10
This information is condensed from Håvard Siegel Haukeberg's blog over at https://haukeberg.wordpress.com/2016/02/24/disable-pin-code-when-joining-azure-ad/ You need to log in as the actual admin user for the domain, you can't do this through a partner account with delegated administration. First up, go to the Azure...
Read More
Read More
Give an Azure AD user Local Administrator user privileges on Windows 10
When you join a Windows 10 machine to Azure AD, the user account you use to join to the domain is automatically given local administrator permissions to the machine. If you noodle around in the Azure management portal, there doesn't...
Read More
Read More
Fix file timestamps with dates in the future on OS X or Unix/Linux
I recently needed to fix a heap of files with invalid timestamps for a client to sync between two sites. The issue was that some files had modification dates in the year 2032 or something like that. With a 2-way...
Read More
Read More
Issues authenticating Windows 10 to OS X/macOS with Server.app
Ever since Apple were forced to ditch Samba due to their changing the licensing to GPL3, we've been stuck with a second-rate SMB implementation on OS X and Server called smbx. As it turns out, there are numerous issues with smbx...
Read More
Read More
Troubleshooting: Fetch a web page as Googlebot
I've had a couple of clients come to me recently after their WordPress site was pwned. Sometimes you're able to use a tool like Wordfence to clean it up and secure the site and it's all OK. Sometimes however it...
Read More
Read More
Reverse SSH to a server behind a firewall
I recently needed to establish an ad-hoc ssh connection to a server behind a firewall. I didn't control the firewall and couldn't get a port mapped through it for incoming ssh access, so I had to use a reverse ssh...
Read More
Read More
Fix SMB Permissions on OS X Server for Newly Created Files and Folders
I don't know why it is, but SMB on OS X Server is slower and less reliable than the AFP that it replaces. Despite Apple making it the default for OS X to OS X Server file sharing connections, AFP...
Read More
Read More
Set OS X Server to Deny SMB 3 Connections
Sometimes an OS X Server will have very poor SMB file sharing performance - whilst I haven't been able to ascertain with 100% certainty what causes it, something that may be a factor is the use of SMB 3 connections...
Read More
Read More