Jeffery Hicks wrote a new post,
Use splatting and PSBoundParameters to pass parameters in PowerShell 2 months, 3 weeks ago
The automatic variable PSBoundParameters stores the parameters that you explicitly passed to a function in a hash table. With the help of splatting, you can use this PowerShell feature to simplify passing of parameters to functions.
Jeffery Hicks wrote a new post,
Using PowerShell with $PSStyle 1 year ago
PowerShell 7.2 introduced the automatic variable $PSStyle for a new feature called PSAnsiRendering. In this post, I show you how you can use ANSI rendering to control text decorations, such as color and font styling, in PowerShell.
Jeffery Hicks changed their profile picture 1 year ago
Jeffery Hicks's profile was updated 1 year ago
Jeffery Hicks changed their profile picture 6 years, 11 months ago
Jeffery Hicks wrote a new post, Track user logons with a PowerShell script 8 years, 7 months ago
A question I hear often is how to track what computer a user has logged on to. Usually the implication is that the Windows administrator wants a central source that she can easily check. Well what is more central […]
Jeffery Hicks wrote a new post, Configuring logon PowerShell scripts with Group Policy 8 years, 8 months ago
Even though I am going to show you how to set up a Group Policy to run a PowerShell script, I encourage you to think about what you really need to accomplish. Many people still use logon scripts, for example, to […]
Jeffery Hicks wrote a new post, Managing Services the PowerShell way – Part 7: Stop and start with CIM 9 years, 11 months ago