This topic contains 5 replies, has 4 voices, and was last updated by
December 31, 2018 at 3:35 pm #132072ParticipantPoints: 13Rank: Member
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.
December 31, 2018 at 4:22 pm #132086ParticipantPoints: 427Rank: Contributor
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.
December 31, 2018 at 6:47 pm #132110ParticipantPoints: 13Rank: Member
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
December 31, 2018 at 7:09 pm #132129ParticipantPoints: 487Rank: Contributor
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
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 —
— Microsoft Channe9 —
— Youtube —
— 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.
January 1, 2019 at 6:14 am #132173ParticipantPoints: 211Rank: Participant
Really great stuff to kick-start with PowerShell. Thank you.
January 1, 2019 at 7:43 pm #132227ParticipantPoints: 487Rank: Contributor
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.
You must be logged in to reply to this topic.