

- SCRIPT IT SOLUTION WINDOWS 10
- SCRIPT IT SOLUTION PASSWORD
- SCRIPT IT SOLUTION DOWNLOAD
- SCRIPT IT SOLUTION FREE
I receive the following when running gui.ps1: (thoughts anyone) See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. + CategoryInfo : NotSpecified: (:), WriteErrorException … Read more »

Provide an argument that is not null or empty, and then try the command again. At C:\WINDOWS\IMECache\HealthScripts\601ec906-1ca6-4958-8678-089ca2e3217e_1\detect.ps1:53 char:19 + … ocalAdmin = New-LocalUser -PasswordNeverExpires $True -AccountNeverEx … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:), ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound, C:\WINDOWS\IMECache\HealthScripts\601ec906-1ca6-4958-8678-089ca2e3217e_1\detect.ps1 : Something went wrong while processing the local administrators group Cannot validate argument on parameter ‘Member’. This is awesome! I’m getting the following error – have updated the variable $localAdminName = “CustomAccount” New-LocalUser : A positional parameter cannot be found that accepts argument ‘True’. The community, in the form of Colton Lacy, also added an optional GUI frontend for LeanLAPS which you could use for e.g. your helpdesk with the correct Intune roles, they will be able to see local admin passwords as reported by above solution: If you don’t want LeanLAPS to remove certain preapproved admins or groups as admin, make sure to configure the $approvedAdmins variable.
SCRIPT IT SOLUTION PASSWORD
If you want to display an encrypted password in Intune, generate a public and private key and configure the resulting values in gui.ps1 and leanLAPS.ps1ĩ. Note: if you wish to trigger a quick remediation, delete the correct keys under Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IntuneManagementExtension\SideCarPolicies\Scripts\Execution and Reports in the client’s registry, then restart the IntuneManagementExtension service and the remediation will re-run within 5 minutes.Ĩ.
SCRIPT IT SOLUTION WINDOWS 10
Go to Device status and add both output columns:Ĭongratulations, you can now see the current local admin passwords for all managed Windows 10 devices! Deploy, and then click on the script package:ħ. By default it will run every day, but you can also let it run more or less frequently, which determines how often the password is reset (hourly in below example):Ħ. Set both the detection and remediation script to LeanLAPS.ps1 and run it in 64 bit:ĥ. Make sure to use NotePad++ / that the file stays UTF-8 Encoded without a BOM.Ĥ. configure if other local admins should be removed, what the local admin name should be and the password length).
SCRIPT IT SOLUTION DOWNLOAD
Download and doublecheck the config of LeanLAPS.ps1 (e.g.

head into the Proactive Remediations section of MDE and click Create script package:ģ. ‘Administrators’ vs ‘Administradores’….)ġ.
SCRIPT IT SOLUTION FREE
He also wrote a PowerShell solution to rotate a specific local admin’s password and had the genius idea of using Proactive Remediations (a MEM feature) to display passwords to admins, integrated / free in the Intune Console. Managing local admin accounts using Intune has a lot of quirks, my tele-colleague Rudy Ooms has already written extensively about this.
