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

Sunucuya Domain Controller tarafından basılmış olan GPO’ları görmek

Bir sunucunun üzerine AD DC tarafından hangi GPO’ların basıldığını görmek istiyorsanız, aşağıdaki komutları kullanabilirsiniz. rsop.msc gpresult /h a.html RSOP ile açılacak olan pencereden, basılmış...

View Article


Changing UserRole of some Virtual Machines on SCVMM 2012 SP1

You can change UserRoles of virtual machines on SCVMM 2012 SP1 with following command: 1 2 3 4 5 6 $VMs = Get-VM | Where Name -like "*CALL*" | Where UserRole -eq $Null foreach ($VM in $VMs) { $UserRole...

View Article


Set User Role Quota for each Cloud Profile in SCVMM 2012 SP1

You can set User Role Quota for each Cloud Profile in SCVMM 2012 SP1. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 $UserRoles = "BackOffice","CallCenter","ExchangeTeam" foreach ($UserRole in $UserRoles) {...

View Article

How to create SQL Server 2012 template on Hyper-V

You can create Microsoft SQL Server 2012 template on Hyper-V if you want to do unattended setups. Follow the steps: 1) Install Windows Server 2012, do latest updates and your customizations. 2) Make a...

View Article

Windows Server Uptime Check Script after Patch Restarts

This is pretty cool script after patch updates to check which servers are successfully rebooted. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 $Servers = Get-Content C:\UpdateServers.txt function...

View Article


Windows Server 2012 Version Check

You can check Windows Server 2012 version with following script: 1 2 3 4 5 6 7 8 9 10 11 12 $Servers = Get-Content "C:\Servers.txt" foreach ($Server in $Servers) { Write-Host "--------------------"...

View Article

Generating reports of VMs with Dynamic Disk

This is pretty cool and detailed report for VMs with Dynamic Disk. It requires SCVMM 2012 to get details but it’s possible to change it to use Hyper-V PowerShell Cmdlet. 1 2 3 4 5 6 7 8 9 10 11 12 13...

View Article

Checklist automation after Hyper-V 2012 installation

This is my automation script after Hyper-V 2012 installation. 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 46 […]

View Article


Getting memory information of your Cluster Nodes

This might be useful to get memory information from your cluster nodes. Just run this on one of your Cluster node. Make sure you run PowerShell as (Domain) Administrator. Otherwise you can’t query your...

View Article


Getting Cluster Shared Volume (CSV) information of your Cluster

This might be useful to get Cluster Shared Volume (CSV) information from your cluster. Just run this on one of your Cluster node. Make sure you run PowerShell as (Domain) Administrator. Otherwise you...

View Article

Comparing Hotfixes and Windows Updates to find missing ones on your Microsoft...

This is very useful script to get missing updates from your cluster nodes. Just run this on one of your Cluster node. Make sure you run PowerShell as (Domain) Administrator. Otherwise you can’t query...

View Article

Cluster Checklist Script via PowerShell

This is my cluster checklist script to verify many different components like Windows Updates, Hotfixes, 3Par installation, Driver information etc. 1 2 3 4 5 6 7 8 9 10 # Lets get our master Cluster...

View Article

Online VM migration between Hyper-V v3 Clusters

You should run this script on Cluster node. Migrates all VM online. 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


Getting VMs with vHBA on Hyper-V Cluster with PowerShell

You can get VMs with vHBA on Hyper-V Cluster via this PowerShell script: Get-Cluster | Get-ClusterNode | % {Get-VM -ComputerName $_.Name | Where {(($_ | Select -expand FibreChannelHostBusAdapters) -ne...

View Article

PowerShell Secure Password Generator Function

You can use this function to convert your password into secure password. 1 2 3 4 5 6 7 8 9 10 function Generate-Password { $Password = Read-Host "Please type your password" $Key =...

View Article


How to see Hyper-V Shared Nothing Migration logs

You can see Shared Nothing Migration logs under event logs: Applications and Services Logs > Windows > Windows > Hyper-V-VMMS > Admin Also you can get them via PowerShell: Get-WinEvent...

View Article

Getting Virtual SAN Switches and Port Details of Hyper-V Cluster Nodes

Life saver if you have many nodes in a Hyper-V cluster :) 1 2 3 4 5 6 7 8 9 10 11 12 $SANSwitches = Get-Cluster | Get-ClusterNode | % { Get-VMSAN -ComputerName $_.Name } Foreach ($SANSwitch in...

View Article


How to find duplicated SPNs with PowerShell

You can find duplicated SPNs in your AD with this PowerShell script. That will output into txt file and console. 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...

View Article

Getting CPU, Memory and CSV Disk Information of Hyper-V Cluster

You can use this script to get details information of your Hyper-V Cluster: 1 2 (Get-Cluster | Get-ClusterNode | Select Name,@{label="CPU";expression={@(Get-WmiObject -ComputerName $_.Name -Class...

View Article

Live Migration between Hyper-V Clusters of Selected Virtual Machines

You can use this script to move only selected VMs live between Hyper-V Clusters. 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 […]

View Article
Browsing all 127 articles
Browse latest View live