Help copy folders A to B , list of folders in a text file
can someone help me wiht a syntax
Based on this question, this means you have never used PowerShell before as this is taught in PowerShell introductory classes. If that is hte case, it is really vital that you get up to speed on PowerShell to limit the confusion and frustration you will encounter and make your life wiht it easier and more satisfying.
These cmdlets do this for you and you can use the help file examples to get you there:
Get-Content or IMport-Csv, depending on what you file looks line Copy-Item
Thoroughly read / re-read and understand built-in the help files and review all the scripts on your machine.
# Get parameters, examples, full and Online help for a cmdlet or function
(Get-Command -Name Get-Content).ParametersGet-help -Name Get-Content -ExamplesGet-help -Name Get-Content -FullGet-help -Name Get-Content -Online
Get-Help about_*Get-Help about_Functions
# Find all cmdlets / functions with a target parameterGet-Help * -Parameter Append
# All Help topics locationsexplorer "$pshome\$($Host.CurrentCulture.Name)"
### Learning PowerShell Resources
There are lots of solid references available. What are the best is a matter of opinion. This is why rankings on books, say on Amazon and other sites that allow user ratings vary can vary wildly. You too will have your take on the topics when you read them. My suggestion is first do some - free - live video beginner training via Microsoft virtual academy, and even on Youtube. Be sure to follow the authors blogs mentioned in the references below as well.
See these discussionshttps://social.technet.microsoft.com/wiki/contents/articles/183.windows-powershell-survival-guide.aspxhttps://mva.microsoft.com/training-topics/powershell#!jobf=IT%20Pros&lang=1033https://www.reddit.com/r/PowerShell/comments/95y82g/whats_the_best_youtube_powershell_tutorial_serieshttps://www.reddit.com/r/PowerShell/comments/98dw5v/need_beginner_level_script_ideas_to_learnhttps://www.reddit.com/r/PowerShell/comments/7oir35/help_with_teaching_others_powershellhttps://www.reddit.com/r/PowerShell/comments/9apwyo/i_want_to_convince_my_managers_to_enable_pshttps://www.reddit.com/r/PowerShell/comments/98qkzn/powershell_advicehttps://www.reddit.com/r/PowerShell/comments/96rn7y/college_level_student_looking_for_a_good_onlinehttps://www.reddit.com/r/PowerShell/comments/99dc5d/powershell_for_a_noobhttps://blogs.technet.microsoft.com/heyscriptingguyhttps://adventofcode.comhttps://www.thecodeasylum.com
Youtube, just serach for 'Beginning Powershell', 'intermediate PowerShell, 'advanced PowerShell', etc.
MS Channel9 and TechNet Virtrual lab - there are no seperate PowerShell specific ones, but anything on Exchange, AD, Azure, etc., all have PowerShell requirements
--- Microsoft Virtual Academy ---https://mva.microsoft.com/liveevents/powershell-jumpstart https://mva.microsoft.com/search/SearchResults.aspx#!q=PowerShell&lang=1033https://mva.microsoft.com/en-us/training-courses/getting-started-with-microsoft-powershell-8276 https://mva.microsoft.com/en-us/training-courses/getting-started-with-microsoft-powershell-8276?l=r54IrOWy_2304984382
--- Microsoft Channe9 ---https://channel9.msdn.com/Series/GetStartedPowerShell3 https://channel9.msdn.com/Search?term=powershell#ch9Search&lang-en=en&pubDate=year
--- Youtube ---https://www.youtube.com/watch?v=wrSlfAfZ49E https://www.youtube.com/results?search_query=beginning+powershell https://www.youtube.com/results?search_query=powershell+ise+scripting+for+beginnershttps://www.youtube.com/playlist?list=PL6D474E721138865A - Learn Windows PowerShell in a Month of Lunches - YouTube
--- eBooks and sites ---https://powertheshell.com/cookbookshttps://powershell.org/ebookshttps://leanpub.com/u/devopscollectivehttps://powershell.org/free-resourceshttps://rkeithhill.wordpress.com/2009/03/08/effective-windows-powershell-the-free-ebookhttps://veeam.com/wp-powershell-newbies-start-powershell.htmlhttps://reddit.com/r/PowerShell/comments/3cki73/free_powershell_reference_ebooks_for_downloadhttps://blogs.technet.microsoft.com/pstips/2014/05/26/free-powershell-ebooks https://www.idera.com/resourcecentral/whitepapers/powershell-ebook http://mikefrobbins.com/2015/04/17/free-ebook-on-powershell-advanced-functionshttps://books.goalkicker.com/PowerShellBookhttps://github.com/vexx32/PSKoans
--- Windows PowerShell Survival Guide ---Purpose of this Document The purpose of this document is to help you to learn more about PowerShell and to be successful in applying it. This document seeks to point to the best content on the web to enable you to reach that goal.Scope of this DocumentThis page contains links to help you learn more about Microsoft Windows PowerShell. This includes PowerShell fundamentals as well as how PowerShell is used in Windows applications and services. As long as it's PowerShell related, we'll try to point to it! The document is also version agnostic, and contains information about current and future versions of PowerShell.https://social.technet.microsoft.com/wiki/contents/articles/183.windows-powershell-survival-guide.aspx
--- Book(s) to leverage ---
Learn Windows PowerShell in a Month of Lunches 3rd Edition Donald W. Jones (Author), Jeffrey Hicks (Author) ISBN-13: 978-1617294167 ISBN-10: 1617294160
Windows PowerShell Cookbook: The Complete Guide to Scripting Microsoft's Command Shell 3rd Edition Lee Holmes (Author) ISBN-13: 978-1449320683 ISBN-10: 1449320686
Windows PowerShell in Action 3rd Edition by Bruce Payette (Author), Richard Siddaway (Author) ISBN-13: 978-1633430297 ISBN-10: 1633430294