Quantcast
Channel: QuickTip – Jaap Brasser's Blog
Browsing latest articles
Browse All 18 View Live

Image may be NSFW.
Clik here to view.

QuickTip: Update Windows Defender definitions using Update-MPSignature

Since protecting your computer is as important as anything it might be nice to know that there is also a PowerShell cmdlet available to manually update your virus and malware definitions:...

View Article


Image may be NSFW.
Clik here to view.

QuickTip: Determine current line number in PowerShell

When scripting it can be interesting to know which line of the script is currently being executed, to determine this we take a look at the $Myinvocation automatic variable. This variable contains the...

View Article


Image may be NSFW.
Clik here to view.

QuickTip: Select all links using Invoke-WebRequest

Today I was looking for a way to discover all links on my blog. Invoke-WebRequest returns a number of interesting properties, which can be listed by piping the output into the Get-Member cmdlet: 1 2...

View Article

Image may be NSFW.
Clik here to view.

QuickTip: Pin PowerShell to the Taskbar

When you are working with PowerShell in your daily work it might be worth considering pinning PowerShell to the taskbar. By doing this you have easy access using either the the mouse of the keyboard...

View Article

Image may be NSFW.
Clik here to view.

Quicktip: Create an object that refers to its own properties

Recently I received the question the /r/PowerShell community if it was possible to create an object that refers to its own properties when it is created. The user specified that they would prefer to...

View Article


Image may be NSFW.
Clik here to view.

Quicktip: Use Windows Defender to scan a file or folder

As I was experimenting with the new PowerShell 5.0 cmdlets for Windows Defender I noticed that there is no parameter for starting a custom scan. As a workaround I used the mpcmdrun.exe tool to initiate...

View Article

Image may be NSFW.
Clik here to view.

Quicktip: Use a Csv file to splat parameters into a function

I recently received a question on Reddit that asked if it is possible to use a csv file to create a hash table that can be used for splatting parameters into a function. The goal of this exercise is to...

View Article

Image may be NSFW.
Clik here to view.

Quicktip: PowerShell command history on Windows 10 using PSReadline

In Windows 10 PowerShell 5.0 comes bundled with PSReadline. This module allows for a number of useful features and today we will focus on getting access to the command history. A very useful feature of...

View Article


Image may be NSFW.
Clik here to view.

QuickTip: Get Domain Name of Computer

In PowerShell it is relatively trivial to retrieve the domain for the logged in user, as this is stored in the environment variable. In multi-domain environments it is often the case that the user...

View Article


Image may be NSFW.
Clik here to view.

QuickTip: Change PowerShell Console Size and Buffer

Changing the size of the PowerShell console is something that has been made easier in recent versions of PowerShell. But when working with older versions of PowerShell or with automated systems it is...

View Article
Browsing latest articles
Browse All 18 View Live