All Blog Posts

Ordered Hash Tables in Windows PowerShell V3.

Generally When we work with Hash Tables in PowerShell we usually get an output as an unordered data and not as ordered as per our liking.For example if i create a new hash table as below PS C:UsersAdministrator> @{Name='Vinith';City='Bangalore';Skill='PowerShell'} And see its…
New CIM Cmdlets in PowerShell V3

Hi Guys, Today i was going through the new CIM cmdlets present in  PowerShell V3 in Windows 8 and Windows Server 2012, they are a set of new cmdlets introduced in conjunction with the traditional WMI cmdlets.I just ran a…
PowerShell WebAccess, Web-Based Windows PowerShell Console

Hey Guys, Today i was able to set up and run PowerShell WebAccess, Its an awesome way to access PowerShell console via a webpage Some Info on Where and When to use PowerShell Web Access Windows PowerShell commands and scripts…
Unblock Files Using PowerShell v3 “Unblock-File” cmdlet

You might have encountered some situations like when we download a file from the internet we would not able to run it until we unblock that file in its downloaded file properties.Here’s an example of a file I downloaded from internet,…
Manipulating SharePoint Lists with PowerShell

Manipulating SharePoint Lists with PowerShell Manipulating SharePoint Lists with PowerShell – PowerShell Gives us an easy way to manipulate SharePoint data using New-WebServiceProxy cmdlet, without using Microsoft.SharePoint.dll which is not easily accesible, also Microsoft SharePoint dll file has some dependencies which might cause it not…
Set Permissions on a File or Directory using PowerShell

There are basically two commands which are used to play around with permissions on a fileGet-Acl – The Get-Acl cmdlet gets objects that represent the security descriptor of a file or resource. The security descriptor contains the access control lists (ACLs) of…
Using Performance Counter with PowerShell to Extract Server Uptime

To retrieve information about a Performance Counter, we can use the Get-Counter cmdlet.Here’s an example of extracting the up time for a server using powershell. $uptimecounter = Get-Counter "SystemSystem Up Time" $pcuptime = $uptimecounter.CounterSamples[0].CookedValue New-TimeSpan -Seconds $pcuptime Here’s i can see my Server Up Time Information in a very…
Customizing PowerShell Prompt via $Profile

If you want to customize PowerShell’s interactive experience with a personalized prompt, you need to modify the $profile variable.   <#Create a new profile (and overwrite one if it already exists):#>  New-Item -type file -force $profile <#To edit your profile:#> notepad $profile   <#To see…