I am trying to create a powershell script for our helpdesk folks.
Deleting this registry fixes an issue that we see once in a while so creating this would make things so much easier.
This is what I have but I keep getting this below. Any ideas?
$Computer = Read-Host "Please Enter Computer Name"
$Username = Read-Host "Who is the user?"
Invoke-Command -ComputerName $Computer -ScriptBlock {Remove-ItemProperty -Path 'HKLM:\Software\Microsoft\MSLicensing'} -ArgumentList $Username
Write-OutPut "RegKeys have now been successfully changed on $Computer"
cmdlet Remove-ItemProperty at command pipeline position 1
Supply values for the following parameters:
Name[0]:
Deleting this registry fixes an issue that we see once in a while so creating this would make things so much easier.
This is what I have but I keep getting this below. Any ideas?
$Computer = Read-Host "Please Enter Computer Name"
$Username = Read-Host "Who is the user?"
Invoke-Command -ComputerName $Computer -ScriptBlock {Remove-ItemProperty -Path 'HKLM:\Software\Microsoft\MSLicensing'} -ArgumentList $Username
Write-OutPut "RegKeys have now been successfully changed on $Computer"
cmdlet Remove-ItemProperty at command pipeline position 1
Supply values for the following parameters:
Name[0]: