Por que você está remoting (invoke-command) para usar um cmdlet que tenha um parâmetro -computername? Você já tentou executar o comando diretamente?
$script = { Rename-Computer -ComputerName "ADMINIS-ID1PS7V" -NewName "SERVER1" }
$computerName = "ADMINIS-ID1PS7V"
$username = "Administrator"
$pw = "123!@#qaZ"
# Create Credentials
$securepw = ConvertTo-SecureString $pw -asplaintext -force
$cred = new-object -typename System.Management.Automation.PSCredential -argument $username, $securepw
# Create and use session
$session = New-PSSession -credential $cred -ComputerName $computerName
Invoke-Command -Session $session -ScriptBlock $script
Remove-PSSession $session
enable-PSRemoting -force
Allow remote server management through
WinRM
para ativado com * Eu continuo recebendo:
Fail to rename computer 'ADMINIS-ID1PS7V' to 'SERVER1' due to the following exception: Access is denied.
+ CategoryInfo : OperationStopped: (ADMINIS-ID1PS7V:String) [Rename-Computer], InvalidOperationException
+ FullyQualifiedErrorId : FailToRenameComputer,Microsoft.PowerShell.Commands.RenameComputerCommand
+ PSComputerName : ADMINIS-ID1PS7V