Powershell How To Change Remote Computer (Workgroup) Local Account Password

Поделиться
HTML-код
  • Опубликовано: 20 авг 2024
  • In This Video, You will learn how to reset local account password for multiple remote computers. This script will work on Workgroup computer and for that you have to specify credential to connect remote computer and provide account name which you want to reset password and Password which you want to set as a new password for that account. Please let me know if you are facing any issue and I'll try to help.
    =========================Script Start Here======================
    $Servers = Get-Content -Path "C:\Scripts\Allservers.txt"
    $Cred = Get-Credential
    $accountName = Read-Host "Enter Account Name to Change"
    $NewPass = Read-Host -Prompt “Provide New Password” -AsSecureString
    foreach ($Server in $Servers) {
    if (test-Connection -Cn $Server -quiet)
    {
    Invoke-Command -ComputerName $Server -Credential $cred -ScriptBlock {
    Get-LocalUser $Using:accountName | Set-LocalUser -Password $Using:NewPass
    "$Using:Server Password Changed Successfully"
    }}
    else
    {
    "$Server is Offline, Check Manually"
    }}
    ===========================================================
    Delete Virtual Machine Snapshots Older Than Specific Days
    • Delete Multiple Virtua...
    How To Create File Selection Dialog Box in PowerShell
    • How To Create File Sel...
    Add User/Group To The Local Administrators/RDP Group On Multiple Computers
    • Add User/Group To The ...
    Get Windows Updates list from Remote Computer
    • Get Windows Updates li...
    PowerShell Remotely Uninstall Software from Multiple Computers
    • PowerShell Remotely Un...
    PowerShell Search Specific KB Status on Remote Computers
    • PowerShell Search Inst...
    PowerShell Script to Connect Multiple Server's Remote Session
    • PowerShell Script to C...
    PowerCLI Script to power ON dedicated VMs listed in a text file
    • PowerCLI Script to pow...
    PowerCLI Script to power Off dedicated VMs listed in a text file
    • PowerCLI Script to pow...
    Delete Snapshot's from Multiple Virtual Machines
    • Delete Snapshot's from...
    Create Snapshot on Multiple Virtual Machine
    • Create Snapshot on Mul...
    How can I check if a port is open remotely
    • Identify if Windows TC...
    Installing software remotely on Multiple "Workgroup" Computers
    • Installing software re...
    PowerShell Installing software remotely on Multiple Computers
    • PowerShell Installing ...
    Unable to move OU in Active Directory (Access is denied)
    • Unable to move OU in A...
    PowerShell Installing software remotely on Multiple Computers
    • PowerShell Installing ...
    Get Multiple Services Status Remotely | Remotely Start or Stop Services
    • Get Multiple Services ...
    Get Date and Time from Multiple Remote Computers
    • Get Date and Time from...
    PowerCLI - How to get HA restarted VM's List
    • PowerCLI - How to get ...
    Get-Childitem - Search file on Local and Remote Computers
    • Get-Childitem - Search...
    Remotely Create Update Delete Registry Key on Multiple Computers
    • Remotely Create Update...
    Get service status from remote server's using PowerShell
    • Get service status fro...

Комментарии • 5

  • @bavocool2768
    @bavocool2768 Год назад +1

    Super helpful, thank you for making this available.

  • @amol2831
    @amol2831 Год назад +1

    Make a ps of service account password change

    • @SwapnilInfotech
      @SwapnilInfotech  Год назад +1

      Please check the video below for your requirements
      ruclips.net/video/lo5hL_I7k-4/видео.html

    • @amol2831
      @amol2831 Год назад

      @@SwapnilInfotech thanks a lot.. looking for ps for PIM renewal contributor role which will renew before 14 days of expiration.thanks in advance.