Wednesday, July 27, 2022

Introducing scripting and toolmaking

 Introducing scripting and toolmaking


 

Automation in scale, remoting

 Automation in scale, remoting


 

Getting prepared for automation

 Getting prepared for automation


 

The PowerShell in the shell, remoting

 The PowerShell in the shell, remoting


 

The pipeline: deeper

 The pipeline: deeper


 

Objects for the Admin

 Objects for the Admin


 

The pipeline: getting connected and extending the shell

 The pipeline: getting connected and extending the shell


 

The help system

 The help system


 

Don't fear the shell

 Don't fear the shell


 

Thursday, October 1, 2020

Find out which application is running on a specific port, using PowerShell?

Find out which application is running on a specific port, using PowerShell? 

let's take an example of port 4020. 

run the below PowerShell cmdlet. 

Get-NetTCPConnection | ?{$_.localport -eq 4020} | fl

 

Copy the PID. 

Run the below cmdlet. 

Get-Process -PID 2292 | fl

 

 The process name found on this is msvsmon.

 

Saturday, September 12, 2020

How to clear a AD attribute using powershell?

set-aduser -identity <User.Name> -clear <ADattributeName> 

In this example I am trying to clear the target address value of a AD user. 

set-aduser -identity <User.Name> -clear targetaddress 

this will change the targetaddress AD attribute of the user to <not set>