PowerTip: Switch and Other Things

PowerTip: Switch and Other Things

  • Comments 3
  • Likes

Summary: Learn to post powerful Windows PowerShell command and other things.

Question: What is the most powerful command in PowerShell?

Answer:  Switch

Question: What is `t used for?

Answer: Tab

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • I would argue that Get-Member or Get-Help could be the most powerful.

  • @JeremyEngleWork Hi Jeremy, of course from an exploration stand point Get-Member or Get-Help are both very important, but what I am thinking of here is the different things the command can do. There are so many ways that the switch command can be used (even to the point of reading a text file) that I believe it is the most flexible command -- and therefore, the most powerful. But of course that is the great thing about a blog ... it promotes an exchange of ideas. I am hoping that my PowerTip quick postings will get people thinking about PowerShell and encourage discussion.

  • Hi Ed and Jeremy,

    if you ask me, I would argue that Add-Type and Import-Module are the most powerful commands in powershell ... but the discussion is not worth to be extended because it all depends on the definition of "most powerful"