Tag Archives: Invoke-command with argument list

PowerShell – Delete Registry Entries – Remote Machines – Example Profile Deletion

  #The following SID registry entry to be deleted across all mutiple Machines, SID is a user #who owns this user profile. Run the below script in Powershell console or ISE $sid = ‘S-1-5-21-3656904587-1668747452’ $scriptblock = { param($sid) $regpath = ‘HKLM:\SOFTWARE\Microsoft\Windows … Continue reading

Posted in Uncategorized | Tagged , | 2 Comments