Quantcast
Channel: Windows Server – Yusuf Ozturk
Browsing all 127 articles
Browse latest View live

Getting local group members from Remote Servers via PowerShell

You can use this script to get local group information from a list of remote servers: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 $Servers = Get-Content C:\Servers.txt...

View Article


How to get VLAN IDs of Virtual Machines on SCVMM via PowerShell

You can get list of virtual machines and vlan ids via PowerShell with following command: 1 Get-VM | Select Name,@{label="VlanID";expression={($_.VirtualNetworkAdapters).VlanID}} I used SCVMM 2012 SP1....

View Article


Hyper-V Cluster Memory Reporting via PowerShell

You can get memory reporting of your Hyper-V clusters via this script. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 $Clusters = Get-Content C:\Cluster.txt foreach ($Cluster in $Clusters) {...

View Article

SCVMM 2012 Cloud Memory Reporting via PowerShell

You can get memory reporting of your SCVMM Clouds via this script. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 $Clouds = Get-SCCloud foreach ($Cloud in $Clouds) { $VMs = Get-SCCloud $Cloud | Get-VM $VMCount =...

View Article

PowerShell ile Hyper-V Yönetimi: Sunum Dosyaları

Merhaba, Cumartesi günü Microsoft Türkiye’de yapmış olduğum PowerShell ile Hyper-V Yönetimi sunumunda kullanmış olduğum Powerpoint ve Demo dosyalarına aşağıdaki bağlantı üzerinden ulaşabilirsiniz....

View Article


Getting VM’s Passthrough disks and Cloud information via PowerShell

This script requires SCVMM 2012 SP1. You should execute it on SCVMM PowerShell: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 $Pt = 0; $VMs = Get-VM foreach ($VM in $VMs) { $VMName = $VM.Name $Cloud =...

View Article

Disk Format Operations in System Center Orchestrator

This is my format disk script for System Center Orchestrator. PoSHServer and PsExec is required for operation. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33...

View Article

Get Disk Indexes for System Center Orchestrator Disk Operations

You can use this example to get disk indexes to use it in other orchestrator tasks like Disk Format. 1 2 3 4 5 6 7 8 9 10 11 $VMName = $PoSHQuery.VMName $Snapshot = Get-WmiObject Win32_DiskDrive...

View Article


HP OpenView PowerShell Module v1.0

I made a module for HP OpenView on PowerShell. You can download from here: HP OpenView PowerShell Module v1.0 Exported Functions: Get-HPOVManagedNode Get-HPOVPDTList Start-HPOVManagedNodePDT...

View Article


Hyper-V Cluster Memory Reports v2

You can get memory usage of Hyper-V clusters with following script: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 $Clusters = Get-Content Clusters.txt foreach ($Cluster in...

View Article

Check HP WBEM status from remote servers via PowerShell

You can type your servers into C:\Servers.txt and check WBEM status. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 $Servers = Get-Content C:\Servers.txt foreach ($Server in $Servers) { try { $TestWBEM =...

View Article

Getting QLogic Driver Versions of HP Servers via PowerShell

You can get QLogic Driver Versions of HP Servers with following script: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 $Clusters = Get-Content C:\Clusters.txt   foreach ($Cluster in $Clusters) {...

View Article

Get Clustered Remote Hosts via PowerShell

You can use following script to see if remote host has cluster service: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 $Servers = Get-Content C:\Servers.txt foreach ($Server in $Servers) {...

View Article


Telnet Function for Switch Management on PowerShell

This is a simple Telnet Function for switch management purposes. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 # Telnet […]

View Article

Getting CPU Temperature via PowerShell

We can use WMI to get CPU temperature via PowerShell: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 # Target Server $Server = "localhost"   # Get Thermal Information $ThermalInformation = Get-WmiObject...

View Article


ConvertTo-WWPN Function for FCAdapter WMI Class

If you want to use FCAdapter WMI Class to see Physical and Virtual Port WWPNs, this function will make WWPNs readable. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30...

View Article

Hyper-V vHBA: Virtual Port Creation failed with a NPIV error

You have a Hyper-V Cluster and you use vHBA on your virtual machines? Then you may be familiar with this error after restart your virtual machine: TestVM: Virtual port (C003FF4CC9C5003D) creation...

View Article


Get-EMCDiskNumber – PowerShell Powermt Parser

You can use following function to get EMC Disk Numbers via PowerPath: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 […]

View Article

Checking Reverse DNS Record If it matches with DNS Record

You can check all reverse DNS records with DNS records with following script to see if they are equal: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36...

View Article

Checking PTR records to verify if it matches with A records

You can use following script to verify your PTR records. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 […]

View Article
Browsing all 127 articles
Browse latest View live