How to startup PowerShell scripting

For the major use case the PowerShell is designed for systems administrators and engineers.  The PowerShell framework has rich features that helps self learning about its usage.  Further to that its cmdlet syntax using verb-noun helps you easily find the relevant cmdlets.   Here is how you get to know/find something within PowerShell Use Get-Command to see if there is any cmdlet that is already available for doing the action you are looking for. PS C:> Get-Command *drive CommandType Name ModuleName ———– —- ———- Cmdlet Get-PSDrive Microsoft.PowerShell.Management Cmdlet New-PSDrive Microsoft.PowerShell.Management Cmdlet Remove-PSDrive Microsoft.PowerShell.Management PS C:> Getting quick more details about […]

Read more

PS: Unix Shell Tail and Head command equivalents in PowerShell

Here is a quick way of checking through the tail or head contents of files in PS. Get all contents of a file: PS C:> Get-Content C:TempServers.txt Vm1 Vm2 Vm3 PS C:> Get Head contents of a file: PS C:> Get-Content -TotalCount 2 C:TempServers.txt Vm1 Vm2 PS C:> Get Tail contents of a file: PS C:> Get-Content -Tail 2 C:TempServers.txt Vm2 Vm3 PS C:> Here is a quick way of checking through the tail or head contents of a command result/output in PS. Get all results of a file: (nothing to be done extra) PS C:> Get-Process | measure Count    […]

Read more

CEPTAM–06 (Centre for Personnel Talent Management) – DRDO Online Application Form

IMPORTANT POINTS TO REMEBER: 1. Before applying, first register on mobile no 56677 in this format CEPTAM <space> First choice of Exam City Code <space> Post Code <space> Date of Birth as ddmmyy <space> Name (Leaving a space between first, middle and last name) [ example, CEPTAM 15 0112 231283 Rupesh Kumar Goyal ] 2. For the posts mentioned in Part 1, apply ONLINE, take a printout and send it to “DRDO Entry Test- 2013, Post Box No.: 8626, Delhi-110 054” alongwith required enclosures so that it is received well before closing date. Applications for STA ‘B’ received by other […]

Read more