use powershell to make your life easy

23
welcome to

Upload: aman-dhally

Post on 28-Jun-2015

609 views

Category:

Technology


3 download

DESCRIPTION

I presented this slide at Barcamp9 event in gurgaon.

TRANSCRIPT

Page 1: Use Powershell to make your life easy

welcome to

Page 2: Use Powershell to make your life easy

MAKE YOUR LIFE EASY WITH : POWERSHELL

Aman Dhally27th April 2013

{w}: www.amandhally.net {t}: @amandhally

{f}: http://www.facebook.com/aman.dhally

^

I.T. / admin

Page 3: Use Powershell to make your life easy

about me

Page 4: Use Powershell to make your life easy

about me.

Page 5: Use Powershell to make your life easy

about me

• 13+ yrs. Of experience in I.T.• Mainly works on Microsoft windows

platform.• Founder of “New Delhi Powershell User

Group”.• Writes articles on www.amandhally.net• Loves to write script and upload them at

TechNet.

Page 6: Use Powershell to make your life easy
Page 7: Use Powershell to make your life easy

“Our Current Position {status}”

not Facebook one,

Page 8: Use Powershell to make your life easy

current position

• Tired doing same stuff again and again.• Angry?, stuff is not working the way we want.• No time for learning new stuff.• Work load?

Page 9: Use Powershell to make your life easy

“what ‘we’ ideally want{status}”

Page 10: Use Powershell to make your life easy

what we wants

• Spending more time with the family, rather then at office doing manual work,

• Learning about new stuff , new technologies,• Engaging in leisure activities.

Page 11: Use Powershell to make your life easy

If not, then at least we deserve this.

• OR• At be least worry free and have some free time at office.

:o)

Page 12: Use Powershell to make your life easy

Seems, good, but how?

Page 13: Use Powershell to make your life easy

automation

• Let computer do , what they are suppose to do “to make our life easy.”

• Get rid of all manual task and try to automate using scripts as much as you can.

• Make script your best friends.• Write One and use anywhere you want and at anytime. • Use Powershell, it is very modular scripting language. • Use Powershell Cmdlets.

Page 14: Use Powershell to make your life easy

{ powershell scripting? No way, it is very hard }

Page 15: Use Powershell to make your life easy

It’s easy and

Page 16: Use Powershell to make your life easy

{show me, why should I believe you}

Page 17: Use Powershell to make your life easy

easy scripting

• 20 Lines of code versus one liner cmdlet in Powershell

Page 18: Use Powershell to make your life easy

time saving

• To Find laptop serial number• Process

• Power off the laptop• Turn it backward• Check at the bottom• Turn it on

• Time spent : approx 10 minutes

• Lets use powershell• Run the cmdlet Get-WmiObject win32_ComputerSystemProduct | select Vendor,Version,Name,IdentifyingNumber,UUID

Page 19: Use Powershell to make your life easy

time saving• To Find installed RAM serial number and bank

• I am sure you know the procedure.

• Lets use powershell• Run the cmdlet get-WmiObject win32_Physicalmemory | select Caption,SerialNumber,BankLabel,Capacity,DeviceLocator,PartNumber,Speed

Page 20: Use Powershell to make your life easy

time saving• To check the current Static IP of the internet.

• Open www.whatismyip.com• It take some time and shows lots of unwanted

advertisements.

• Why not to use powershell.• The script just takes 4 seconds to complete

Page 21: Use Powershell to make your life easy

Why not to, create our own “toys” as per our needs ;)

Page 22: Use Powershell to make your life easy

QUESTIONS?

Page 23: Use Powershell to make your life easy

Thanks. {w}: www.amandhally.net {t}: @amandhally {f}: http://www.facebook.com/aman.dhally