SolverBot: - Inject active project path into agent system prompts so agents know which directory to scope file operations to GuruRMM: - Bump agent version to 0.6.0 - Add serde aliases for PowerShell/ClaudeTask command types - Add typed CommandType enum on server for proper serialization - Support claude_task command type in send_command API Dataforth: - Fix SCP space-escaping in Sync-FromNAS.ps1 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
21 lines
729 B
PowerShell
21 lines
729 B
PowerShell
$ErrorActionPreference = "Stop"
|
|
$pass = ConvertTo-SecureString ("Paper123" + [char]33 + "@#") -AsPlainText -Force
|
|
$cred = New-Object PSCredential("INTRANET\sysadmin", $pass)
|
|
|
|
$uncRoot = "\\192.168.0.6\C$"
|
|
|
|
try {
|
|
New-PSDrive -Name AD2 -PSProvider FileSystem -Root $uncRoot -Credential $cred -ErrorAction Stop | Out-Null
|
|
Write-Output "=== DRIVE MAPPED ==="
|
|
|
|
# Step 3: Back up the current script
|
|
$src = "AD2:\Shares\test\scripts\Sync-FromNAS.ps1"
|
|
$bak = "AD2:\Shares\test\scripts\Sync-FromNAS.ps1.bak.2026-02-17"
|
|
Copy-Item -Path $src -Destination $bak -Force
|
|
Write-Output "=== BACKUP CREATED: $bak ==="
|
|
|
|
Remove-PSDrive -Name AD2 -ErrorAction SilentlyContinue
|
|
} catch {
|
|
Write-Output "ERROR: $_"
|
|
}
|