Powershell

Finding Unapproved Verbs

Cmdlets and functions should use only approved verbs to make it easier on user to find commands, and improve consistency. Here is quick audit code...

read more

Creating File Shares

In Server 2012 R2 and Windows 8.1, there are many useful new modules with cmdlets such as New-SmbShare which creates new file shares easily. If you...

read more

Using Custom Scopes

When you change variables, you might need to clean up later and ensure that you reverted them back to some default value – unless you use...

read more

Careful with Add-Member!

Frequently, Add-Member is used to create custom objects, for example like this: $o = New-Object -TypeName PSObject $o | Add-Member -MemberType...

read more
1 48 49 50 51 52 130