Powershell Find File on Network Share
-
Thursday, January 17, 2013 7:01 PM
How can I write a Powershell script to find a file on a network share based on user input?
If the file is found then I would like to move it to another directory.
Thank you,
Mike
All Replies
-
Thursday, January 17, 2013 7:16 PM
We have a department here for that exact question. It will answer all of you issues:
http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
¯\_(ツ)_/¯
- Proposed As Answer by JQuinlan Thursday, January 17, 2013 7:56 PM
-
Thursday, January 24, 2013 4:55 PM
Get-ChildItem -Path "Z:" -Recurse | Where-Object { !$PsIsContainer -and [System.IO.Path]::GetFileNameWithoutExtension($_.Name) -eq "hosts" }- Marked As Answer by Mike_ST_Smith Thursday, January 24, 2013 4:55 PM

