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

    Managing Windows Local Users with Net User

    IT Discussion
    sam windows administration windows net net commands
    9
    28
    2.0k
    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.
    • F
      flaxking
      last edited by

      I'd rather make a Powershell script than a batch file, but I'm still going to use executables to do tasks in my scripts when they are simplier, more specifically designed for the job, and there's not more advanced scripting required where I would benefit from using objects.

      i.e. Copy-Item script vs using robocopy

      Today I used icacls in a simple powershell script. And I always use the IIS management tool instead of the IIS powershell drive provider.

      I think powershell's greatest strength is it's flexibility. Combine PS cmdlets, .Net, calling executables, even C# coded objects together to do what you need to do.

      1 Reply Last reply Reply Quote 0
      • J
        JasGot @scottalanmiller
        last edited by

        @scottalanmiller said in Managing Windows Local Users with Net User:

        ...Because of its simplicity, the net user command family is popular over remote shells such as those executed in a remote control application or through tools like psExec.

        Net User Reference on Lifewire


        Part of a series on Windows Systems Administration by Scott Alan Miller

        Oh, man...... How true! I don't think I could get through my days anymore without net user and net accounts from a remote shell. They are the first things I do when someone says anything at all about "login issues".

        scottalanmillerS 1 Reply Last reply Reply Quote 2
        • scottalanmillerS
          scottalanmiller @JasGot
          last edited by

          @JasGot said in Managing Windows Local Users with Net User:

          Oh, man...... How true! I don't think I could get through my days anymore without net user and net accounts from a remote shell. They are the first things I do when someone says anything at all about "login issues".

          Yeah, I use these constantly. We use them through remote command execution so the PowerShell stuff doesn't work, so net commands are our friends.

          JaredBuschJ 1 Reply Last reply Reply Quote 0
          • JaredBuschJ
            JaredBusch @scottalanmiller
            last edited by

            @scottalanmiller said in Managing Windows Local Users with Net User:

            @JasGot said in Managing Windows Local Users with Net User:

            Oh, man...... How true! I don't think I could get through my days anymore without net user and net accounts from a remote shell. They are the first things I do when someone says anything at all about "login issues".

            Yeah, I use these constantly. We use them through remote command execution so the PowerShell stuff doesn't work, so net commands are our friends.

            You certainly can, if you setup the command line right and don't rely on independent connections.

            We run multiline powershell commands through ScreenConnect sessions all the time to add and remove printers. You just have to paste it all into the windows at once, then hit send.

            J 1 Reply Last reply Reply Quote 1
            • J
              JasGot @JaredBusch
              last edited by

              @JaredBusch said in Managing Windows Local Users with Net User:

              You certainly can, if you setup the command line right and don't rely on independent connections.

              We run multiline powershell commands through ScreenConnect sessions all the time to add and remove printers. You just have to paste it all into the windows at once, then hit send.

              That's what we do too. If you can do it one line at a time, you can do it through ScreenConnect command. Just need to bump the #maxlength=100000 and
              #timeout=90000 as appropriate! (values will differ)

              I have to say though, I'm using backstage more and more for the things I used to do in a command.

              JaredBuschJ scottalanmillerS 3 Replies Last reply Reply Quote 2
              • JaredBuschJ
                JaredBusch @JasGot
                last edited by

                @JasGot said in Managing Windows Local Users with Net User:

                @JaredBusch said in Managing Windows Local Users with Net User:

                You certainly can, if you setup the command line right and don't rely on independent connections.

                We run multiline powershell commands through ScreenConnect sessions all the time to add and remove printers. You just have to paste it all into the windows at once, then hit send.

                That's what we do too. If you can do it one line at a time, you can do it through ScreenConnect command. Just need to bump the #maxlength=100000 and
                #timeout=90000 as appropriate! (values will differ)

                I have to say though, I'm using backstage more and more for the things I used to do in a command.

                I have not looked at that. I know that they added it. But I haven't tried it yet.

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

                  @JasGot said in Managing Windows Local Users with Net User:

                  I have to say though, I'm using backstage more and more for the things I used to do in a command.

                  MeshCentral does well, too.

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

                    @JasGot said in Managing Windows Local Users with Net User:

                    I'm using backstage more

                    I assume that this is a component of another product?

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      JasGot @JaredBusch
                      last edited by

                      @JaredBusch said in Managing Windows Local Users with Net User:

                      I have not looked at that. I know that they added it. But I haven't tried it yet.

                      It was love at first use!

                      1 Reply Last reply Reply Quote 0
                      • J
                        JasGot @scottalanmiller
                        last edited by

                        @scottalanmiller said in Managing Windows Local Users with Net User:

                        @JasGot said in Managing Windows Local Users with Net User:

                        I'm using backstage more

                        I assume that this is a component of another product?

                        Part of ConnectWiseControl. (or ScreenConnect as we still call it around here.)

                        It's at the bottom of the View tab when attached to a guest. Takes you to a new sessions as a System account with a command prompt and powershell window already open. No limit to what you can accomplish there. many gui apps will run in backstage too.

                        1 Reply Last reply Reply Quote 1
                        • 1
                        • 2
                        • 2 / 2
                        • First post
                          Last post