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

Need help with powershell script

Discussion in 'Programming/Html' started by WhiteLightning, Feb 27, 2019.

  1. WhiteLightning

    WhiteLightning Don Illuminati Staff Member

    Messages:
    27,530
    Likes Received:
    574
    GPU:
    GTX1070 iChillx4


    Name Value
    ---- -----
    PSVersion 5.1.17763.316
    PSEdition Desktop
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    BuildVersion 10.0.17763.316
    CLRVersion 4.0.30319.42000
    WSManStackVersion 3.0
    PSRemotingProtocolVersion 2.3
    SerializationVersion 1.1.0.1
     
  2. mbk1969

    mbk1969 Ancient Guru

    Messages:
    6,740
    Likes Received:
    3,102
    GPU:
    GeForce GTX 1070
    @WhiteLightning

    Try to insert the line

    $null = [System.Reflection.Assembly]::Load("System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")

    before the

    # initialize the template features
    $templateFeatures = [System.Xml.Linq.XElement]:–†arse(


    Code:
    $null = [System.Reflection.Assembly]::Load("System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")
    
    # initialize the template features
    $templateFeatures = [System.Xml.Linq.XElement]::Parse(
    
     
    WhiteLightning likes this.
  3. mbk1969

    mbk1969 Ancient Guru

    Messages:
    6,740
    Likes Received:
    3,102
    GPU:
    GeForce GTX 1070
    And don`t forget to try the script on test files, just in case.
     
  4. WhiteLightning

    WhiteLightning Don Illuminati Staff Member

    Messages:
    27,530
    Likes Received:
    574
    GPU:
    GTX1070 iChillx4
    @mbk1969

    It works!
    You are awesome man, thanks a lot !
     

  5. jbmcmillan

    jbmcmillan Ancient Guru

    Messages:
    2,576
    Likes Received:
    128
    GPU:
    Gigabyte G1 Gaming GTX970
    Way above this 65 year old mind but I find this stuff fascinating.
     
    WhiteLightning likes this.
  6. WhiteLightning

    WhiteLightning Don Illuminati Staff Member

    Messages:
    27,530
    Likes Received:
    574
    GPU:
    GTX1070 iChillx4
    yeah i know what you mean :D
     
  7. jbmcmillan

    jbmcmillan Ancient Guru

    Messages:
    2,576
    Likes Received:
    128
    GPU:
    Gigabyte G1 Gaming GTX970
    I was born too soon I probably would have gone into this stuff lol.
     
  8. mbk1969

    mbk1969 Ancient Guru

    Messages:
    6,740
    Likes Received:
    3,102
    GPU:
    GeForce GTX 1070
    Development is fun!

    PS And PowerShell is a mega thing for developers. I can even call Windows API functions from the script. (It will be trick and cheat but still impressive.)
     
  9. mbk1969

    mbk1969 Ancient Guru

    Messages:
    6,740
    Likes Received:
    3,102
    GPU:
    GeForce GTX 1070
    I studied the programming in the university back in 80s, and it were Fortran, PL/1, Assembler - for mainframes. I am sure you could go into that (cool) stuff even back in 70s.
     
  10. jbmcmillan

    jbmcmillan Ancient Guru

    Messages:
    2,576
    Likes Received:
    128
    GPU:
    Gigabyte G1 Gaming GTX970
    Except you really didn't hear about it on the scale you do even 10 years later in the eighties by then married kids etc life. But personal computers weren't a thing which is what got my interest up when they became commonplace. By then too late for me.
     

Share This Page