$ftpServiceName = "FTPSVC" $ftpRoot = "D:\FTPRoot" Write-Host "Checking FTP service..." $service = Get-Service -Name $ftpServiceName -ErrorAction SilentlyContinue if ($service) { $service | Select-Object Name, Status, StartType } else { Write-Warning "FTP service $ftpServiceName was not found." } Write-Host "Checking FTP root path..." if (Test-Path $ftpRoot) { Write-Host "FTP root path exists: $ftpRoot" } else { Write-Warning "FTP root path was not found: $ftpRoot" }