ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    What Are You Doing Right Now

    Water Closet
    time waster
    285
    88.9k
    41.7m
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • EddieJenningsE
      EddieJennings @Obsolesce
      last edited by

      @Obsolesce said in What Are You Doing Right Now:

      @EddieJennings said in What Are You Doing Right Now:

      This will sound super-n00bish, but oh well. $args in PowerShell has changed my life. That is all. Continue with your regularly scheduled ML trolling, lurking, and posting.

      How so?

      I really only ever used it to check for extra arguments/parameters in my functions / scripts to output an error if the $args.count is higher than it should be, for example.

      What are you using it for?

      I'm working on a script right now that will make use of start-job and using $args lets me pass the value of a variable between scopes. In this case, I'd be passing a value from earlier in the script into the start-job scriptblock.

      dafyreD 1 Reply Last reply Reply Quote 0
      • dafyreD
        dafyre @EddieJennings
        last edited by

        @EddieJennings said in What Are You Doing Right Now:

        @Obsolesce said in What Are You Doing Right Now:

        @EddieJennings said in What Are You Doing Right Now:

        This will sound super-n00bish, but oh well. $args in PowerShell has changed my life. That is all. Continue with your regularly scheduled ML trolling, lurking, and posting.

        How so?

        I really only ever used it to check for extra arguments/parameters in my functions / scripts to output an error if the $args.count is higher than it should be, for example.

        What are you using it for?

        I'm working on a script right now that will make use of start-job and using $args lets me pass the value of a variable between scopes. In this case, I'd be passing a value from earlier in the script into the start-job scriptblock.

        Man, it took me forever to figure out how to do something similar!

        EddieJenningsE ObsolesceO 2 Replies Last reply Reply Quote 1
        • EddieJenningsE
          EddieJennings @dafyre
          last edited by

          @dafyre said in What Are You Doing Right Now:

          @EddieJennings said in What Are You Doing Right Now:

          @Obsolesce said in What Are You Doing Right Now:

          @EddieJennings said in What Are You Doing Right Now:

          This will sound super-n00bish, but oh well. $args in PowerShell has changed my life. That is all. Continue with your regularly scheduled ML trolling, lurking, and posting.

          How so?

          I really only ever used it to check for extra arguments/parameters in my functions / scripts to output an error if the $args.count is higher than it should be, for example.

          What are you using it for?

          I'm working on a script right now that will make use of start-job and using $args lets me pass the value of a variable between scopes. In this case, I'd be passing a value from earlier in the script into the start-job scriptblock.

          Man, it took me forever to figure out how to do something similar!

          Hence, my life being changed 😄

          dafyreD 1 Reply Last reply Reply Quote 1
          • dafyreD
            dafyre @EddieJennings
            last edited by

            @EddieJennings said in What Are You Doing Right Now:

            @dafyre said in What Are You Doing Right Now:

            @EddieJennings said in What Are You Doing Right Now:

            @Obsolesce said in What Are You Doing Right Now:

            @EddieJennings said in What Are You Doing Right Now:

            This will sound super-n00bish, but oh well. $args in PowerShell has changed my life. That is all. Continue with your regularly scheduled ML trolling, lurking, and posting.

            How so?

            I really only ever used it to check for extra arguments/parameters in my functions / scripts to output an error if the $args.count is higher than it should be, for example.

            What are you using it for?

            I'm working on a script right now that will make use of start-job and using $args lets me pass the value of a variable between scopes. In this case, I'd be passing a value from earlier in the script into the start-job scriptblock.

            Man, it took me forever to figure out how to do something similar!

            Hence, my life being changed 😄

            What are you doing with start-job ? I've not had a good reason to use that yet.

            EddieJenningsE 1 Reply Last reply Reply Quote 0
            • B
              bnrstnr @black3dynamite
              last edited by

              @black3dynamite said in What Are You Doing Right Now:

              @dbeato said in What Are You Doing Right Now:

              One thing I hate about XCP-ng is the lack of support for UEFI...

              It's been awhile but does it support other filesystems like ext4 or xfs and is it still using .vhd files?

              The EXT4 driver is in public beta since mid Jan.

              It looks like whenever SMAPIv3 is production ready we'll have qcow2 as an option... who knows when that is? Maybe when XS8 drops? I believe the ZFS driver is also in beta and will be production ready shortly after SMAPIv3

              1 Reply Last reply Reply Quote 0
              • EddieJenningsE
                EddieJennings @dafyre
                last edited by

                @dafyre said in What Are You Doing Right Now:

                @EddieJennings said in What Are You Doing Right Now:

                @dafyre said in What Are You Doing Right Now:

                @EddieJennings said in What Are You Doing Right Now:

                @Obsolesce said in What Are You Doing Right Now:

                @EddieJennings said in What Are You Doing Right Now:

                This will sound super-n00bish, but oh well. $args in PowerShell has changed my life. That is all. Continue with your regularly scheduled ML trolling, lurking, and posting.

                How so?

                I really only ever used it to check for extra arguments/parameters in my functions / scripts to output an error if the $args.count is higher than it should be, for example.

                What are you using it for?

                I'm working on a script right now that will make use of start-job and using $args lets me pass the value of a variable between scopes. In this case, I'd be passing a value from earlier in the script into the start-job scriptblock.

                Man, it took me forever to figure out how to do something similar!

                Hence, my life being changed 😄

                What are you doing with start-job ? I've not had a good reason to use that yet.

                Because of an $issue I have a script that runs periodically that checks the max RAM available for VMs within certain Citrix silos. At its core, the script runs Get-WMIObject against the servers. Every once in a while we have a server that's online, but for some reason is having a problem, which bascially causes the WMI query to never time out nor finish.

                My plan is to rewrite the script to use jobs, which I can kill after X amount of time. Doing this will allow my script to return 3 possible results: 1. VM is showing the issue with RAM. 2. VM is offline, and now 3. VM is online, but WMI query is taking longer than it should -- go investigate.

                1 Reply Last reply Reply Quote 1
                • zachary715Z
                  zachary715 @dbeato
                  last edited by

                  @dbeato said in What Are You Doing Right Now:

                  @dbeato said in What Are You Doing Right Now:

                  Finished setting up BookStack with LDAP

                  What a pain but is all good.

                  This is something I've been looking at doing just haven't stopped to play with yet. Any bumps you ran into that you're willing to share please do to minimize my pains :face_with_stuck-out_tongue:

                  1 Reply Last reply Reply Quote 0
                  • zachary715Z
                    zachary715
                    last edited by

                    Don't know if there are any baseball fans in here, but yesterday's Opening Day games were crazy! Very excited to have baseball back.

                    WrCombsW EddieJenningsE jmooreJ 3 Replies Last reply Reply Quote 0
                    • WrCombsW
                      WrCombs @zachary715
                      last edited by

                      @zachary715 said in What Are You Doing Right Now:

                      Don't know if there are any baseball fans in here, but yesterday's Opening Day games were crazy! Very excited to have baseball back.

                      Didn't get to watch any yesterday - work got in the way

                      zachary715Z 1 Reply Last reply Reply Quote 0
                      • zachary715Z
                        zachary715 @WrCombs
                        last edited by

                        @WrCombs said in What Are You Doing Right Now:

                        @zachary715 said in What Are You Doing Right Now:

                        Don't know if there are any baseball fans in here, but yesterday's Opening Day games were crazy! Very excited to have baseball back.

                        Didn't get to watch any yesterday - work got in the way

                        Here's some quick highlights when you get some time... https://www.mlb.com/news/memorable-moments-from-opening-day-2019

                        WrCombsW 1 Reply Last reply Reply Quote 0
                        • EddieJenningsE
                          EddieJennings @zachary715
                          last edited by

                          @zachary715 said in What Are You Doing Right Now:

                          Don't know if there are any baseball fans in here, but yesterday's Opening Day games were crazy! Very excited to have baseball back.

                          I was able to catch the last few innings of the A's game. Unfortunately, this was game 3 for the A's, since they and Seattle played two regular season games in Japan a week ago.

                          <rant>
                          It boils my blood that they had to play two regular season games and be in the appropriate mindset for it, and then play three more exhibitions games.
                          </rant>

                          zachary715Z 1 Reply Last reply Reply Quote 0
                          • WrCombsW
                            WrCombs @zachary715
                            last edited by

                            @zachary715 said in What Are You Doing Right Now:

                            @WrCombs said in What Are You Doing Right Now:

                            @zachary715 said in What Are You Doing Right Now:

                            Don't know if there are any baseball fans in here, but yesterday's Opening Day games were crazy! Very excited to have baseball back.

                            Didn't get to watch any yesterday - work got in the way

                            Here's some quick highlights when you get some time... https://www.mlb.com/news/memorable-moments-from-opening-day-2019

                            Sounds like an amazing opening day.
                            Kind of salty that I missed it.

                            1 Reply Last reply Reply Quote 0
                            • zachary715Z
                              zachary715 @EddieJennings
                              last edited by

                              @EddieJennings said in What Are You Doing Right Now:

                              @zachary715 said in What Are You Doing Right Now:

                              Don't know if there are any baseball fans in here, but yesterday's Opening Day games were crazy! Very excited to have baseball back.

                              I was able to catch the last few innings of the A's game. Unfortunately, this was game 3 for the A's, since they and Seattle played two regular season games in Japan a week ago.

                              <rant>
                              It boils my blood that they had to play two regular season games and be in the appropriate mindset for it, and then play three more exhibitions games.
                              </rant>

                              That was a great experience for the people of Japan getting to see their hometown legend as he goes out into retirement. Not ideal for the A's maybe, but part of the MLB efforts to expand the game into other parts of the world. The team I follow, the Reds, will be playing down in Mexico in a couple weeks and then later in the year there will be a game or two in London.

                              1 Reply Last reply Reply Quote 0
                              • ObsolesceO
                                Obsolesce @dafyre
                                last edited by Obsolesce

                                @dafyre said in What Are You Doing Right Now:

                                @EddieJennings said in What Are You Doing Right Now:

                                @Obsolesce said in What Are You Doing Right Now:

                                @EddieJennings said in What Are You Doing Right Now:

                                This will sound super-n00bish, but oh well. $args in PowerShell has changed my life. That is all. Continue with your regularly scheduled ML trolling, lurking, and posting.

                                How so?

                                I really only ever used it to check for extra arguments/parameters in my functions / scripts to output an error if the $args.count is higher than it should be, for example.

                                What are you using it for?

                                I'm working on a script right now that will make use of start-job and using $args lets me pass the value of a variable between scopes. In this case, I'd be passing a value from earlier in the script into the start-job scriptblock.

                                Man, it took me forever to figure out how to do something similar!

                                You could just set the -scope of the variable to global...

                                EddieJenningsE 1 Reply Last reply Reply Quote 0
                                • EddieJenningsE
                                  EddieJennings @Obsolesce
                                  last edited by

                                  @Obsolesce said in What Are You Doing Right Now:

                                  @dafyre said in What Are You Doing Right Now:

                                  @EddieJennings said in What Are You Doing Right Now:

                                  @Obsolesce said in What Are You Doing Right Now:

                                  @EddieJennings said in What Are You Doing Right Now:

                                  This will sound super-n00bish, but oh well. $args in PowerShell has changed my life. That is all. Continue with your regularly scheduled ML trolling, lurking, and posting.

                                  How so?

                                  I really only ever used it to check for extra arguments/parameters in my functions / scripts to output an error if the $args.count is higher than it should be, for example.

                                  What are you using it for?

                                  I'm working on a script right now that will make use of start-job and using $args lets me pass the value of a variable between scopes. In this case, I'd be passing a value from earlier in the script into the start-job scriptblock.

                                  Man, it took me forever to figure out how to do something similar!

                                  You could just set the -scope of the variable to global...

                                  I've never used -scope when defining a variable. I'll have to try that out. 🙂

                                  ObsolesceO dafyreD 2 Replies Last reply Reply Quote 0
                                  • ObsolesceO
                                    Obsolesce @EddieJennings
                                    last edited by

                                    @EddieJennings said in What Are You Doing Right Now:

                                    @Obsolesce said in What Are You Doing Right Now:

                                    @dafyre said in What Are You Doing Right Now:

                                    @EddieJennings said in What Are You Doing Right Now:

                                    @Obsolesce said in What Are You Doing Right Now:

                                    @EddieJennings said in What Are You Doing Right Now:

                                    This will sound super-n00bish, but oh well. $args in PowerShell has changed my life. That is all. Continue with your regularly scheduled ML trolling, lurking, and posting.

                                    How so?

                                    I really only ever used it to check for extra arguments/parameters in my functions / scripts to output an error if the $args.count is higher than it should be, for example.

                                    What are you using it for?

                                    I'm working on a script right now that will make use of start-job and using $args lets me pass the value of a variable between scopes. In this case, I'd be passing a value from earlier in the script into the start-job scriptblock.

                                    Man, it took me forever to figure out how to do something similar!

                                    You could just set the -scope of the variable to global...

                                    I've never used -scope when defining a variable. I'll have to try that out. 🙂

                                    https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/set-variable?view=powershell-5.1

                                    Change to version 6 documentation if you are using that.

                                    1 Reply Last reply Reply Quote 1
                                    • jmooreJ
                                      jmoore @zachary715
                                      last edited by

                                      @zachary715 I missed them all unfortunately and I hate that.

                                      zachary715Z 1 Reply Last reply Reply Quote 0
                                      • zachary715Z
                                        zachary715 @jmoore
                                        last edited by

                                        @jmoore said in What Are You Doing Right Now:

                                        @zachary715 I missed them all unfortunately and I hate that.

                                        Well I've got good news for you. There's 161 games left to be played :winking_face:

                                        jmooreJ 1 Reply Last reply Reply Quote 0
                                        • jmooreJ
                                          jmoore @zachary715
                                          last edited by

                                          @zachary715 haha yeah!

                                          1 Reply Last reply Reply Quote 0
                                          • LilAngL
                                            LilAng
                                            last edited by

                                            Brewing half caffeine coffee. Because its the weekend and i need all the sleep i can get

                                            WrCombsW 1 Reply Last reply Reply Quote 1
                                            • 1
                                            • 2
                                            • 3521
                                            • 3522
                                            • 3523
                                            • 3524
                                            • 3525
                                            • 4443
                                            • 4444
                                            • 3523 / 4444
                                            • First post
                                              Last post