Quantcast
Channel: Windows Server – Yusuf Ozturk
Browsing index pages (127 articles)

Agentless Monitoring of Nano Server on Azure

Nano Server monitoring is kind of a challenge for System Administrators. Even if your current monitoring product supports Nano Server, installing agents on Nano could be a headache. In this article, I...

View Article


MSSQL Server Index Reports

This is a query of mine, which gives you detailed information about indexes on one query: SELECT SO.NAME AS TableName, PS.object_id AS ObjectId, SI.NAME AS IndexName, PS.index_id AS IndexId,...

View Article


MSSQL Database Performance Tricks

Check following query to improve your database performance: EXEC sys.sp_configure N'show advanced options', N'1' RECONFIGURE WITH OVERRIDE GO EXEC sys.sp_configure N'max server memory (MB)', N'11000'...

View Article

MSSQL Database Index Fragmentation Reports

You can get Database Index Fragmentation Reports with following query: SELECT object_name(ps.object_id) AS [name], ps.index_id, i.name AS IndexName, ps.avg_fragmentation_in_percent, ps.fragment_count,...

View Article

Getting Stored Procedure Stats from MSSQL

Following query will give you details about SP usage: SELECT DB_NAME(database_id) DBName, OBJECT_NAME(object_id) SPName, last_execution_time LastExec, last_elapsed_time/1000 LastTimeMS,...

View Article


Getting all table column names of MSSQL database

If you need to get all table column names from MSSQL database, you can use following query: SELECT o.name, c.name FROM sys.COLUMNS c INNER JOIN sys.objects o ON c.object_id=o.object_id ORDER BY o.name,...

View Article

Windows Containers Management with PowerShell Series – Part 1

Windows Containers are finally here! Lets start our new series :) Container management is very similar to Hyper-V management. For example: Lets check our commands: PS C:\Users\Administrator>...

View Article

Sending parameters to HTML.Partial in C#

You can send extra parameters to HTML.Partial with following example: @{Html.RenderPartial("~/Views/Shared/GlobalScripts.cshtml", new ViewDataDictionary { { "timeRangeSessionValue",...

View Article


Using if/else statement in C# Razor

Just a reminder for myself :) @(userRole == 0 ? "Yes" : "No") Also you can use this like “else if”: @(userRole == 0 ? "Yes" : userRole == 1 ? "Yes" : "No") You can use this statement in div tags...

View Article


How to check Microsoft SQL Server Shrink Status

If you want to see SQL Server Shrink status, you can use following query: SELECT percent_complete, total_elapsed_time, start_time, status, estimated_completion_time FROM sys.dm_exec_requests WHERE...

View Article

Monitoring Supermicro servers via PowerShell

This is an example script to show how you can monitor Supermicro servers via PowerShell: 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 […]

View Article

Getting Passthrough Disk Reports from Hyper-V Clusters via PowerShell

You can use following script to get passthrough disk reports from 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 42 […]

View Article

Getting Operating System Reports of Remote Servers via PowerShell

You can get operating system report of your remote servers via PowerShell: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Get-Content C:\Servers.txt foreach ($Server in $Servers) { try { $OS = Get-WmiObject...

View Article


How to get host reports with PowerShell

You can get host reports 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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 $Servers = "Server01","Server02"...

View Article

Fixing WMI issues on Windows Server 2012 Hyper-V Cluster

You may get following issues due to WMI problem: Reboot is only way to fix it but at least you can prevent future issues: 1. Go to Start -> Run and type wbemtest.exe 2. Click Connect 3. In the...

View Article


Finding VMs with specific VLAN id in a Hyper-V Cluster via PowerShell

You can search VMs with specific VLAN id with following script: 1 2 3 4 5 $ClusterNodes = Get-Cluster | Get-ClusterNode foreach ($ClusterNode in $ClusterNodes) { Get-VM -ComputerName $ClusterNode |...

View Article

HP OpenView PowerShell Module v1.4

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

View Article


Getting Virtual Machines with Passthrough Disks from Hyper-V Clusters via...

You may need to see passthrough disk information from Hyper-V VMs on several clusters. So you can use 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 29 30...

View Article

Hyper-V CSV Migration: Start-CSVMigration

Lets assume that you have a 3 years old storage and you are using it to place your virtual machines on Hyper-V Cluster. Then you bought a new storage box, you created LUNs on it and assign them as a...

View Article

Hyper-V Storage DRS: Start-VMStorageOptimization

This function works like VMware Storage DRS to do Storage Optimization on CSV volumes. It moves virtual machines into different CSVs to optimize storage usage. So how does it work? First we are getting...

View Article
Browsing index pages (127 articles)


Latest Images