-
Powershell Workflow
Articles
-
Create HTML table Powershell
In this example you get a status report on the computer.
-
SCVMM: Force remove missing VM
Make sure you get the correct VM Get-VM -Name “VM Name” | Ft Name When you know that the first query give you the correct VM, and only that VM Get- VM -Name “VM Name” | Remove-VM -Force
-
Powershell: Rename remote computer with WMI
To rename a computer when Rename-Computer is not available (pre Powershell 4.0) Get-WmiObject Win32_ComputerSystem -ComputerName OLDNAME -Authentication 6 | ForEach-Object {$_.Rename(“NEWNAME”,”PASSWORD”,”USERNAME”)} You can also mask the password $credential = Get-Credential Get-WmiObject Win32_ComputerSystem -ComputerName OLDNAME -Authentication 6 | ForEach-Object {$_.Rename(“NEWNAME”,$credential.GetNetworkCredential().Password,$credential.Username)}