PowerShell for Windows Admins:

March, 2019


March 31, 2019  3:13 PM

Pro Microsoft Hyper-V 2019

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Hyper-V, Powershell

I’ve always maintained that the most important thing about PowerShell is what you can do with it. This is brought out in my book - Pro Microsoft Hyper-V 2019 - 1 Comment     RSS Feed     Email a friend

March 30, 2019  2:45 PM

PSCommandNotFoundSuggestion

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

PowerShell v6.2 contains a number of experimental features including PSCommandNotFoundSuggestion The idea of experimental features is to make the use of new features – especially those that may cause breaking changes optional.  Feedback can be obtainied and the experimental features can be...


March 30, 2019  6:48 AM

PowerShell v6.2 experimental features

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

I’ve mentioned the PowerShell v6.2 experimental features before. This blog post from the PowerShell team 0 Comments     RSS Feed     Email a friend


March 30, 2019  6:17 AM

Copy-Item

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Copy-Item seems to cause problems for many users. I’ve written an article on the use of Copy-Item that you may find useful - 0 Comments     RSS Feed     Email a friend


March 28, 2019  1:45 PM

PowerShell v6.2 release

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

The Powershell v6.2 release has just been made available on github - https://github.com/PowerShell/PowerShell/releases The full release notes aren’t available on the...


March 28, 2019  8:36 AM

Read-Host

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Read-Host enables you to prompt for input for your functions and scripts. For instance I see a lot of examples of this sort of code: $group = Read-Host -Prompt 'Group Name' Get-ADGroupMember -Identity $group You should only use Read-Host as a last resort. The correct way to pass data into...


March 25, 2019  5:27 AM

Powershell default parameters

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

The issue Scope issue with Install-Module that I discussed in recent posts is annoying because I know that I’ll forget about it and end up installing in the wrong place and have to uninstall and reinstall. Then I remembered PowerShell default parameters. By adding the...


March 22, 2019  5:11 AM

Putting user information into computer description

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Active Directory, Powershell

I was recently asked how to add user information – specifically first and last name – into  computer description in Active Directory.   First get your user $user = Get-ADUser -Identity FredBrown   Then add the information to the computer’s...


March 21, 2019  11:59 AM

Install-Module in PowerShell v6.2 RC 1

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Further to my last post it appears that Install-Module in PowerShell v6.2 RC1 DOESN’T follow the rules. In an elevated session if the scope parameter ISN’T used it will install to $home\Documents\PowerShell\Modules The default appears to be CurrentUser regardless. You have to use -Scope...


March 21, 2019  11:16 AM

Install-Module Scope parameter

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Be aware of the Scope parameter when using Install-Module. The following rules apply: Allusers scope installs to $env:ProgramFiles\PowerShell\Modules CurrentUser scope installs to $home\Documents\PowerShell\Modules NoScope defined: - - For an elevated PowerShell session, Scope defaults...


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: