PowerShell for Windows Admins:

February, 2019


February 28, 2019  1:28 PM

PowerShell interviews

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Following my last post about sample questions for PowerShell interviews that I’d stumbled across I’ve been asked what sort of questions I’d ask – given my statement that many of the question sets were out of date. I’ve thought about it and decided I’ll run an occasional series of...

February 27, 2019  9:36 AM

PowerShell interview questions

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

For some bizarre reason I ended up looking at various sets of PowerShell interview questions and answers. For the most part they scared me – due to their outdated nature. Many, if not most,  of  the question sets hadn’t been brought up to date for PowerShell v5.1 and very few even...


February 26, 2019  10:23 AM

Execution policy

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

PowerShell gives you a number of options regarding execution policy. You use one of the following options with Set-Execution policy: Restricted – won’t run scripts or profiles. This is the default execution policy Allsigned – only scripts (and profiles) signed with a trusted...


February 25, 2019  1:06 PM

Processing files with switch

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

The switch statement has a –file parameter that can be used to give the path to a file. The file is read one line at a time and processed through the switch statement. The example from last time can be used to demonstrate processing files with switch.


February 25, 2019  8:52 AM

Splitting a file

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Saw a question about splitting a file that had repeating data blocks. Each block starts with HOST so the code to split becomes: 0 Comments     RSS Feed     Email a friend


February 24, 2019  12:12 PM

PowerShell operators

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

PowerShell has operators – lots of operators. This is a quick overview of the PowerShell Operators. The obvious place to start is the arithmetic operators -  see about_Arithmetic_Operators +, –, *, / perform the four arithmetic operations % is for modular arithmetic – get the...


February 22, 2019  10:53 AM

Summing multiples

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Came across the project Euler web site – https://projecteuler.net. It has literally hundreds of problems – mainly mathematical – that’ll illustrate some useful PowerShell techniques. The first problem is summing multiples. You need to sum all of...


February 21, 2019  5:44 AM

The source of PowerShell cmdlets

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

The source of PowerShell cmdlets seems to cause a lot of confusion. The first point is that the PowerShell team, and now the open source project, are only responsible for the PowerShell engine and the core modules – basically most of what you’ll find in C:\Program...


February 19, 2019  2:30 PM

PowerShell v6.1.3 install problem

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

PowerShell v6.1.3 install problem prevented my from changing the working directory. The introduction of the –WorkingDirectory parameter pwsh.exe has caused problems – usually forcing PowerShell to ignore any directives in your profile to set a working folder. In previous versions this...


February 19, 2019  2:11 PM

PowerShell v6.1.3

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

PowerShell v6.1.3 has been released - https://github.com/PowerShell/PowerShell/releases It primarily fixes the security issues...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: