MHN
Add a comment on Hacker News →
3 of 78 comments
  1. "I think many of the misconceptions I see on HN about PowerShell (and much of the Windows hate in general, actually) are because the typical use case on HN is quite a bit different than that of an internal IT department of a non-tech company, which is more Microsoft’s focus."

    This, and vice versa that you see in other online communities. Debating your religious position is almost becoming safer than stating your technology choices, which like religion are quite often not your choices to start with.

  2. I dislike windows (and by extension, powershell) because a solution such as changing the port the webserver runs on looks something like:

        New-ItemProperty IIS:\sites\DemoSite -name bindings -value @{protocol="http";bindingInformation=":8081:"}
    
    http://www.iis.net/learn/manage/powershell/powershell-snap-i...

    What did I just modify? Is it persisted to the hard disk? How do i back that up? How do I revert the change? How do I move this change (and 20 others) from one server to another? It's three months later, and I want to do something similar, where can I find the current state of DemoSite and mimic it for DevSite?

    I like plain text. Clearly companies succeed on microsoft products and people make money administering them. Doesn't mean I have to like it.

    1. That example you gave is from 2008. You would use the current PowerShell Cmdlets provided for managing IIS.

        IIS:\>New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 80 -HostHeader TestSite
      
      https://technet.microsoft.com/en-us/library/ee790599.aspx