Get-PC/Private/FileSystem.ps1
Zachary Gorman 4a01da0e5d Init commit
2024-06-11 11:27:55 -07:00

15 lines
414 B
PowerShell

Function Get-FileSystem($ComputerName){
#Checks if the path is accessible to the requested PC
if(Test-Path \\$ComputerName\C$){
Test-Path -Path (ii \\$ComputerName\C$)
Write-Host "Accessing -FileSystem [\\$ComputerName\C$]" -ForeGround Green
}else{
Write-Host "Could not connect to -FileSystem [\\$ComputerName\C$]" -ForeGround Red
}
}