Category: Powershell

Review of PowerShell Maths

Windows PowerShell Maths PowerShell is very good at understand whether a command in your script should be handled as text or as a number.  Incidentally, the more you study PowerShell’s different math techniques, the more reasons you will find to turn to PowerShell rather than VBScript or Excel. Topics for …

PowerShell’s Set-Acl

PowerShell Share Permissions Please Note: The original page has been moved here See here for Set-Acl See here for WMI Share Recommended: Solarwinds’ Permissions Analyzer – Free Active Directory Tool I like the Permissions Monitor because it enables me to see WHO has permissions to do WHAT at a glance.  …

PowerShell New-Object -ComObject

Scripting COM Shell Objects – Launch Office Programs I will show you how to use PowerShell’s New-Object to create Microsoft Office objects such as Word.Application or Outlook.Application.  Incidentally, this PowerShell technique of replaces many of the tasks previously undertaken by VBScript’s CreateObject.  Topics for PowerShell's New-Object -ComObject PowerShell’s New-Object  -Com …

PowerShell’s Get-Childitem -Filter

PowerShell’s Get-Childitem -Filter (Parameters) Once you stray from simple Get-ChildItem examples, the results may not be what you intended.  Fortunately it’s easy to compare the files returned by PowerShell with files viewed in Windows explorer. How to List Get-ChildItem’s Parameters Get-Help Get-ChildItem -full Note 1:  Get-ChildItem has a particularly rich …

PowerShell Write-Eventlog

Windows PowerShell Write-Eventlog Cmdlet Our mission is to create a real-life PowerShell script, which employs Write-Eventlog to record the source, entryType and a message in one of the Windows logs. Topics for Write-Eventlog Preparation, For Our Real-life PowerShell Eventlog Task Example 1: Write-Eventlog Script To Create SampleApp Entries Example 2: …

PowerShell Import-Csv

PowerShell’s Import-Csv with New-QADUser My mission is to create new user accounts from data held in a CSV file.  For this mission we need the following skills, execute PowerShell cmdlets, install QAD snap-Ins, research LDAP properties and control spreadsheet columns.  Topics for PowerShell Import-Csv Stage 1: Introducing PowerShell’s Import-Csv cmdlet …