I want to learn Powershell from scratch. My ultimate objective is to do Penetration Testing using Powershell. I started with the course ''Getting Started with Microsoft PowerShell'' from Microsoft Virtual Academy. There is a point where the instructora are instructing to download Windows Management Framework 5.1. I have Windows 10 installed in my computer and the package has Powershell 5.1 and giving the command $psversiontable it shows the following. Now do I need to download the Windows Management Framework 5.1 because I read that it contains updates to Powershell and Windows PowerShell Desired State Configuration (DSC), Windows Remote Management (WinRM), Windows Management Instrumentation (WMI). Does Powershell take update when Windows takes updates or WMF is required. Please help, I am a newbie and require urgent assistance.
Name ValuePSVersion 5.1.17134.590PSEdition DesktopPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}BuildVersion 10.0.17134.590CLRVersion 4.0.30319.42000WSManStackVersion 3.0PSRemotingProtocolVersion 2.3SerializationVersion 1.1.0.1
As for this...
" Now do I need to download the Windows Management Framework 5.1 "
... No. The .Net framework is automatically updated on Windows 8 and higher. You don't install (WMYF Framework) on Win8 and higher, it's already there. For WIN7 and below you have to. The WMF Framework include the .Net dependencies.
Since you say you are see the below. Yet, for Pen-Testing, you really need to learn the pen-test tools ...... as well, as Linux (Kali Linux is the go to here.) Can you pen-testr with Windows sure, but every Pen-test course uses Linux, and the Hacking certifications are Linux focused. You'll really need to get up to speed on Python as well.
References:dependencies
https://devblogs.microsoft.com/powershell/powershell-the-blue-teamhttps://pentestmag.com/download/power-shell-for-penetration-testinghttps://n0where.net/powershell-penetration-testing-framework-pentestlyhttps://www.sans.org/webcasts/powershell-pentesting-108305
SANS Pen Test Cheat Sheet: PowerShell
https://pen-testing.sans.org/blog/2016/05/25/sans-powershell-cheat-sheet/https://www.youtube.com/watch?v=a8_DqEVFwO8https://pen-testing.sans.org/blog/2012/04/27/presentation-powershell-for-pen-testers
Awesome Pentest Cheat Sheetshttps://github.com/coreb1t/awesome-pentest-cheat-sheets
Pentesting with PowerShell in six stepshttps://periciacomputacional.com/pentesting-with-powershell-in-six-stepshttps://pentestmag.com/download/power-shell-for-penetration-testing
Tools:https://adsecurity.org/?p=429https://n0where.net/powershell-penetration-testing-framework-pentestlyhttps://www.powershellempire.comhttps://www.kali.org
https://resources.infosecinstitute.com/powershell-toolkit-powersploithttps://tools.kali.org/maintaining-access/powersploithttps://www.metasploit.com
### 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.
Is there a PS MOC, yes.
https://www.quickstart.com/automating-administration-with-windows-powershell-moc-on-demand-ms-10961.html
... yet as you'll note. The pre-reqs is that you must already know Windows proper and more.
Experience in the following is required for this PowerShell class:• Experience with Windows networking technologies and implementation.• Experience with Windows Server administration, maintenance, and troubleshooting.• Experience with Windows Client administration, maintenance, and troubleshooting.• Students who attend this training can meet the prerequisites by obtaining equivalent knowledge and skills through practical experience as a Windows system administrator. No prerequisite courses are required.
Follow-on Courses• MOC 10962 - Advanced Automated Administration with Windows PowerShell
MOC on-demand, if you cannot go in person.https://www.microsoftondemand.com/courses/microsoft-course-10961https://www.microsoftondemand.com/courses/microsoft-course-10962
Discussions
https://www.reddit.com/r/PowerShell/comments/aw8cvk/course_to_increase_knowledge_of_windows/ehl4ixm/?context=3https://www.reddit.com/r/PowerShell/comments/ar6cvt/powershell_in_depth_second_edition/egmlpom/?context=3https://ww.reddit.com/r/PowerShell/comments/afqmmw/i_want_to_help_my_husband_advance_his_powershell/ee3k6p6/?context=3
--- eBooks and sites ---
https://powertheshell.com/cookbookshttps://powershell.org/ebooks
--- 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
--- 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
Thank you very much. This was my first post as a beginner and I am really overwhelmed.
I am employing a command (update-help) running Powershell as an Administrator but the system is not even checking for any updates let alone getting or taking the updates. I have ensured that my system is connected to the internet. Please comment
Running as admin should allow you to update.
Update-Help -Force -Verbose
Note:It is normal to have some errors when doing this, as some items just don't have an update location.
You can also use Trace-Command to see additional info
Trace-Command -name metadata,parameterbinding,cmdlet -expression {Update-Help -Force -Verbose} -pshost -verbose
Note, dog in the above is a very details, noisy thing and being new to PS, may not make any since to you, but it give you data you can search the web about. It also takes far longer to complete.
Don't rush yourself. Start small. Never use cmd.exe for anything, always use PS, and when you find yourself about to use DOS commands, look for the PS equivalent. Again, use the visual learning approach. Live on YouTube searching for beginner, intermediate, advanced PowerShell presentations. As well as ones on PowerShell GUI, forms, .Net, WMI, CIM, etc. Again, take it small steps at a time.