quick question regarding what i can do with powershell

Ok so I’m 100% new to powershell and I’m hoping to learn it slowly. My work is having me do checklists on site workstations that require you to remote in and check event logs and storage space etc.

I was wondering if someone could point out which are possible to create a script for? Not looking for script itself but I would appreciate being pointed in the right direction so i can focus on learning how to automate things to cut down the time it takes to finish each checklist.

 

  • Event Log Check
  • RAID Controller Config
  • Server File Clean Up
  • To_Delete Folder Clean up
  • Available Server disk space
  • Disk fragmentation check
  • network interface card drive
  • network interface card settings
  • Throughput Test
  • Server DNS
  • Verify Successful Tape Backup
  • Time Sync Servers
These are the main things on the checklist, like i said not looking for code done for me. But rather, i would appreciate if someone could tell me which of these are possible to script and make it a simple execute rather than tedious point and click.

All of those items and much more is possible with Powershell. If you are new, you should really start with a book like Month of Lunches. It will guide you through the core concepts and additionally touch on many of the topics you listed above. When you start playing with the code and don’t understand something, stop by and ask the community. Also keep in mind, Powershell has been leveraged for years in enterprises, so quick searches (e.g. powershell test network throughput produced 238k results) will provide many scripts to work with as examples.

now i need to check all these things one by one on different servers. I remote into each one and check. Is it possible for powershell to doo all that for me granted i provide credentials and address? Or would i create script remote in execute than remote into the next and execute

Yes, just use a ForLoop and PSRemoting to hit the host you are after.
This is a very basic PS use case, and covered in the PS docs, on MS Docs site, and tons of other blogs, tech articles all over the web.
There are pre-built scripts on the MS powershellgallery.com and many other places that provide most this already.

Just do a search for each of your points …

‘powershell Event Log Check’
‘powershell RAID Controller Config’
‘powershell Server File Clean Up’
‘powershell To_Delete Folder Clean up’
‘powershell Available Server disk space’
‘powershell Disk fragmentation check’
‘powershell network interface card drive’
‘powershell network interface card settings’
‘powershell Throughput Test’
‘powershell Server DNS’
‘powershell Verify Successful Tape Backup’
‘powershell Time Sync Servers’

… one at a time, validate each one at a time then put it all together.

Read the help files, use the help file examples, read the help files again.

Event Log Queries Using PowerShell
https://blogs.technet.microsoft.com/heyscriptingguy/2015/10/21/event-log-queries-using-powershell

10 Examples to Check Event Log on Local and Remote Computer Using PowerShell
https://www.nextofwindows.com/10-examples-to-check-event-log-on-local-and-remote-computer-using-powershell

Your query just seems to say you are new to PS, so, leverage all the no cost video and book, etc, resources to get ramped up.
Here are a few:

— Microsoft Virtual Academy —
'https://mva.microsoft.com/liveevents/powershell-jumpstart
https://mva.microsoft.com/search/SearchResults.aspx#!q=PowerShell&lang=1033
https://mva.microsoft.com/en-us/training-courses/getting-started-with-microsoft-powershell-8276

— 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+beginners

— eBooks —
https://powertheshell.com/cookbooks
https://powershell.org/ebooks
https://rkeithhill.wordpress.com/2009/03/08/effective-windows-powershell-the-free-ebook
https://veeam.com/wp-powershell-newbies-start-powershell.html
https://reddit.com/r/PowerShell/comments/3cki73/free_powershell_reference_ebooks_for_download
https://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-functions

— 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.

https://social.technet.microsoft.com/wiki/contents/articles/183.windows-powershell-survival-guide.aspx

Really great stuff to kick-start with PowerShell. Thank you.

No worries. Just stuff I keep around and pass on.
I’ve personally used all of these.

I have way more. I’ve maintained a pretty large physical and electronic library of stuff since before PowerShell was called PowerShell, aka Monad.

Well, that and because I’ve been doing this computer stuff since the mid 1970’s, I’ve been collecting, learning and using all I can leverage since then. Well, that and I do teach this stuff and more.

Monad Manifesto https://www.jsnover.com/blog/2011/10/01/monad-manifesto Video: https://channel9.msdn.com/Blogs/TheChannel9Team/Jeffrey-Snover-Monad-demonstrated