Entries in the ‘PowerShell’ Category:

Powershell function to Check disk free space on remote computers

Description: This function takes the computer name as argument and displays the disk free/total size information. One advantage with this function is, no need to search for admin windows when you want to run it. It prompts for admin credentials and connects to remote computer using them. Usage: PS C:\temp> Check-Diskspace -computer remotepc cmdlet Get-Credential [...]

Tags:

Leave a Comment

Get computer uptime using Powershell

Simple Way to get local computer uptime…. PS C:\> (gwmi win32_operatingSystem).lastbootuptime 20100728180723.375199+330 PS C:\> Now, let’s query the remote computers uptime. PS C:\> (gwmi win32_operatingSystem -computer remotePC).lastbootuptime 20100728180723.375199+330 PS C:\> The above are oneliners, if you want to convert this into full fledged function, use the below code. This gives the uptime of computer you [...]

Tags:

Leave a Comment

Which powershell version I should use?

You have a windows XP computer? Do you know which version you should use? Or using a windows 7 computer? which version is available by default? What is the CTP version? There are many links..which one I should download? Today I came across this nice article which rubs out all the confusions in identifying the [...]

Leave a Comment