2 thoughts on “PowerShell Script to Create a Local Admin Account using Intune”

  1. Hey Sujin,

    Powershell script giving an error message:

    You cannot call a method on a null-valued expression.
    At C:\temp\test.ps1:38 char:5
    + $existing.SetPassword($Password)
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

    Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.