Powershell

Discussion in 'Scripting & Programming' started by JK2447, Jun 11, 2011.

  1. JK2447
    Highly Decorated Member Award 500 Likes Award

    JK2447 Petabyte Poster Administrator Premium Member

    7,200
    951
    318
    So been studying Powershell for work and so far finding it very interesting. Does anyone know of any good resources on this? Books, websites, cbt's that you have used.

    Used Powershell? What are your thoughts?
     
    Certifications: VCP4, 5, 6, 6.5, 6.7, 7, 8, VCAP DCV Design, VMConAWS Skill, Google Cloud Digital Leader, BSc (Hons), HND IT, HND Computing, ITIL-F, MBCS CITP, MCP (270,290,291,293,294,298,299,410,411,412) MCTS (401,620,624,652) MCSA:Security, MCSE: Security, Security+, CPTS, CCA (XenApp6.5), MCSA 2012, VSP, VTSP
    WIP: Google Cloud Certs
  2. ThomasMc

    ThomasMc Gigabyte Poster

    1,507
    49
    111
    Might be worth suggesting this one since your going down the VMware route

    Amazon.com: VMware vSphere PowerCLI Reference: Automating vSphere Administration (9780470890790): Luc Dekens, Alan Renouf, Glenn Sizemore, Arnim van Lieshout, Jonathan Medd: Books
     
    Certifications: MCDST|FtOCC
    WIP: MCSA(70-270|70-290|70-291)
  3. JK2447
    Highly Decorated Member Award 500 Likes Award

    JK2447 Petabyte Poster Administrator Premium Member

    7,200
    951
    318
    Certifications: VCP4, 5, 6, 6.5, 6.7, 7, 8, VCAP DCV Design, VMConAWS Skill, Google Cloud Digital Leader, BSc (Hons), HND IT, HND Computing, ITIL-F, MBCS CITP, MCP (270,290,291,293,294,298,299,410,411,412) MCTS (401,620,624,652) MCSA:Security, MCSE: Security, Security+, CPTS, CCA (XenApp6.5), MCSA 2012, VSP, VTSP
    WIP: Google Cloud Certs
  4. Sparky
    Highly Decorated Member Award 500 Likes Award

    Sparky Zettabyte Poster Moderator

    10,718
    543
    364
    Exchange powershell was very helpful when I had to bulk create 1000 mailboxes for users already in AD. Was migrating from a non MS mail system at the time.

    Don't use it day to day so always need to read up on it before the next migration project :)
     
    Certifications: MSc MCSE MCSA:M MCSA:S MCITP:EA MCTS(x5) MS-900 AZ-900 Security+ Network+ A+
    WIP: Microsoft Certs
  5. JK2447
    Highly Decorated Member Award 500 Likes Award

    JK2447 Petabyte Poster Administrator Premium Member

    7,200
    951
    318
    Nice one mate handy to know things people use this for in the field. I think we could benefit greatly from this but we are all vbscript at the min, but times they are a changin
     
    Certifications: VCP4, 5, 6, 6.5, 6.7, 7, 8, VCAP DCV Design, VMConAWS Skill, Google Cloud Digital Leader, BSc (Hons), HND IT, HND Computing, ITIL-F, MBCS CITP, MCP (270,290,291,293,294,298,299,410,411,412) MCTS (401,620,624,652) MCSA:Security, MCSE: Security, Security+, CPTS, CCA (XenApp6.5), MCSA 2012, VSP, VTSP
    WIP: Google Cloud Certs
  6. Sparky
    Highly Decorated Member Award 500 Likes Award

    Sparky Zettabyte Poster Moderator

    10,718
    543
    364
    I’m surprised at the amount of techs who don’t use scripting, even batch files.

    I’m auditing a network just now and each user (all 50 of them) have their own batch file, older batch files are in the sysvol directory so there is around 100 batch files there.

    Could easily be fixed by using %username% in the batch file <sigh>
     
    Certifications: MSc MCSE MCSA:M MCSA:S MCITP:EA MCTS(x5) MS-900 AZ-900 Security+ Network+ A+
    WIP: Microsoft Certs
  7. JK2447
    Highly Decorated Member Award 500 Likes Award

    JK2447 Petabyte Poster Administrator Premium Member

    7,200
    951
    318
    Bloomin heck, maybe its a cultural thing because even tho I'm new to scripting its used heavily in our place and batch files are a must for some tasks. There's no way I'm going to use the pstools on more than a few machines without a batch file.

    I'm loving this powershell stuff tho. Its always put me off that I'd have to learn VBScript for some reason, I'm not sure why. Now that MS has Powershell and is driving it I quite fancy becoming "the powershell" guy on my team.
     
    Certifications: VCP4, 5, 6, 6.5, 6.7, 7, 8, VCAP DCV Design, VMConAWS Skill, Google Cloud Digital Leader, BSc (Hons), HND IT, HND Computing, ITIL-F, MBCS CITP, MCP (270,290,291,293,294,298,299,410,411,412) MCTS (401,620,624,652) MCSA:Security, MCSE: Security, Security+, CPTS, CCA (XenApp6.5), MCSA 2012, VSP, VTSP
    WIP: Google Cloud Certs
  8. Sparky
    Highly Decorated Member Award 500 Likes Award

    Sparky Zettabyte Poster Moderator

    10,718
    543
    364
    Definitely a good skill to have mate.

    I haven’t done any vbscript in a while but I didn’t mind doing it as I used to code Visual Basic apps a while back (was in VB 6!). I used to write the whole script in notepad and then save it as a .vbs file &#8211; dunno what I was thinking! :)
     
    Certifications: MSc MCSE MCSA:M MCSA:S MCITP:EA MCTS(x5) MS-900 AZ-900 Security+ Network+ A+
    WIP: Microsoft Certs
  9. JK2447
    Highly Decorated Member Award 500 Likes Award

    JK2447 Petabyte Poster Administrator Premium Member

    7,200
    951
    318
    Bah sounds like how the experts do it to me :) I think its quite understated how many brownie points there are to be had scripting some of the more monotonous tasks. I like that theres plenty of resources on the net that will help you if you want to do something specific too. Its just figuring out whats worth the time to figure the script out isn't it I find
     
    Certifications: VCP4, 5, 6, 6.5, 6.7, 7, 8, VCAP DCV Design, VMConAWS Skill, Google Cloud Digital Leader, BSc (Hons), HND IT, HND Computing, ITIL-F, MBCS CITP, MCP (270,290,291,293,294,298,299,410,411,412) MCTS (401,620,624,652) MCSA:Security, MCSE: Security, Security+, CPTS, CCA (XenApp6.5), MCSA 2012, VSP, VTSP
    WIP: Google Cloud Certs
  10. Phoenix
    Honorary Member

    Phoenix 53656e696f7220 4d6f64

    5,749
    200
    246
    most windows admins have not been around long enough to be comfortable scripting
    most unix admins who work with windows never liked the limitations of the cmd shell

    Powershell has really helped to change a lot of that :)
    its just hard for GUI whores to get their heads around first time, its a great and powerful tool once you put the time in though

    I tell people who work in an MS world, if you want to stay rel event, learn IPv6 and PowerShell, they are not going anywhere
     
    Certifications: MCSE, MCITP, VCP
    WIP: > 0
  11. Sparky
    Highly Decorated Member Award 500 Likes Award

    Sparky Zettabyte Poster Moderator

    10,718
    543
    364
    Yup, definitely plenty resources on the web. Best to build up a collection of scripts and then just tweak them as needed (e.g server names).
     
    Certifications: MSc MCSE MCSA:M MCSA:S MCITP:EA MCTS(x5) MS-900 AZ-900 Security+ Network+ A+
    WIP: Microsoft Certs
  12. Theprof

    Theprof Petabyte Poster

    4,607
    83
    211
    I did not have a chance to use it much either... Only for Exchange, Sharepoint and SCCM but it was little tasks here and there...
     
    Certifications: A+ | CCA | CCAA | Network+ | MCDST | MCSA | MCP (270, 271, 272, 290, 291) | MCTS (70-662, 70-663) | MCITP:EMA | VCA-DCV/Cloud/WM | VTSP | VCP5-DT | VCP5-DCV
    WIP: VCAP5-DCA/DCD | EMCCA
  13. JK2447
    Highly Decorated Member Award 500 Likes Award

    JK2447 Petabyte Poster Administrator Premium Member

    7,200
    951
    318
    I particularly like the way MS have been decent enough to cater for our *nix brethren by allowing the commands that have a lot in commonto perform the same action in powershell, ls and dir spring to mind, quite a move on MS's part and very well played IMHO
     
    Certifications: VCP4, 5, 6, 6.5, 6.7, 7, 8, VCAP DCV Design, VMConAWS Skill, Google Cloud Digital Leader, BSc (Hons), HND IT, HND Computing, ITIL-F, MBCS CITP, MCP (270,290,291,293,294,298,299,410,411,412) MCTS (401,620,624,652) MCSA:Security, MCSE: Security, Security+, CPTS, CCA (XenApp6.5), MCSA 2012, VSP, VTSP
    WIP: Google Cloud Certs
  14. dmarsh
    Honorary Member 500 Likes Award

    dmarsh Petabyte Poster

    4,305
    503
    259
    NT was originally designed to have full posix support and has a posix subsystem, then there was Unix tools for windows, failing that there is always cygwin.

    Agreed Powershell is a good move though, and I was always put off by vbscript too. I think the lack of scripting use on windows does say something about the ability of the average windows admin :wink:
     
    Last edited: Jun 22, 2011
  15. JK2447
    Highly Decorated Member Award 500 Likes Award

    JK2447 Petabyte Poster Administrator Premium Member

    7,200
    951
    318
    Possibly so mate, I wouldn't know as I intend to be bad a$$ :) Seriously tho, there are a fair few plodders in my game I've noticed. Each to their own but not my style
     
    Certifications: VCP4, 5, 6, 6.5, 6.7, 7, 8, VCAP DCV Design, VMConAWS Skill, Google Cloud Digital Leader, BSc (Hons), HND IT, HND Computing, ITIL-F, MBCS CITP, MCP (270,290,291,293,294,298,299,410,411,412) MCTS (401,620,624,652) MCSA:Security, MCSE: Security, Security+, CPTS, CCA (XenApp6.5), MCSA 2012, VSP, VTSP
    WIP: Google Cloud Certs
  16. Kitkatninja
    Highly Decorated Member Award 500 Likes Award

    Kitkatninja aka me, myself & I Moderator

    11,143
    559
    383
    Same here.

    -Ken
     
    Certifications: MSc, PGDip, PGCert, BSc, HNC, LCGI, MBCS CITP, MCP, MCSA, MCSE, MCE, A+, N+, S+, Server+
    WIP: MSc Cyber Security
  17. ChrisH1979

    ChrisH1979 Byte Poster

    225
    9
    37
    I don't understand these people who seem to get by without scripting. You get the same people always asking for simple scripts like checking to see if a file exists etc....... I love VBScript and have built up quite a collection of my own stuff, so much so now that most of my new scripts are copied and pasted from my other stuff and minor changes made. I haven't done much stuff in PS but I am making the effort to do any newer stuff in it so I can learn the syntax.
     
    Certifications: MCITP:SA, MCSA, MCTS:Win 7, Application Infrastructure
    WIP: MCITP:EA
  18. JK2447
    Highly Decorated Member Award 500 Likes Award

    JK2447 Petabyte Poster Administrator Premium Member

    7,200
    951
    318
    Automating Administration with Windows PowerShell 2.0, 5 day course in London booked for September with Global Knowledge. Really looking forward to this one. Believe it or not, I've never been to London so I will be doing the whole tourist thing after each day :) Everyone I've told that too doesn't believe me for some reason ha ha I will let you know how it goes. I am a fan of GK after my VCP course tbh. Objectives:

    Explain how Windows PowerShell works
    Use Windows PowerShell as an interactive, command-line shell
    Use Core Windows PowerShell cmdlets for everyday purpose
    Customize the output using Windows PowerShell Formatting Subsystem
    Explain what Windows Management Instrumentation (WMI) is and how it can be used from Windows PowerShell
    Manage Active Directory objects using Windows PowerShell cmdlets
    Write basic Windows PowerShell scripts that execute batches of commands
    Work with Windows PowerShell’s background jobs and remote administration functionality
    Masterthe scripting language of Windows PowerShell
    Use advancedtechniques related to structured programming within Windows PowerShell
    Automate Windows Server 2008 R2 Administration using Windows PowerShell
    Identify the best practices for working with Windows PowerShell
     
    Certifications: VCP4, 5, 6, 6.5, 6.7, 7, 8, VCAP DCV Design, VMConAWS Skill, Google Cloud Digital Leader, BSc (Hons), HND IT, HND Computing, ITIL-F, MBCS CITP, MCP (270,290,291,293,294,298,299,410,411,412) MCTS (401,620,624,652) MCSA:Security, MCSE: Security, Security+, CPTS, CCA (XenApp6.5), MCSA 2012, VSP, VTSP
    WIP: Google Cloud Certs
  19. ChrisH1979

    ChrisH1979 Byte Poster

    225
    9
    37
    Looks good, I will just have to stick to a good book as usual :)

    Edit: Dam you I couldn't resist, already been on Amazon and added to my kindle library :lol:
     
    Last edited: Aug 5, 2011
    Certifications: MCITP:SA, MCSA, MCTS:Win 7, Application Infrastructure
    WIP: MCITP:EA
  20. JK2447
    Highly Decorated Member Award 500 Likes Award

    JK2447 Petabyte Poster Administrator Premium Member

    7,200
    951
    318
    Good man :)
     
    Certifications: VCP4, 5, 6, 6.5, 6.7, 7, 8, VCAP DCV Design, VMConAWS Skill, Google Cloud Digital Leader, BSc (Hons), HND IT, HND Computing, ITIL-F, MBCS CITP, MCP (270,290,291,293,294,298,299,410,411,412) MCTS (401,620,624,652) MCSA:Security, MCSE: Security, Security+, CPTS, CCA (XenApp6.5), MCSA 2012, VSP, VTSP
    WIP: Google Cloud Certs

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.