• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Reset local Windows account password (1.3.0+)

Scheduled Pinned Locked Moved
Tutorials
4
11
3.9k
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.
  • W
    Wayne Workman
    last edited by Wayne Workman Oct 9, 2016, 9:12 AM Aug 11, 2016, 9:29 PM

    This tutorial utilizes the new FOG Client, which is capable of executing powershell scripts.

    At work, we’ve been talking about how to reset the local ‘tech’ password en-mass should we ever need to, in case the account password is compromised.

    I’ve found some powershell that can do this, and I’ve used it via FOG Snapins to successfully change a local Windows account’s password. This can be done on one computer or thousands. Confirmed working on Windows 10.

    The below is a powershell script (with a .ps1 file extension) that resets the password of a local account called tech to MySuperAmazingPassword as an example.

    $comp=hostname
    $tech=[adsi]("WinNT://" + $comp + "/tech, user")
    $tech.psbase.invoke("SetPassword", "MySuperAmazingPassword")
    

    This can be made into a FOG Snapin using the PowerShell template, and just uploading the file. Here is a screenshot of the completed snapin:

    0_1470950974200_ResetTechPassword.png

    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
    Daily Clean Installation Results:
    https://fogtesting.fogproject.us/
    FOG Reporting:
    https://fog-external-reporting-results.fogproject.us/

    1 Reply Last reply Reply Quote 2
    • X
      x23piracy
      last edited by Aug 11, 2016, 9:37 PM

      This is perfect for: https://forums.fogproject.org/post/76500

      ║▌║█║▌│║▌║▌█

      W 1 Reply Last reply Aug 11, 2016, 9:39 PM Reply Quote 0
      • W
        Wayne Workman @x23piracy
        last edited by Aug 11, 2016, 9:39 PM

        @x23piracy You didn’t know snapins could do powershell? 😉

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        X 1 Reply Last reply Aug 11, 2016, 9:44 PM Reply Quote 0
        • X
          x23piracy @Wayne Workman
          last edited by Aug 11, 2016, 9:44 PM

          @Wayne-Workman really they can? 😄 well i am just a bit crazy today… 😉

          ║▌║█║▌│║▌║▌█

          1 Reply Last reply Reply Quote 0
          • A
            alexf2132
            last edited by Aug 17, 2016, 4:15 PM

            What do you have in text box: “Snapin Run With Argument”? Is it required for this specific Snapin? I noticed you didn’t mention that section of the Snapin creation process.

            W 1 Reply Last reply Aug 17, 2016, 4:56 PM Reply Quote 0
            • W
              Wayne Workman @alexf2132
              last edited by Wayne Workman Aug 17, 2016, 7:14 PM Aug 17, 2016, 4:56 PM

              @alexf2132 When creating the snapin, if you choose the “Powershell” template, it’ll be filled in automatically for you. Also the arguments are listed in the Snapin Command part.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
              Daily Clean Installation Results:
              https://fogtesting.fogproject.us/
              FOG Reporting:
              https://fog-external-reporting-results.fogproject.us/

              A 1 Reply Last reply Aug 19, 2016, 12:32 PM Reply Quote 0
              • A
                alexf2132 @Wayne Workman
                last edited by Aug 19, 2016, 12:32 PM

                @Wayne-Workman Thank you sir.

                1 Reply Last reply Reply Quote 0
                • M
                  MRCUR Testers
                  last edited by Aug 19, 2016, 12:55 PM

                  https://technet.microsoft.com/en-us/library/security/3062591.aspx

                  W 1 Reply Last reply Aug 19, 2016, 1:06 PM Reply Quote 0
                  • W
                    Wayne Workman @MRCUR
                    last edited by Wayne Workman Aug 19, 2016, 7:07 AM Aug 19, 2016, 1:06 PM

                    @MRCUR That’s one of the options we thought about. It sets a unique password on every machine - and that’s not the greatest idea if you need to use the local account in a tight spot to do something, and don’t have LAPS readily open. LAPS was created as a way to manage local account passwords, specifically changing them. With the above simple PowerShell script paired with FOG Snapins, that’s an alternative to LAPS that isn’t so complex - and enables a uniform password on each computer.

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                    Daily Clean Installation Results:
                    https://fogtesting.fogproject.us/
                    FOG Reporting:
                    https://fog-external-reporting-results.fogproject.us/

                    M 1 Reply Last reply Aug 19, 2016, 1:09 PM Reply Quote 0
                    • M
                      MRCUR Testers @Wayne Workman
                      last edited by Aug 19, 2016, 1:09 PM

                      @Wayne-Workman That’s the whole point - there should not be a single password set on all the machines. I realize this is not the point of your thread, but I just wanted to have this here so people know LAPS exists and is the preferred solution.

                      W 1 Reply Last reply Aug 19, 2016, 1:32 PM Reply Quote 0
                      • W
                        Wayne Workman @MRCUR
                        last edited by Aug 19, 2016, 1:32 PM

                        @MRCUR There should be - what the admin wants and is acceptable. Would I want a uniform password in every environment? No. I work in a public school, and very often I’m walking down the halls and someone comes out asking for help - and I don’t have my laptop with me. The less passwords I type in front of people, the better. Often, technicians fill in at other buildings - we don’t share AD credentials among technicians for our domains, but we do share local passwords with other techs so they can fill in where needed. LAPS would make that harder.

                        I would encourage people to use LAPS if they want the highest degree of local account security, but it would complicate my job further than I would like in my current position and slow my ability to solve problems.

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                        Daily Clean Installation Results:
                        https://fogtesting.fogproject.us/
                        FOG Reporting:
                        https://fog-external-reporting-results.fogproject.us/

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

                        230

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project