Yusufozturk - yusufozturk.info - Yusuf Ozturk
General Information:
Latest News:
Generating reports of VMs with Dynamic Disk 22 Aug 2013 | 12:12 pm
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 ...
Windows Server 2012 Version Check 18 Aug 2013 | 02:25 am
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 "--------------------" Wr...
Windows Server Uptime Check Script after Patch Restarts 18 Aug 2013 | 12:41 am
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 WMIDa...
Getting unused directories in Hyper-V ClusterStorage Volumes via PowerShell 15 Aug 2013 | 12:25 pm
You may export and move a VM to another host or volume, or maybe you may delete a VM but configuration and VHD files may still exist on old location. In that case, you can use this script to find that...
How to create SQL Server 2012 template on Hyper-V 14 Aug 2013 | 11:22 am
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...
Set User Role Quota for each Cloud Profile in SCVMM 2012 SP1 – Method 2 12 Aug 2013 | 04:17 pm
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 18 $UserRoles = "BackOffice","CallCenter" foreach ($UserRole in $UserRoles) { $UserRole ...
Secure Password Usage in PowerShell 31 Jul 2013 | 06:48 pm
If you need to store a secure password in PowerShell, you can use this process. First, you should create a hash from your password: 1 2 3 $Key = (3,4,2,3,56,34,254,222,1,1,2,23,42,54,33,233,1,34,2,7,6...
Set User Role Quota for each Cloud Profile in SCVMM 2012 SP1 26 Jul 2013 | 05:56 pm
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) ...
Changing UserRole of some Virtual Machines on SCVMM 2012 SP1 26 Jul 2013 | 02:06 pm
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) { $UserRol...
Getting total CPU and Memory usage of UserRole in SCVMM 2012 SP1 26 Jul 2013 | 01:59 pm
You can get total CPU and memory usage of a user role with following command: 1 (Get-VM | Where UserRole -like "MyUserRole" | Measure-Object -Property CPUCount,Memory -Sum) That will give you total co...