My PowerShell Scripts - Systems Administration

  Рет қаралды 211,484

PC-Addicts

PC-Addicts

Күн бұрын

Пікірлер: 88
@gizmothunder8611
@gizmothunder8611 2 жыл бұрын
Just now learning powershell and I was looking for some inspiration. This might be 9 years old but it fits the bill, much thanks!
@PC-Addicts
@PC-Addicts 2 жыл бұрын
Awesome! Never too late to learn Powershell. I still use it daily... a lot :) Glad ya found it helpful.
@Sequel7
@Sequel7 5 ай бұрын
@@PC-Addictsdo you have a link for these scripts?
@Blood_Hound
@Blood_Hound 12 жыл бұрын
Every once in a while I would like to automate some tasks, but never took the time to learn, but this makes me think again about setting aside time to get the basics down and start learning as I go.
@PC-Addicts
@PC-Addicts 12 жыл бұрын
You are welcome - I was going to start a PowerShell series, but then thought I would start that another time rather than for this one.
@ititoday8451
@ititoday8451 11 жыл бұрын
I just wanted to thank you for taking the time to put this video up. I am current enrolled in an IT program at my local community college, but I was thinking of also taking the Network Specialist program when I am finished with the CSS program seeing how the two have a majority of the same core classes at my school. So, your videos are a good way to see some of the material I will be faced with in the coming year giving me a heads up here and there.
@PC-Addicts
@PC-Addicts 11 жыл бұрын
You are welcome! Glad you are finding the videos helpful. Keep learning all you can in your classes! It will pay off in the end!
@JaynBea
@JaynBea 11 жыл бұрын
As a new System Administrator, I have come to enjoy you videos...particularly the 15 part Server lessons... Thanks
@PC-Addicts
@PC-Addicts 12 жыл бұрын
Best way to learn my friend, just figure out something that would make your daily tasks more automated and rock and roll! :)
@Nik-rx9rj
@Nik-rx9rj 6 ай бұрын
You rock! This is still useful today. Thank you for providing this information for free. You are an awesome guy
@PC-Addicts
@PC-Addicts 3 ай бұрын
Your welcome and thanks for the kind words! Glad it's helpful!
@davidg4512
@davidg4512 5 жыл бұрын
I always asked if they restarted their computer. If you have fast startup enabled, the uptime does not reset always so keep that in mind. I generally would disable fast startup organization-wide so restarting actually fixes an issue you are trying to fix.
@alreid12345
@alreid12345 12 жыл бұрын
Thanks a mill Chris, I would love to see a series on Powershell man. Keep up the awesome work.
@mav29
@mav29 2 жыл бұрын
neat, glad i've stumbled upon this, just recently started in the industry, this inspired me to compose my library. thx
@PC-Addicts
@PC-Addicts 2 жыл бұрын
Your welcome - keep us updated!
@PC-Addicts
@PC-Addicts 12 жыл бұрын
Thanks... I agree with what you said. As I'm sure you are aware, these are just a couple tiny little examples of the things you can do. Maybe one day I will show you all a few things we do at work that are really super amazing. One of our System Admins is really good with PowerShell and has written a ton of things that helps the hospital tremendously.
@PC-Addicts
@PC-Addicts 12 жыл бұрын
Awesome! So glad you found this helpful... Hope it helps others out there as well. If you figure out the best way via Unix, let us know! :)
@PC-Addicts
@PC-Addicts 12 жыл бұрын
Nice! I know the feeling about working on the house... it's crunch time for me now (going to sell this house so need to finish the complete remodel very quickly now).
@ittaster
@ittaster 12 жыл бұрын
Been doing a bit of work on the house, and I also bought a Raspberry Pi before Xmas, very distracting, but good fun! don't worry, I'm working on some new tutorials and will be uploading very soon...
@PC-Addicts
@PC-Addicts 11 жыл бұрын
Thanks for the comments. I would be very careful about using any script you find on the internet (unless it's from a few well respected PowerShell people). I know what you mean about 'not clicking'... I was in the same spot too at first. The best advice I can give is to find some basic tutorials (especially from Don Jones) and go from there. He really explains things in a simplified way.
@PC-Addicts
@PC-Addicts 12 жыл бұрын
Thanks man! Appreciate your support! Haven't seen any videos recently from ya... what's up?!
@chrgeorgeson
@chrgeorgeson 12 жыл бұрын
I recently wrote a script to query all AD users that have mailboxes, with passwords about to expire. It then emails each user at the 14 day mark letting them know that they need to think about changing there password, at the 5 day mark it then emails them everyday until the 1 day mark. I have it ran through a scheduled task at 10 am everyday. The nice part about this is we all get email alerts CC to our mailboxes. I found we had to do this since our Execs would ignore the pop up in Win7.
@PC-Addicts
@PC-Addicts 11 жыл бұрын
I personally have it imported when PowerShell is launched. You can place the following command in your $profile import-module (full path to module)
@PC-Addicts
@PC-Addicts 12 жыл бұрын
CoryClaxon won the last one... I think I might have one more to giveaway as well as an SSD and gold plated flash drive! Keep an eye out!
@LoganMiller-ni1ut
@LoganMiller-ni1ut 7 ай бұрын
Your links aren't there anymore, I was curious on getting the full PS scripts for Get-Uptime and Get-HW if you still had them. Thanks!
@mrkleen340
@mrkleen340 12 жыл бұрын
I've been looking for a way to know who is logged into a computer, I just wish it could be run from samba/unix but better than nothing at this point. Also, I didn't even realize I had a need for the driver script until I watched this. As always thanks for the great videos and insight!
@PC-Addicts
@PC-Addicts 12 жыл бұрын
Nice!! Sounds almost identical to what we have setup at work as well.... Awesome man!!
@stevebright6992
@stevebright6992 10 жыл бұрын
Fantastic to watch you I am just starting to learn the basics very impressive videos
@eddiecortez731
@eddiecortez731 8 ай бұрын
Hello, when trying the Get-LoggedIn script I get an error gwmi : The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) At line:9 char:19 Could you possibly help? Thank you.
@hillarybasile9357
@hillarybasile9357 2 жыл бұрын
this is a helpful video. do you have any more examples of scripts you use?
@PC-Addicts
@PC-Addicts 2 жыл бұрын
I don't have any current/updated videos, but I do have a few more helpful ones that I use. I really need to record a few updated ones, maybe one day lol
@pankajshinde6205
@pankajshinde6205 3 жыл бұрын
Hi Sir, How can I use power shell to write down PC Lock time and PC unlock time in any of the text applications?
@anthonytitan4113
@anthonytitan4113 Жыл бұрын
I'm trying to figure out how to pull the Get-HWVersion function?
@PC-Addicts
@PC-Addicts Жыл бұрын
Sorry, the Get-HWVersion function is a custom function written and placed in a module for my profile to pick up and use.
@tamboleo
@tamboleo 7 жыл бұрын
Hi, is there any book you would recomend where i can learn to make scripts on PS? Thanks
@NoahMia-eq1px
@NoahMia-eq1px 2 жыл бұрын
how do I import the function to my personal profile?
@PC-Addicts
@PC-Addicts Жыл бұрын
Sorry for the delay, do you still need assistance?
@ittaster
@ittaster 12 жыл бұрын
Great video Chris, very useful stuff.
@DickyBenfield
@DickyBenfield 12 жыл бұрын
cool idea. I need to create some modules for the Systems Administration team at my office. Trying to get them to use any type of automation (particularly vbscript or powershell) is very difficult. There is one guy (a contractor) that is all over it, the others are very slow to adopt... Don Jones did some cool videos about dressing them up for non-(command line/script) folks that was really cool. You should do a video about something similar to that.
@PC-Addicts
@PC-Addicts 12 жыл бұрын
It's not hard.. in fact, it's not bad at all. We have an awesome group of people and documentation that helps a lot. Uptime for clients probably average 30 days or so. Uptime for servers are 30 days since we have a scheduled monthly server update/reboot night every month. We have over 120 servers (give or take a few). 98% of them are Windows servers. Couple *nix servers.
@PC-Addicts
@PC-Addicts 12 жыл бұрын
Cool... I'll keep them coming!
@delldaviesTV
@delldaviesTV Жыл бұрын
I ran these commands but it's not working on my office computer. Since I work in a company that provide support to remote users, I was trying to see if this would work. I tried on my personal laptop with the localhost but didn't work. Do I have to run the PS admin or what?
@PC-Addicts
@PC-Addicts Жыл бұрын
What command(s) are you trying to run specifically. Also, what error(s) are you seeing?
@joejenkins9181
@joejenkins9181 10 жыл бұрын
is there a way to force admin yourself using power shell?
@cvetelingeorgiev1527
@cvetelingeorgiev1527 3 жыл бұрын
How does this work in a non-domain environment and how to provide usrname,pass?
@jeffbearden7946
@jeffbearden7946 6 ай бұрын
❤where can we find this scripts? Do you have a GitHub?
@PC-Addicts
@PC-Addicts 3 ай бұрын
Sorry never set one up yet. Time isn't on my side at the moment.
@jblack8149
@jblack8149 Жыл бұрын
Your links don’t work anymore.
@PC-Addicts
@PC-Addicts Жыл бұрын
Yeah, I took down the site (was costing me money and not worth keeping it around). Hit me up and I will try and help provide whatever ya need.
@mrkleen340
@mrkleen340 12 жыл бұрын
I meant to writeup a script that utilizes this and share but I've yet to find the time. Until then if anyone is curious it looks like there is a WMI Client package offered by orvant.
@1971chappy
@1971chappy 9 жыл бұрын
How do you have your security setup for using Powershell on your network? I work at a school board and would love to be able to remote out to teacher laptops to check driver versions and setup printers remotely using Power Shell but I believe it is restricted right now. Any advice how to allow remote access via Power Shell without compromising security? Thanks,
@thewatcher_476
@thewatcher_476 8 жыл бұрын
change the execution restriction thingy to UnsignedRemote or something like that. It requires all remote scripts to be signed. or just change it to signed so all scripts have to be signed
@kbriaz
@kbriaz 7 жыл бұрын
You need to enable 'psremoting' on all computers, to be able to remote on to them. Also, u need admin rights.
@abiodundami
@abiodundami 8 ай бұрын
I need a powershell script that can check what computers are online or offline and will email me a list of computers that need to be restarted.
@Quiver92
@Quiver92 6 жыл бұрын
Try OCS-ng or sonething in this style for this purposes.
@Marki02
@Marki02 2 жыл бұрын
damn I'm kinda late but this motivated me to do more powershell
@PC-Addicts
@PC-Addicts 2 жыл бұрын
Hell ya!
@PC-Addicts
@PC-Addicts 12 жыл бұрын
Thanks! When you say "the same way", would you mind being a tad bit more specific? I want to find out what people want to watch/learn/etc... Thanks man! :)
@jakeh4236
@jakeh4236 8 жыл бұрын
how do you print a word document or text file from powershell or powershell ise?
@MikeGuilmot
@MikeGuilmot 6 жыл бұрын
docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/out-printer?view=powershell-5.1
@HarmonicaMustang
@HarmonicaMustang 6 жыл бұрын
Interesting, however I don't see anything that can't be achieved using WMIC in cmd. For example Get-LoggedIn can be achieved with; wmic /node:'hostname' computersystem get username I guess its nice to have these scripts run from a short command, however when I need to access data like this its not imperative to be as fast as possible. Just my observation.
@AStrangersBaby
@AStrangersBaby 6 жыл бұрын
very helpful- thanks for the effort!
@pierre-richardbeaubrun5063
@pierre-richardbeaubrun5063 Ай бұрын
great video
@The3DComputerMan
@The3DComputerMan 12 жыл бұрын
is it hard to work in a hospital? Whats the uptime like. Do they still run Windows XP or 7. What type of servers are there like the software. Windows Servers or Linux?
@skeeveskeeve
@skeeveskeeve 5 жыл бұрын
Great video, thanks for posting. I am a total windows noob - does windows not already have built in commands that would provide these functions? I hate to be "that guy", but everything you did with a script is just a built in command in Linux.
@EIDEID99
@EIDEID99 8 жыл бұрын
Would you explain how can I retrieve all users having local admin privilege ?
@MikeGuilmot
@MikeGuilmot 6 жыл бұрын
gallery.technet.microsoft.com/scriptcenter/Get-the-Membership-of-09367c08
@rkb8080
@rkb8080 3 жыл бұрын
Excellent
@PC-Addicts
@PC-Addicts 3 жыл бұрын
Thanks!
@ДастинСпилберг
@ДастинСпилберг 8 жыл бұрын
Greate job, it-bro! Thank you very very!
@erikplachta
@erikplachta 7 жыл бұрын
Awesome video, ty
@Jason666Clark
@Jason666Clark 11 жыл бұрын
Did you code that in c++? It looks similar?
@kfalconspb
@kfalconspb 10 жыл бұрын
Great Share!
@z1ggy53
@z1ggy53 12 жыл бұрын
Thanks, Good stuff!!!
@PC-Addicts
@PC-Addicts 12 жыл бұрын
Welcome :)
@PC-Addicts
@PC-Addicts Жыл бұрын
Curious: Is anyone out there looking for more PowerShell-related videos?
@reggieperrin8415
@reggieperrin8415 Жыл бұрын
Hi, just learning Powershell, so would be interested in your videos. Can I get a copy of your scripts? Ta.
@PC-Addicts
@PC-Addicts Жыл бұрын
@@reggieperrin8415 Thanks for your feedback! I am planning to put some out on Github in the near future!
@Laguy211
@Laguy211 12 жыл бұрын
Thanks, I really want to learn some PowerShell and you know have power over my PC even though I already have it but you get the point lol
@RK-ly5qj
@RK-ly5qj 3 жыл бұрын
Oh that might be handy, thx ^^
@endercn6871
@endercn6871 6 жыл бұрын
Thank you
@PC-Addicts
@PC-Addicts 12 жыл бұрын
Me? Not at all...
@SamMelik
@SamMelik 10 жыл бұрын
Subscribed! :)
@aussieraver7182
@aussieraver7182 3 жыл бұрын
For once in my Career, I can read a foreign language/syntax and have a vague understand as to what is going on logically. P:S. LOL @ 2:42
@mayankpurushottam2150
@mayankpurushottam2150 2 жыл бұрын
SUperlike
@PC-Addicts
@PC-Addicts 11 жыл бұрын
Nope - PowerShell
PowerShell Scripts
49:37
TechThoughts
Рет қаралды 83 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 41 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 43 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 59 МЛН
Write Your Own Bash Scripts for Automation [Tutorial]
16:35
Null Byte
Рет қаралды 776 М.
Windows PowerShell [01] Introduction
22:43
John Hammond
Рет қаралды 370 М.
Scripting & Automation for Beginners
13:14
IT Career Questions
Рет қаралды 39 М.
PowerShell Made Easy
25:39
Andy Malone MVP
Рет қаралды 108 М.
Learn PowerShell in Less Than 2 Hours
1:48:21
PowerShell Engineer
Рет қаралды 318 М.
Top 5 Useful PowerShell Commands
18:52
ACI Learning
Рет қаралды 33 М.
8 Most USEFUL Windows POWERSHELL Commands You Must Know in 2024
14:15
Learn PowerShell Automation in Less than 1 Hour
43:17
PowerShell Engineer
Рет қаралды 40 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 41 МЛН