1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Powershell

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

  1. jk2447

    jk2447 Petabyte Poster Moderator

    5,483
    354
    249
    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: 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, VCP4, CCA (XenApp6.5), MCSA 2012, VCP5, VCP6-NV
  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

    jk2447 Petabyte Poster Moderator

    5,483
    354
    249
    Certifications: 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, VCP4, CCA (XenApp6.5), MCSA 2012, VCP5, VCP6-NV
  4. Sparky
    Highly Decorated Member Award

    Sparky Zettabyte Poster Moderator

    10,190
    296
    319
    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) Security+ Network+ A+
    WIP: Exchange 2007\2010
  5. jk2447

    jk2447 Petabyte Poster Moderator

    5,483
    354
    249
    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: 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, VCP4, CCA (XenApp6.5), MCSA 2012, VCP5, VCP6-NV
  6. Sparky
    Highly Decorated Member Award

    Sparky Zettabyte Poster Moderator

    10,190
    296
    319
    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) Security+ Network+ A+
    WIP: Exchange 2007\2010
  7. jk2447

    jk2447 Petabyte Poster Moderator

    5,483
    354
    249
    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: 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, VCP4, CCA (XenApp6.5), MCSA 2012, VCP5, VCP6-NV
  8. Sparky
    Highly Decorated Member Award

    Sparky Zettabyte Poster Moderator

    10,190
    296
    319
    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) Security+ Network+ A+
    WIP: Exchange 2007\2010
  9. jk2447

    jk2447 Petabyte Poster Moderator

    5,483
    354
    249
    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: 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, VCP4, CCA (XenApp6.5), MCSA 2012, VCP5, VCP6-NV
  10. Phoenix
    Honorary Member

    Phoenix 53656e696f7220 4d6f64

    5,726
    175
    221
    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

    Sparky Zettabyte Poster Moderator

    10,190
    296
    319
    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) Security+ Network+ A+
    WIP: Exchange 2007\2010
  12. Theprof

    Theprof Petabyte Poster Forum Leader

    4,570
    68
    196
    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

    jk2447 Petabyte Poster Moderator

    5,483
    354
    249
    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: 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, VCP4, CCA (XenApp6.5), MCSA 2012, VCP5, VCP6-NV
  14. dmarsh

    dmarsh Terabyte Poster

    3,782
    302
    184
    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
    Certifications: CITP, BSc, HND, SCJP, SCJD, SCWCD, SCBCD, SCEA, N+, Sec+, Proj+, Server+, Linux+, MCTS, MCPD, MCSA, MCITP, CCDH
  15. jk2447

    jk2447 Petabyte Poster Moderator

    5,483
    354
    249
    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: 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, VCP4, CCA (XenApp6.5), MCSA 2012, VCP5, VCP6-NV
  16. wagnerk
    Highly Decorated Member Award

    wagnerk aka kitkatninja Moderator

    10,831
    357
    341
    Same here.

    -Ken
     
    Certifications: CITP, PGCert, BSc, HNC, LCGI, PTLLS, MCT, MCITP, MCTS, MCSE, MCSA:M, MCSA, MCDST, MCP, MTA, MCAS, MOS (Master), A+, N+, S+, ACA, VCA, etc... & 2nd Degree Black Belt
    WIP: PGDip
  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

    jk2447 Petabyte Poster Moderator

    5,483
    354
    249
    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: 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, VCP4, CCA (XenApp6.5), MCSA 2012, VCP5, VCP6-NV
  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

    jk2447 Petabyte Poster Moderator

    5,483
    354
    249
    Good man :)
     
    Certifications: 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, VCP4, CCA (XenApp6.5), MCSA 2012, VCP5, VCP6-NV

Share This Page

Loading...