“Privilege not held” error with PowerShell “Stop-Computer” cmdlet

1 mai 2017 Nicolas 0

Since April 2017 security updates, you may get the following error when you use the Stop-Computer cmdlet:

As described by Microsoft in the following KB,  it Read More

PoshTip #45 – How to get the number of lines of a file?

10 avril 2017 Nicolas 0

Below is one of the ways to get the number of lines from a file:

Use the Get-Content cmdlet to read your file and Read More

1 2 3 4 8