Server Archives - Page 2 of 2 - Sebastian Gräf
110
archive,paged,category,category-server,category-110,paged-2,category-paged-2,cookies-not-set,ajax_fade,page_not_loaded,,side_area_uncovered_from_content,qode-theme-ver-15.0,qode-theme-bridge,wpb-js-composer js-comp-ver-5.4.7,vc_responsive
 

Server

In this case we're going to use the method GetHostAddresses of the Dns class of the Sytem.Net namespace.For PowerShell 2.0 you can use following Windows PowerShell One Liners: Name to IP Address (DNS Forward)[System.Net.Dns]::GetHostAddresses(“graef.io“) Address : 3901025616 AddressFamily : InterNetwork ScopeId : IsIPv6Multicast : False IsIPv6LinkLocal : False IsIPv6SiteLocal : False IsIPv6Teredo :...

Respective Microsoft's Technet article regarding Resolve-DnsName I have created you a function with the ability to run it against more than only one computer. Resolve-DnsNames performs a DNS name query resolution for the specified name.Function Resolve-DnsNames { <# .SYNOPSIS Resolves IP or DNS name for one or...

Okay at the end it's a simple $PSVersion wrapped in an Invoke-Command but hey these simple things are needful in case you need to run it against of 100s of servers and not just locally. With the help of Invoke-Command via WinRM and $PSVersionTable.psversion wrapped in...

Get DELL Tag and Express Service Code remotely for more than one computer. You can also commit different credentials for a specific domain.The below function Get-DellTags retrieves serials remotely from your machines. With the help of the function ConvertSerial the serial gets converted into a...

Hi there, following function Get-ScsiDisks retrieves disk details for VMWare Guests or any computer with corresponding SCSI disk details like SCSI ID and SCSI Bus. The function concatenates objects consisting of Win32_DiskDrive, Win32_LogicalDisk and Win32_DiskDriveToDiskPartition using WMI. For WinRM you can use Invoke-Command and inject the...