Tags » Powershell-basics

Passing parameters to a script block

Passing parameters to a scriptblock seems to be an issue at the moment.

Consider a simple scriptblock

Invoke-Command -ScriptBlock {Get-Process}

How can you modify that to parameterise the processes that are returned. 131 more words

Powershell Basics

Shortcut for Directory - PowerShell

It’s been for a while since I started using PowerShell for some operations. It might seem complicated at the beginning but if you be patient and keep learning, it makes so many tasks easy for you, especially for .NET developers. 223 more words

Command Line

[Post-2] S/W and H/W Requirement for for Powershell

Whatever Hardware required for Installing either Server Operating system (Windows Server 2008, 2008 R2, 2012, 2012 R2 or 2016) or Client Operating System Like Windows 7, 8 and 10 that’s the only hardware dependency. 567 more words

Powershell Basics

[Post-1] Why you can't ignore learning Powershell?

I think its valuable to understand why you should consider learning Powershell, because when you do you will start realizing  the time you invest to learning Powershell will pay of huge returns. 666 more words

Powershell Basics

Modifying AD users in bulk

Modifying AD users in bulk involves either setting one or more properties to the same value for a set of users or reading in the values you need from a data source of some kind. 402 more words

PowerShell And Active Directory

Test data for bulk AD changes

I’ve had a number of questions about changing AD user data in bulk. If you need to do that you need some test data. The specific questions were around setting the Division property and the EmployeeNumber at the same time – but some accounts didn’t have an employee number. 223 more words

PowerShell And Active Directory

Get-Content and Numbers

A common technique is to put a list of information into a text file and read that using Get-Content. The information is often server names. This works great when the data is strings but breaks down if you’re dealing with numbers. 268 more words

Powershell Basics