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

    Random Thread - Anything Goes

    Water Closet
    time waster cat pics
    141
    21.5k
    9.6m
    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.
    • GreyG
      Grey @EddieJennings
      last edited by

      @EddieJennings said in Random Thread - Anything Goes:

      My whiteboard 🙂
      0_1497283382211_image.jpg

      If that's actually a whiteboard, then it's very remarkable.

      1 Reply Last reply Reply Quote 3
      • EddieJenningsE
        EddieJennings @wirestyle22
        last edited by

        @wirestyle22 Ha!

        1 Reply Last reply Reply Quote 0
        • DustinB3403D
          DustinB3403
          last edited by

          haha...

          https://i.redditmedia.com/mJxRW1GJUol4dCH4D-vJPP9AwAislEmCfCXuS1yoq_k.png?w=684&s=92092f8410233e95e7a6484a886fe1a0

          1 Reply Last reply Reply Quote 3
          • scottalanmillerS
            scottalanmiller
            last edited by

            0_1497329931412_IMG_6522.JPG

            1 Reply Last reply Reply Quote 1
            • EddieJenningsE
              EddieJennings
              last edited by

              Why can't I have free -h in Powershell? 😞

              scottalanmillerS 1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @EddieJennings
                last edited by

                @EddieJennings said in Random Thread - Anything Goes:

                Why can't I have free -h in Powershell? 😞

                You can. Works fine for me.

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller
                  last edited by

                  Free with PS...

                  PowerShell 
                  Copyright (C) Microsoft Corporation. All rights reserved.
                  
                  PS /srv/salt> free -h                                                                                                                                                                                              
                                total        used        free      shared  buff/cache   available
                  Mem:           7.1G        3.6G        820M        511M        2.6G        2.6G
                  Swap:          7.2G        264K        7.2G
                  
                  EddieJenningsE dafyreD 2 Replies Last reply Reply Quote 0
                  • EddieJenningsE
                    EddieJennings @scottalanmiller
                    last edited by

                    @scottalanmiller 0_1497378568950_652e4695-bc14-4fa4-b288-050f6bc5481f-image.png

                    Alas, not for me. This is a remote PS session into my new hypervisor.

                    NerdyDadN 1 Reply Last reply Reply Quote 0
                    • NerdyDadN
                      NerdyDad @EddieJennings
                      last edited by

                      @EddieJennings said in Random Thread - Anything Goes:

                      @scottalanmiller 0_1497378568950_652e4695-bc14-4fa4-b288-050f6bc5481f-image.png

                      Alas, not for me. This is a remote PS session into my new hypervisor.

                      Did you by chance load the hyper-v module into powershell?

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

                        @scottalanmiller said in Random Thread - Anything Goes:

                        Free with PS...

                        PowerShell 
                        Copyright (C) Microsoft Corporation. All rights reserved.
                        
                        PS /srv/salt> free -h                                                                                                                                                                                              
                                      total        used        free      shared  buff/cache   available
                        Mem:           7.1G        3.6G        820M        511M        2.6G        2.6G
                        Swap:          7.2G        264K        7.2G
                        

                        This looks like it is running in PowerShell on Linux.

                        scottalanmillerS 1 Reply Last reply Reply Quote 1
                        • EddieJenningsE
                          EddieJennings
                          last edited by

                          Slack conversation. [provided by me for context]

                          Channel #it-help
                          UserA [about 1 minute after UserB submitted a ticket]: @eddie UserB [who is currently logged into Slack] is having problems with her workstation phone.
                          Me: @UserA I responded to UserB's ticket
                          UserA: Thanks

                          0.o

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

                            @NerdyDad Other than whatever comes by default, the only module I've imported was the one for Windows updates (which I need to do again, so it persists).

                            1 Reply Last reply Reply Quote 0
                            • scottalanmillerS
                              scottalanmiller @dafyre
                              last edited by

                              @dafyre said in Random Thread - Anything Goes:

                              @scottalanmiller said in Random Thread - Anything Goes:

                              Free with PS...

                              PowerShell 
                              Copyright (C) Microsoft Corporation. All rights reserved.
                              
                              PS /srv/salt> free -h                                                                                                                                                                                              
                                            total        used        free      shared  buff/cache   available
                              Mem:           7.1G        3.6G        820M        511M        2.6G        2.6G
                              Swap:          7.2G        264K        7.2G
                              

                              This looks like it is running in PowerShell on Linux.

                              Yeah. He didn't say anything about windows, only PowerShell. And PS launches the free utility just great.

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

                                @scottalanmiller Always associated PowerShell as the CLI for Windows. I ought to have been more specific.

                                scottalanmillerS 1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller @EddieJennings
                                  last edited by

                                  @EddieJennings said in Random Thread - Anything Goes:

                                  @scottalanmiller Always associated PowerShell as the CLI for Windows. I ought to have been more specific.

                                  It's also that you said why doesn't PS have free, not why doesn't Windows have free. Free is an application, not part of any shell. It's not part of BASH or PS, it's just an application that either can call equally.

                                  1 Reply Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller
                                    last edited by

                                    If free was installed on Windows, PowerShell would have it the same as BASH or ZSH or whatever do on Linux. If you push BASH on Windows, it would lack the free command as well.

                                    1 Reply Last reply Reply Quote 1
                                    • scottalanmillerS
                                      scottalanmiller
                                      last edited by

                                      Try this...

                                      systeminfo |find "Available Physical Memory"
                                      
                                      GreyG 1 Reply Last reply Reply Quote 1
                                      • GreyG
                                        Grey @scottalanmiller
                                        last edited by

                                        @scottalanmiller said in Random Thread - Anything Goes:

                                        Try this...

                                        systeminfo |find "Available Physical Memory"
                                        

                                        findstr /c:"stuff"

                                        1 Reply Last reply Reply Quote 0
                                        • wirestyle22W
                                          wirestyle22
                                          last edited by

                                          A vendor made it all the way down to us to meet with our managers because he used the buzzword "cyber security" and cityhall thought we should listen to what he had to say. He was a shitty salesguy that couldn't answer basic questions.

                                          DashrenderD DustinB3403D 2 Replies Last reply Reply Quote 1
                                          • dafyreD
                                            dafyre
                                            last edited by

                                            Straight PowerShell there if you're interested. Probably another 10k easier ways to do it, but this works.

                                            #Free
                                            
                                            $freemem=get-wmiobject -class Win32_OperatingSystem
                                            
                                             $objFree=[pscustomobject]@{
                                               totalMemory="$([math]::round($freemem.TotalVisibleMemorySize/1024,2)) MB"
                                               usedMemory = "$([math]::round(($freemem.TotalVisibleMemorySize - $freemem.FreePhysicalMemory)/1024,2)) MB"
                                               freeMemory="$([math]::round($freemem.FreePhysicalMemory/1024,2)) MB"
                                               #freeVirtMem ="$([math]::round($freemem.freevirtualmemory/1024,2)) MB"
                                               totalSwap = "$([math]::round($freemem.SizeStoredInPagingFiles/1024,2)) MB"
                                               usedSwap = "$([math]::round(($freemem.SizeStoredInPagingFiles - $freemem.FreeSpaceInPagingFiles)/1024,2)) MB"
                                               freeSwap = "$([math]::round($freemem.FreeSpaceInPagingFiles/1024,2)) MB"
                                               
                                            
                                            }
                                            
                                            
                                             $objFree|ft -auto
                                            

                                            Outputs a table like so:

                                            totalMemory usedMemory  freeMemory totalSwap  usedSwap   freeSwap  
                                            ----------- ----------  ---------- ---------  --------   --------  
                                            20477.57 MB 19544.93 MB 932.63 MB  7450.47 MB 2237.02 MB 5213.45 MB
                                            
                                            1 Reply Last reply Reply Quote 2
                                            • 1
                                            • 2
                                            • 505
                                            • 506
                                            • 507
                                            • 508
                                            • 509
                                            • 1077
                                            • 1078
                                            • 507 / 1078
                                            • First post
                                              Last post