Created
April 7, 2016 20:01
-
-
Save BeanBagKing/6d39943c498b69b5c12a06dc2048fc3d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For servers in list, check if the folder exists | |
# Useful for detecting user folders, installed programs, etc. | |
Get-Content C:\Users\UserName\Desktop\DetectFolder\servers.txt | ` | |
Select-Object @{Name='ComputerName';Expression={$_}},@{Name='FolderExist';Expression={ Test-Path "\\$_\c$\program files"}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment