Repository: ImminentFate/SiriShortcuts
Branch: master
Commit: ebf6caf0e890
Files: 6
Total size: 17.2 KB
Directory structure:
gitextract_7nh3ws5u/
├── .gitignore
├── README.md
└── UnlockPC/
├── QR/
│ └── readme.md
├── UnlockWindows.bat
├── UnlockWindows_RDP.ps1
└── readme.md
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitignore
================================================
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
# Visual Studio 2015 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUNIT
*.VisualState.xml
TestResult.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# DNX
project.lock.json
project.fragment.lock.json
artifacts/
*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# JustCode is a .NET coding add-in
.JustCode
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
#*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignoreable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
node_modules/
orleans.codegen.cs
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
# SQL Server files
*.mdf
*.ldf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# JetBrains Rider
.idea/
*.sln.iml
# CodeRush
.cr/
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
================================================
FILE: README.md
================================================
[AirSSH]: https://www.icloud.com/shortcuts/3c71ba39e234428386cf779ae133e29c
[PSExec Base]: https://www.icloud.com/shortcuts/4a3408e905404ecaa1b90129b33ae29b
[Install PSExec]: https://www.icloud.com/shortcuts/56009ffd220d433aac1817dd0f7cf3e9
[Unlock Computer]: https://www.icloud.com/shortcuts/4da94fefa30b46aeb561a683afa3221e
[Lock Computer]: https://www.icloud.com/shortcuts/1d764f05c8174aae9946ea0035b1d8bc
[AirDrop to PC]: https://www.icloud.com/shortcuts/5d7df56473a24ce893c243600bc5f11f
[Copy from PC]: https://www.icloud.com/shortcuts/abe5478cb6ea432eb6d79d3f0aa029af
[MyTube Controller]: https://www.icloud.com/shortcuts/2ee61c74cf1b4a7fba94917f296d5c7b
[Open in MyTube]: https://www.icloud.com/shortcuts/9237dcb2e2924b53862fbf099948b147
[PC Power Controls]: https://www.icloud.com/shortcuts/ae0edea8d5264d6c8114742e0af3e49d
[PC Media Controls]: https://www.icloud.com/shortcuts/6f1b8f1f94594db7a166f52b6cafef52
[Colourize Image]: https://www.icloud.com/shortcuts/3b381c74013e4879ba1ca164bdfd732d
[QR AirSSH]: https://github.com/user-attachments/assets/874d4697-64e6-430d-85ba-fac8bbf35de0
[QR PSExec Base]: https://github.com/user-attachments/assets/809dcd51-55dd-4183-b2c1-9b93195834a1
[QR Install PSExec]: https://github.com/user-attachments/assets/d624af23-a32b-43e9-9a8d-9c897996e161
[QR Unlock Computer]: https://github.com/user-attachments/assets/0bdb3e86-1a38-475a-9651-7da9c7556a12
[QR Lock Computer]: https://github.com/user-attachments/assets/e1f4cace-4bf0-40f2-af72-9129128b9473
[QR PC Power Controls]: https://github.com/user-attachments/assets/c9f18f97-de3d-44c4-9ab5-bd33e2b6edad
[QR PC Media Controls]: https://github.com/user-attachments/assets/1f08df9c-2f78-4d1e-b8fc-2e5f03c48eb0
[QR AirDrop to PC]: https://github.com/user-attachments/assets/9476b328-1efd-4390-ba78-059ad9e03689
[QR Copy From PC]: https://github.com/user-attachments/assets/0fced9d4-d6e0-4265-8594-878221b5d991
[QR MyTube Controller]: https://github.com/user-attachments/assets/66d6fc33-2d45-41f3-a6aa-a0c54baef939
[QR Open in MyTube]: https://github.com/user-attachments/assets/a7e98f27-cd72-4ade-98cf-24db981e6986
[QR Colourize Image]: https://github.com/user-attachments/assets/9ae0313e-7925-4427-bab8-dde4f6c3605d
[Easy]: https://img.shields.io/badge/-Easy-brightgreen.svg
[Intermediate]: https://img.shields.io/badge/-Intermediate-blue.svg
[Advanced]: https://img.shields.io/badge/-Advanced-red.svg
# Siri Shortcuts
A Collection of useful Shortcuts for iOS 15+ to control and interact with a Windows PC.
Tested working on iOS 15 > 18.4 and Windows 10 + 11.
> [!TIP]
> **Last Updated 26/04/2025**
---
# Getting Started
### Prerequisites
1. A Windows Computer running Windows 10 or 11
2. Windows SSH Server [enabled](https://winaero.com/blog/enable-openssh-server-windows-10/)
3. [PSExec (in PSTools)](https://docs.microsoft.com/en-us/sysinternals/downloads/psexec) set up properly on your computer. You can download it manually, or use the Siri Shortcut to install it automatically in the next section.
4. [BurntToast](https://github.com/Windos/BurntToast) installed (this can also be installed automatically in the next section)
>[!Important]
>AirSSH is required for all other shortcuts to run. **Install this shortcut first!**
### 1. Install [AirSSH][AirSSH]
AirSSH is the foundation shortcut that sets up all the other shortcuts to connect via SSH and `PSExec` on your computer. You'll find all other PC controlling shortcuts are really simple once AirSSH is installed.
![QR AirSSH]
### 2. Install [PSExec][Install PSExec] and BurntToast
You can either install these manually using the `Prerequisites` links above, or install this shortcut that will set them up automatically.
![QR Install PSExec]
### 3. Install any of the below shortcuts!
# Shortcuts List
### [AirDrop to PC]
![QR AirDrop to PC]
Easily send selected files, text or links to your PC, with smart notifications that adapt to the file type—images will preview directly in the notification; documents show a file icon, links will be clickable and open in your browser (as well as being copied to your clipboard for easy pasting), and so on. Files are saved to your `Downloads` folder by default.
>[!Note]
>Transfer of files, images, videos and URLs are fast and do not require PSExec to work. Sending **plain text** to the clipboard however *does* require PSExec to work.
You can send multiple files at once; they’ll be automatically zipped and transferred as a single archive.
---
### [Copy From PC]
![QR Copy From PC]
Gets text/URLs from the computer's clipboard and copies them to the device.
Usage:
- Copy text on PC (Ctrl + C)
- Run shortcut
- Paste copied content directly on your phone, or tap on notification to show links.
---
### [PC Power Controls]
![QR PC Power Controls]
Control power state of your PC remotely with the following options:
- Lock PC
- Sleep
- Shutdown
- Restart
> [!Note]
> Shutdown comes with a 30 second timeout by default, but this can be edited.
---
### [PC Media Controls]
![QR PC Media Controls]
Control playing media on your PC, with the following options:
- Play/Pause
- Previous Track
- Next Track
- Volume Adjust
---
## Limitations
* Sending files >200MB in size is finicky and depends a lot on how both Apple and Microsoft feel on that particular day (this is mostly Apple's fault).
* I used to be able to send multiple gigabytes at once with no issues, then I updated to iOS 16 and it all came apart. I did upgrade to Windows 11 too but I'm not sure which one is to blame. I'm inclined to blame iOS for this one since my phone rapidly runs out of RAM and crashes everything _including the wallpaper_ if I try to send large files, even after that has failed. Potential memory overflow exploit to be found here, perhaps?
## Troubleshooting
* Nothing seems to happen when the commands are run
* Most likely this is due to either the SSH server not being set up properly, or powershell's execution policy not allowing remote scripts from running.
* For case 1, make sure OpenSSH Server is set up properly using the tutorial posted at the top
* For case 2, open powershell and type `Set-ExecutionPolicy RemoteSigned` or use the updated version of PSExec Base (just scan the QR code above again and overwrite the existing one)
## Standalone Shortcuts
### [Colourize Image] ![Easy]
|QR Code | Details|
| ---- |---- |
|![QR Colourize Image]|Takes a black and white image and converts it to colour using the deep</br>learning API by [Algorithmia](https://algorithmia.com)</br></br>Go [here](https://algorithmia.com/algorithms/deeplearning/ColorfulImageColorization/) to sign up and get your own API key first.|
================================================
FILE: UnlockPC/QR/readme.md
================================================
================================================
FILE: UnlockPC/UnlockWindows.bat
================================================
@ECHO OFF
PowerShell.exe -NoProfile -ExecutionPolicy RemoteSigned -Command "$sessionid=((quser $env:USERNAME | select -Skip 1) -split '\s+')[2]; tscon $sessionid /password:* /dest:console; taskkill /f /im mstsc.exe"
================================================
FILE: UnlockPC/UnlockWindows_RDP.ps1
================================================
$Server="127.0.0.2"
$User="`"USERNAME`""
$Password="`"PASSWORD`""
cmdkey /generic:TERMSRV/$Server /user:$User /pass:$Password
mstsc /v:$Server
================================================
FILE: UnlockPC/readme.md
================================================
# Unlock PC From iPhone
Unlocking your PC requires setup on both the target computer and downloading the Siri Shortcuts onto your device (the latter is easy, the former is harder)<br/>
Furthermore, there are a few prerequisites to getting this working: If you don't have these ready, **it will not work**.
1. Windows 7/8/10 Professional. Home users are out of luck because Remote Desktop isn't available.
2. OpenSSH Server (or alternative) must be installed on your computer and the service must be running (Follow [this tutorial](https://winaero.com/blog/enable-openssh-server-windows-10/))
3. An account with Admin rights
**Warnings**
--
**Your mileage may vary. A lot**
The way this works is the computer sets up a remote connection to itself (which locks you out), then passes control of the session back to you after a short delay (which *should* log you in). However this isn't a stable solution and the following issues may occur. None of these are permanent, and control of the computer should resume normally after a minute or two in the worst case scenario.
* The Lock screen blinks and doesn't log you in
* The screen goes black and the computer cannot be controlled (for up to a minute or two, then it should unlock anyway)
* You cannot login and receive a message telling you to wait a few minutes - so wait a few minutes.
* The screen stays at "Please Wait" with a spinning circle.
I don't know why, but the success rate drops the longer the computer is running. Success rates range from 100% after a restart to ~20% after several lock/unlock cycles.
# Setting up the PC - Easy
Download the helper program to set everything up automatically.
Note that you will still need to set up the SSH Server manually if you haven't already done so above.
# Setting up the PC - Manually
### 1. Download the files
Download `UnlockWindows.bat` and `UnlockWindows_rdp.ps1` files and place them together in `C:/SSH`
### 2. Add your username and password to `UnlockWindows_rdp.ps1`
The file should look like this:
```ps1
$Server="127.0.0.2"
$User="`"John`""
$Password="`"hunter2`""
cmdkey /generic:TERMSRV/$Server /user:$User /pass:$Password
mstsc /v:$Server
```
**Note**: Obviously this is a potential security risk as your windows password is stored in plain text. Technically you can delete the middle 3 lines after the first successful run, but you might run into issues later.
### 3. Creating the Scheduled Tasks
###### Unfortunately, you can't directly run files over SSH, as security restrictions prevent the remote console space from interacting with the user space. So, aside from using something like PSExec, you need to set up tasks in the Task Scheduler that can be run later.
There are two tasks that need to be set up:
1. A task to run the remote desktop client (that starts up the `UnlockWindows_rdp.ps1` script above), which is what we'll be triggering from Siri Shortcuts
2. A task that is responsible for actually unlocking the computer, which triggers automatically.
To start, open `Windows Task Scheduler` and then under `Task Scheduler Library` Make a new folder called `SSHTasks`
<details>
<summary>Click to see Image</summary>

</details>
</br>
Then follow the below steps for Task 1 and Task 2.
</br>
<details><summary>Task 1 (Click to Expand)</summary>
<p>
1. Create a new Task (**Not** a Basic Task)
2. Set the `General` Tab as shown below

3. Leave the `Triggers` Tab blank
4. Under the `Actions` Tab set it up as such

5. Untick everything in the `Conditions` Tab
6. Set the `Settings` Tab as shown below.

7. Save the task. It should prompt you to enter your password. Then go ahead and create Task 2
</p>
</details>
</br>
<details><summary>Task 2 (Click to Expand)</summary>
<p>
1. Create a new Task (**Not** a Basic Task)
2. Set the `General` Tab as shown below

3. Set up a `Trigger` as shown below.

4. Under the `Actions` Tab set it up as such

5. Untick everything in the `Conditions` Tab
6. Set the `Settings` Tab as shown below.

7. Save the task. It should prompt you to enter your password. You should now be done making the tasks.
</p>
</details>
### 4. Testing it out
Hopefully everything is set up properly at this point. Check the `C://SSH` folder and make sure the two files are in there.
**First, restart your computer and log in**
**Be Warned! The next step can lead to you being locked out for a few minutes if it doesn't work. Don't panic if it does, just be patient and it should unlock or let you enter your password eventually.**
Go ahead and right click the first task in Task Scheduler, and click `Run`.
<details>
<summary>Click to see Image</summary>

</details>
With some luck, your PC should lock, then flicker and take you straight back to your desktop.
* If it worked perfectly, you can set up the phone shortcuts now.
* If it did something, but didn't take you back to the desktop as it should have:
* If you logged in and saw a command prompt window or an error messagebox, it means the second task didn't work properly. Check the troubleshooting section below
* If you *don't* see a command prompt window/error message box, it means everything *technically* worked fine. Restart your computer and try again.
# Setting up iPhone Shortcuts
This is the easy part: install these two shortcuts from your phone (scan the QR codes for easy install). Set up the SSH Base Module with your computer's connection info, then run the `Unlock PC` shortcut.
|[SSH Base Module](https://www.icloud.com/shortcuts/21d139d065b9464a8f6aa3764a02157b)|[SSH Unlock PC](https://www.icloud.com/shortcuts/4da94fefa30b46aeb561a683afa3221e)|
| ------------- | ------------- |
|||
**If you used the Helper program, it will show you the QR codes on the end screen as well as the correct IP address + User/Password information.**

gitextract_7nh3ws5u/
├── .gitignore
├── README.md
└── UnlockPC/
├── QR/
│ └── readme.md
├── UnlockWindows.bat
├── UnlockWindows_RDP.ps1
└── readme.md
Condensed preview — 6 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (19K chars).
[
{
"path": ".gitignore",
"chars": 4305,
"preview": "## Ignore Visual Studio temporary files, build results, and\n## files generated by popular Visual Studio add-ons.\n\n# User"
},
{
"path": "README.md",
"chars": 6718,
"preview": "[AirSSH]: https://www.icloud.com/shortcuts/3c71ba39e234428386cf779ae133e29c\n[PSExec Base]: https://www.icloud.com/shortc"
},
{
"path": "UnlockPC/QR/readme.md",
"chars": 1,
"preview": "\n"
},
{
"path": "UnlockPC/UnlockWindows.bat",
"chars": 217,
"preview": "@ECHO OFF \nPowerShell.exe -NoProfile -ExecutionPolicy RemoteSigned -Command \"$sessionid=((quser $env:USERNAME | select -"
},
{
"path": "UnlockPC/UnlockWindows_RDP.ps1",
"chars": 143,
"preview": "$Server=\"127.0.0.2\"\n$User=\"`\"USERNAME`\"\"\n$Password=\"`\"PASSWORD`\"\"\ncmdkey /generic:TERMSRV/$Server /user:$User /pass:$Pas"
},
{
"path": "UnlockPC/readme.md",
"chars": 6266,
"preview": "# Unlock PC From iPhone\nUnlocking your PC requires setup on both the target computer and downloading the Siri Shortcuts "
}
]
About this extraction
This page contains the full source code of the ImminentFate/SiriShortcuts GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 6 files (17.2 KB), approximately 5.1k tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.