Get CPU Usage Using PowerShell

powershell

 For some time I have been looking for a simple powershell script that will give me the  computer’s CPU usage with no luck.

After failing to find one and had some spare time I have done a small research and came up with a little WMI line that gives the CPU usage as follow: Read the rest of this entry »

  • Share/Save/Bookmark

MS02Today, MSN released the beta of My Health Info, a new online service that helps people manage their health information on the Web. My Health Info is a unique service that offers people a variety of tools and widgets to upload, organize and monitor health information stored in their personal Microsoft HealthVault accounts. The new service allows people to research medical concerns, read the latest health news, gain guidance from medical experts, learn about nutrition, and monitor conditions such as high blood pressure or diabetes. Read the rest of this entry »

  • Share/Save/Bookmark

ms01Microsoft Security Essentials, Microsoft Corp.’s new no-cost, core anti-malware service that helps protect consumers against viruses, spyware and other malicious software, will be available tomorrow, Tuesday, Sept. 29. Microsoft Security Essentials, independently certified by West Coast Labs, is backed by the company’s global security response team and is built on the same award-winning core security technology found in the company’s security solutions for businesses. It requires no registration, trials or renewals and will be available for download directly from Microsoft at http://www.microsoft.com/security_essentials.

Read the rest of this entry »

  • Share/Save/Bookmark

Find out which Exchange Server 2007 Service pack installed On the Server

To find out which Exchange Server 2007 service pack is installed we can use two method:

1.  GUI

Go to the Exchange Management Console -> Server Configuration -> right click on the Exchange server and check the version number.

You can find the build version numbers here:

http://support.microsoft.com/kb/158530

 2.       PowerShell

Using the powershell type get-exchangeserver |fl

  • Share/Save/Bookmark

How To Backup And Restore Windows Server 2003 IAS Server To A New Server

To back up IAS Server, RDP to the IAS server, open command prompt and type netsh aaaa show config > path\backupfilename.txt

Copy the file you created to the new IAS server.

On the new server open command prompt and type netsh exec path\backupfilename.txt

A message appears indicating whether the update was successful or not.

Notes:
There is no need to stop the IAS on either of the server.

  • Share/Save/Bookmark

How To Get Users Mailboxs Size Report In Exchange 2007

This is an improved command.

Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | ft DisplayName,@{label=”TotalItemSize(MB)”;expression={$_.TotalItemSize.Value.ToMB()}},ItemCount

  • Share/Save/Bookmark

Windows Server 2008 Core Command Guide

What Command
Set DNS IP Netsh int ipv4 set dns “local area connection” static 192.168.1.120 primary
Disable firewall Netsh firewall set opmode mode=disable
add Credential cmdkey /add:IP_ADDRESS /user:administrator /pass:password
Changing password Net user administrator*
Set time and date Control timedate.cpl
Show interfaces Netsh interface ipv4 interfaces
Set interface IP Netsh interface ipv4 set address name=”2” source=static address=172.16.11.162 mask=255.255.255.0 gateway=172.16.11.1
View hostname Hostname
Change hostname Netdome renamecomputer %computername% /newname:NAME
Restart server Shutdown /r t 0
Join server to domain Netdom join servername /domain:DOMAINNAME /userd:administrator /password:*
Server activation C:\windows\system32>cscript slmgr.vbs /?
Check expiration date Cscript slmgr.vbs -xpr
Activate server Cscript slmgr.vbs -ato
Automatic updates Cscript Scregedit.wsf
Check automatic update status Cscript scregedit.wsf /au /v
Enable automatic updates Cscript scregedti.wsf /au 4
View Roles install on server Oclist
Install Role Ocsetup role_name   (use oclist to check role names)
View services started Net start
Uninstall role Ocsetup role_name /uninstall
View logs Wevutil qe system
Enable remote desktop Cscript scregedit.wsf /ar 0
Disable remote desktop Cscript scredit.wsf /ar 1
view remote desktop settings Cscript scredit.wsf /ar v
Allow pre windows vista RDP connection Cscript scredit.wsf /cs 0
   
Log off from server logoff
Start command prompt cmd.exe   — (start from taskmgr if you close existing windows)
Start virtual disk service to manage disks Net start vbs
Check for windows updates immediately Wuauclt /detectnow
   
   
   
   
  • Share/Save/Bookmark

How To Monitor Exchange 2007 AntiSpam

How to monitor Monitor Exchange 2007 AntiSpam

Use the build in scripts in Exchange 2007 to monitor Exchange’s AntiSpam.
The scripts located at: C:\Program Files\Microsoft\Exchange Server\Scripts

View AntiSpam log:
Get-AgentLog -StartDate “20/06/2009″ | group action | ft name,count –Autosize

View mail queue:
Get-queue

 Top blocked senders
./Get-AntispamTopBlockedSenders.ps1 P1 -top 20 -StartDate “12/06/2009″ -EndDate “20/06/2009″

Top spammed Recipients
./Get-AntispamTopRecipients.ps1 – top 20

Check AntiSpam updates
Get-AntispamUpdates

Other scripts:
Get-AntispamTopBlockedSenderDomains.ps1
Get-AntispamTopBlockedSenderIPs.ps1
Get-AntispamSCLHistogram.ps1
Get-AntispamFilteringReport.ps1
Get-AntispamTopBlockedSenders.ps1
Get-AntispamTopRBLProviders.ps1
Get-AntispamTopRecipients.ps1

  • Share/Save/Bookmark

Configure SSH on your Cisco router

The following command will enable ssh on your cisco router.

router#crypto key generate rsa

Please note, your router or switch image needs to support 3DES.
(the image name needs to have K9 in it)

  • Share/Save/Bookmark

How to extend the Windows Server 2008 evaluation period

slmgr.vbs –rearm    — This will give you extra 60 days
slmgr.vbs -dli          — Check status

  • Share/Save/Bookmark
SEO Powered by Platinum SEO from Techblissonline