Powershell7 is hosted on GitHub. You can use a Powershell command to install the latest available version.Enter the following command in the console: The Powershell7 installation runs side-by-side with the version 5.1 provided by Windows 10.
Sometimes it may be necessary to find out whether a Windows computer needs to be restarted. There is an article that describes exactly which values have to be queried in the system. The result is a PowerShell script Get-PendingReboot. For administrators this is usually the perfect solution. However, there are scenarios where you might want […]
Get-NetTCPConnection -RemotePort 443 -State Established | Select-Object -Property RemoteAddress, State, OwningProcess, ProcessName | ForEach-Object { $_.Processname = (Get-Process -Id $_.OwningProcess).Processname $_ }
$VMlist=Get-VM Foreach ($VMName in $VMlist) { $VMDiskPathList = (Get-VM $VMName.VMname | Get-VMHardDiskDrive) foreach ($VMDiskPath in $VMDiskPathList) { Write-Host $VMDiskPath.Path } }
$VMlist=Get-VM | Where { $_.State –eq ‘Off’ } Foreach ($VM in $VMlist) { Write-Host $VM.VMName }