Tag: Azure

  • Disable “stale” user accounts for Office 365 and on-prem hybrid

    , ,

    We recently had a cyber audit at work – and one of the recommendations was to ensure that any user accounts not used within 90 days were disabled. Prior to us moving to Office 365 hybrid we did have an on-prem tool that would do this for us, checking on-prem domain controllers for last login…

    Screenshot of Notepad++ showing the code for my DisableStaleAccounts.ps1 script
  • SQL backup to Azure URL Blob: “Operating system error 50(The request is not supported.)”

    ,

    I wanted to setup an on-premises SQL server to backup directly to Azure Blob storage, using Microsoft’s walk-through: https://learn.microsoft.com/en-us/sql/relational-databases/tutorial-use-azure-blob-storage-service-with-sql-server-2016?view=sql-server-ver16. However, there is a mistake in the provided Powershell script – so things won’t work as expected. TLDR; Script truncates Shared Access Signature – add “s” at start of SECRET The script on the above page…

    Snippet of code