Forum
Exchange Server 2007 de organizasyonda ki tüm exchange serverların ne kadar ram kullandığını,hangi işletim sistemini kullandığını,kaç adet storage group olduğunu hangi komutla görüyorduk bilenlerden biran önce cvp bekliyorum.
Saygılar
Merhaba
Get-StorageGroup ile storage groupları görebilirsiniz. Get-ExchangeServer ile Exchange Server sunucu detaylarını görebilirsiniz ama burada RAM ve işletim sistemi detayı bulamazsınız.
RAM ve CPU kullanımı için ise ayrı iir power shell komutu bulunmaktadır
Create the Script
So, first we are going to create a folder
that is going to have the script that displays the information. I have
used c:\utils.
You are going to create a new file in that
folder, CheckMemoryCpu.bat in c:\utils.
To
do this, open notepad, press WinKey + R, type
notepad, and press Enter.
![Monitor CPU and Memory Usage with Just
One Click in Windows 7 [How To] windows 7 Notepad Monitor CPU and Memory Usage with Just One Click
in Windows 7 [How To]](http://mintywhite.com/wp-content/uploads/2010/08/windows-7-Notepad.png)
Copy
the following text to that file.
@echo off
Powershell -command "&{Get-WmiObject -Query 'Select * from
Win32_PerfFormattedData_PerfProc_Process '| Select Name,
@{Name='CPU(p)';Expression={$_.PercentProcessorTime}} | where
{$_.'CPU(p)' -gt 0 } |Sort 'CPU(p)' -descending | Format-Table
-AutoSize;}"
Powershell -command "&{Get-Process | Select Name,
@{Name='CPU(s)';Expression={$_.CPU}} | sort 'CPU(s)' -Descending |
Select -First 5| Format-Table -AutoSize;}"
Powershell -noexit
-command "&{Get-WmiObject -Query 'Select * from
Win32_OperatingSystem' | Select FreePhysicalMemory | Format-Table
-AutoSize;}"
It’s not the intention of the
article to explain every part of this script.
![Monitor CPU and Memory
Usage with Just One Click in Windows 7 [How To] Windows 7 Notepad CheckMemoryCPU Monitor CPU and Memory Usage with
Just One Click in Windows 7 [How To]](http://mintywhite.com/wp-content/uploads/2010/08/Windows-7-Notepad-CheckMemoryCPU.png)
Save it as c:\utils\CheckMemoryCPU.bat:
![Monitor CPU and Memory
Usage with Just One Click in Windows 7 [How To] Windows 7 CUtilsCheckMemoryCPU Monitor CPU and Memory Usage with
Just One Click in Windows 7 [How To]](http://mintywhite.com/wp-content/uploads/2010/08/Windows-7-CUtilsCheckMemoryCPU.png)
If you don’t use the hyphens it will create a text
file, with the txt extension.
Relax, take a breath. You have done
the more complicated part. Now we are going to pin the utility to the
Windows 7 Taskbar.
Pin the Script to the Taskbar
We cannot
pin the recent created file to the Taskbar directly, therefore we have
to use a trick.
To do this we create a new shortcut.
Right
click on a folder or over the Desktop and select New > Shortcut.
![Monitor CPU and Memory Usage with
Just One Click in Windows 7 [How To] Windows 7 New Shorcut Monitor CPU and Memory Usage with Just One
Click in Windows 7 [How To]](http://mintywhite.com/wp-content/uploads/2010/08/Windows-7-New-Shorcut.png)
Type
cmd /c
c:\utils\CheckMemoryCPU.bat
and click Next.
![Monitor
CPU and Memory Usage with Just One Click in Windows 7 [How To] Windows 7 Create Shortcut Cmdcutilscheckmemorycpur Monitor CPU and
Memory Usage with Just One Click in Windows 7 [How To]](http://mintywhite.com/wp-content/uploads/2010/08/Windows-7-Create-Shortcut-Cmdcutilscheckmemorycpur.png)
Windows asks for a name, I have used CheckMemoryCPU
but you can use other if you prefer. Click Finish.
To
change the icon right click over the shortcut and click Properties.
Click Change
Icon.
![]()
Windows has several files full of very detailed
icons. One I like is located in c:\windows\system32\imageres.dll.
Once
you find the file you can use the icon you prefer.
![]()
Now
that you have your shortcut created you only have to move to the
Taskbar.
![Monitor CPU and Memory
Usage with Just One Click in Windows 7 [How To] Windows 7 Pin ShortCut To Taskbar Monitor CPU and Memory Usage
with Just One Click in Windows 7 [How To]](http://mintywhite.com/wp-content/uploads/2010/08/Windows-7-Pin-ShortCut-To-Taskbar.png)
And this is it. Just click it for a quick glance and
what is slowing down your PC.
Danışman - ITSTACK Bilgi Sistemleri
****************************************************************
Probleminiz Çözüldüğünde Sonucu Burada Paylaşırsanız.
Sizde Aynı Problemi Yaşayanlar İçin Yardım Etmiş Olursunuz.
Eğer sorununuz çözüldü ise lütfen "çözüldü" olarak işaretlerseniz diğer üyeler için çok büyük kolaylık sağlayacaktır.
*****************************************************************
