mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-09-11 04:18:42 -06:00
First Basic Implementation of Remote Script Execution Functionality
This commit is contained in:
8
Scripts/Examples/Write Canary to CurrentUser Desktop.ps1
Normal file
8
Scripts/Examples/Write Canary to CurrentUser Desktop.ps1
Normal file
@@ -0,0 +1,8 @@
|
||||
# Dynamically get the current user's Desktop path
|
||||
$desktopPath = [Environment]::GetFolderPath('Desktop')
|
||||
|
||||
# Define the file path relative to the Desktop
|
||||
$filePath = Join-Path $desktopPath "Canary.txt"
|
||||
|
||||
# Write some content into the file
|
||||
"USER Canary is alive." | Out-File -FilePath $filePath -Encoding UTF8
|
Reference in New Issue
Block a user