Scripting Secrets with PowerShell and OneTimeSecret.com

Mark Harwood
4 min readNov 7, 2024

In my day job, I often have to send out links to customers. These links have to be obscured as much as possible and it was getting painful manually sending each link using this service, so I decided to find a was of scripting secrets with PowerShell.

Rather than sending the link directly from SharePoint or OneDrive, I need to use a service called OneTimeSecret.com.

So today, I wanted to show you the script I made to make this process as simple as running a PowerShell script.

You can also read this on my website!

Introduction

I’ve mentioned that the links need to be obscured, but to prove it this is the workflow:

  • Upload password protected ZIP file to OneDrive
  • Create a OneDrive share with link a password
  • Create a OneTimeSecret.com secret with the OneDrive share link and password
  • This OneTimeSecret.com link also requires a link password

You might call this overkill, but the idea is that people wouldn’t continuously have access to the OneDrive link to download whenever they wanted.

What I Was Doing Before?

--

--

Mark Harwood
Mark Harwood

Written by Mark Harwood

IT Pro 👨‍💻 Dad 👀 Husband🔒 Check out my free blog or utilise my expertise on the web! https://mharwood.uk

No responses yet