How to validate credential argument for your function

You may know that it's a best practice to validate arguments you pass to your function. For example, if you want to validate that your parameter named MyString is not null nor empty you can use the ValidateNotNullOrEmpty attribute. But there are other validations which must be done through casting1 or type accelerators. And fortunately, … Continue reading How to validate credential argument for your function

In a nutshell: PAW, SAW and why you should care

Like you probably know, most of the threats enter your company through users. The most common scenarios are: infected emails browsing malicious or infected web sites opening infected documents (Word, Excel, ...) That's where the Privileged Access Workstation(PAW) or Secured Admin Workstation (SAW) come in. The main principle behind You separate the user's environment from … Continue reading In a nutshell: PAW, SAW and why you should care

Push-Location VS Set-Location

Push-Location VS Set-Location

With both cmdlet you can set the current working folder in your console. However, Push-Location becomes really interesting when you associate its use with Pop-Location. Both cmdlets act merely like the Back and Forward buttons from the Windows File Explorer. With Push-Location and Pop-Location, the history is named the stack. However, unlike with the Windows … Continue reading Push-Location VS Set-Location

Search the event log with the Get-WinEvent PowerShell cmdlet

Search the event log with the Get-WinEvent PowerShell cmdlet

Searching in the event log is one of the most common tasks of a system administrator. With the help of the Get-WinEvent PowerShell cmdlet, you can easily display the Windows events that interest you. Content of this article: All available logs Events of a specific event log All events one page at a time A … Continue reading Search the event log with the Get-WinEvent PowerShell cmdlet