Usage: hex2dec [hex|decimal]


Tired of running Calc everytime you want to convert a hexadecimal number to decimal Now you can convert hex to decimal and vice versa with this simple command-line utility.

Usage: hex2dec [hex|decimal]

Include x or 0x as the prefix of the number to specify a hexadecimal value.
e.g. To translate 1233 decimal to hexadecimal: hex2dec 1233
e.g. To translate 0x1233 decimal to hexadecimal: hex2dec 0x1233


Displays relevant information about a Windows computer on the desktop’s background, such as the computer name, IP address, service pack version, and more


How many times have you walked up to a system in your office and needed to click through several diagnostic windows to remind yourself of important aspects of its configuration, such as its name, IP address, or operating system version? If you manage multiple computers you probably need BGInfo. It automatically displays relevant information about a Windows computer on the desktop’s background, such as the computer name, IP address, service pack version, and more. You can edit any field as well as the font and background colors, and can place it in your startup folder so that it runs every boot, or even configure it to display as the background for the logon screen.

Because BGInfo simply writes a new desktop bitmap and exits, you don’t have to worry about it consuming system resources or interfering with other applications.

Sysinternals BgInfo

Installation and Use

See Mark’s Windows IT Pro Magazine  Power Tools article for a primer on using BgInfo. If you have questions or problems, please visit theSysinternals BgInfo Forum.

By placing BGInfo in your Startup folder, you can ensure that the system information being displayed is up to date each time you boot. Once you’ve settled on the information to be displayed, use the command-line option /timer:0 to update the display without showing the dialog box.

You can also use the Windows Scheduler to run BGInfo on a regular basis to ensure long-running systems are kept up to date.

If you create a BGInfo configuration file (using the File|Save Settingsmenu item) you can automatically import and use those settings on other systems by adding the /I<path> or /iq<path> command line option.

Correlation ID

Correlation ID

get-splogevent | ?{$_.Correlation -eq “a13e8b6f-c360-4d41-90a2-e87846a344cf“} | select Area, Category, Level, EventID, Message | Format-List > C:\Awesome.log

Note: replace the (a13e8b6f-c360-4d41-90a2-e87846a344cf) with the correlation ID

PowerShell notes


Windows PowerShell Transcript Start

Start time: 20100915124020

Username : CONTOSO\sp_farm

Machine     : SHAREPOINT (Microsoft Windows NT 6.1.7600.0)


Transcript started, output file is C:\Users\sp_farm\Documents\PowerShell_transc


PS C:\Users\sp_farm> notepad

PS C:\Users\sp_farm> get-command -Noun spstate*

CommandType Name Definition

———– —- ———-

Cmdlet Dismount-SPStateServiceDatabase Dismount-SPStateServiceDatab…

Cmdlet Get-SPStateServiceApplication Get-SPStateServiceApplicatio…

Cmdlet Get-SPStateServiceApplicatio… Get-SPStateServiceApplicatio…

Cmdlet Get-SPStateServiceDatabase Get-SPStateServiceDatabase […

Cmdlet Initialize-SPStateServiceDat… Initialize-SPStateServiceDat…

Cmdlet Mount-SPStateServiceDatabase Mount-SPStateServiceDatabase…

Cmdlet New-SPStateServiceApplication New-SPStateServiceApplicatio…

Cmdlet New-SPStateServiceApplicatio… New-SPStateServiceApplicatio…

Cmdlet New-SPStateServiceDatabase New-SPStateServiceDatabase […

Cmdlet Remove-SPStateServiceDatabase Remove-SPStateServiceDatabas…

Cmdlet Resume-SPStateServiceDatabase Resume-SPStateServiceDatabas…

Cmdlet Set-SPStateServiceApplication Set-SPStateServiceApplicatio…

Cmdlet Set-SPStateServiceApplicatio… Set-SPStateServiceApplicatio…

Cmdlet Set-SPStateServiceDatabase Set-SPStateServiceDatabase […

Cmdlet Suspend-SPStateServiceDatabase Suspend-SPStateServiceDataba…

PS C:\Users\sp_farm> get-command -Noun spstate* | select name

Continue reading

Using PowerShell to determine SharePoint database size

Open the Sharepoint management shell


Run the following command

To get list of databases


The following command to get list of every database used and its Size

Get-SPDatabase | Sort-Object disksizerequired -desc | Format-Table Name, @{Label =”Size in MB”; Expression = {$_.disksizerequired/1024/1024}}

To know how much total space is needed

Run the following

Get-SPDatabase | ForEach-Object {$db=0} {$db +=$_.disksizerequired; $ + ” – ” + $_.disksizerequired/1024/1024} {Write-Host “`nTotal Storage (in MB) =” (“{0:n0}” -f ($db/1024/1024))}

SharePoint Server 2010 capacity management

How to find SharePoint List and Libraries true Size?

Go to the main page site settings

The go to Storage Metrics
under the

Site Collection Administration

Then check for the size of every site, library and list