Move 150+ scripts from root and scripts/ into client/project directories: - clients/dataforth/scripts/ (110 files: AD2, sync, SSH, DB, DOS scripts) - clients/bg-builders/scripts/ (14 files: Lesley mgmt, Exchange, termination) - clients/internal-infrastructure/scripts/ (10 files: GDAP, Gitea, backups) - projects/msp-tools/scripts/ (9 files: CIPP, MSP onboarding, Datto) - projects/gururmm-agent/scripts/ (3 files: API test, JWT, record counts) - clients/glaztech/scripts/ (1 file: CentraStage removal) Also reorganized: - VPN scripts → infrastructure/vpn-configs/ - Retrieved API/JS files → api/ - Forum posts → projects/community-forum/forum-posts/ - SSH docs → clients/internal-infrastructure/docs/ - NWTOC/CTONW docs → projects/wrightstown-smarthome/docs/ - ACG website files → projects/internal/acg-website-2025/ - Dataforth docs → clients/dataforth/docs/ - schema-retrieved.sql → docs/database/ Deleted 24 tmp_*.ps1 one-off debug scripts (preserved in git history). Root reduced from 220+ files to 62 items (docs + directories only). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
30 lines
1.0 KiB
PowerShell
30 lines
1.0 KiB
PowerShell
# Verify line endings on AD2 and copy fresh to NAS
|
|
|
|
$Username = "INTRANET\sysadmin"
|
|
$Password = ConvertTo-SecureString "Paper123!@#" -AsPlainText -Force
|
|
$Cred = New-Object System.Management.Automation.PSCredential($Username, $Password)
|
|
|
|
Write-Host "[INFO] Connecting to AD2..."
|
|
New-PSDrive -Name TEMP_AD2 -PSProvider FileSystem -Root "\\192.168.0.6\C$" -Credential $Cred -ErrorAction Stop | Out-Null
|
|
|
|
Write-Host "[INFO] Reading DEPLOY.BAT from AD2..."
|
|
$Content = Get-Content "TEMP_AD2:\Shares\test\DEPLOY.BAT" -Raw
|
|
|
|
if ($Content -match "`r`n") {
|
|
Write-Host "[OK] AD2 file has CRLF line endings"
|
|
|
|
# Copy to temp location
|
|
Copy-Item "TEMP_AD2:\Shares\test\DEPLOY.BAT" ".\DEPLOY_FROM_AD2.BAT" -Force
|
|
Write-Host "[OK] Copied DEPLOY.BAT from AD2 to local temp"
|
|
} else {
|
|
Write-Host "[ERROR] AD2 file has wrong line endings!"
|
|
}
|
|
|
|
Remove-PSDrive TEMP_AD2
|
|
|
|
# Now check local file
|
|
Write-Host ""
|
|
Write-Host "[INFO] Verifying local copy..."
|
|
$result = & cmd /c "type DEPLOY_FROM_AD2.BAT | find /c `"@ECHO`""
|
|
Write-Host "[OK] Local file readable"
|