In today post I will show you how to use PowerShell in order to file search. Will use Get-ChildItem command or if some of you like shortcuts – gci. In general this command is used to list objects in some location specified in parameter -Path. That location could be file system or registry. The simplest…
Month: April 2022
How to stop windows service which is stuck at starting or stopping?
Sometime I have problem with service which is in status “starting” or “stopping”. Below I will show you how to resolve it without server restart. In most cases it should help. First, we have to determine service name of service which is hanged. The easiest way is checking it via services.msc and then check properties…
Send mail script – PowerShell
Today I will share with you short function, which send mails. It could be usable for example to sending reports or monitoring notifications. In this script I am using office 365 mailbox cofiguration. In this case $bodymail is a table with disk space reports converted to html by using below command. To send email we…
List of AD users with last logon date – PowerShell
In this post I will show you how to list all AD users and date of last logon for that accounts. This command will help to find out accounts which are not needed anymore and should be disabled or removed. I will use here Get-ADUser cmdlet. Output will be limited to have accounts with enabled…
List of AD accounts with “no expire” passwords
Last time I had to list all account with no-expire password enabled. I prepared simple script to check it. The result will show all enabled accounts which has no expire password. Of course, we can limit it to some specified OU and in below command I extended to have listed also accounts which are disabled.
How to read password of saved wifi network ?
I think you had situation you need to know password of some old wifi network you were connected some time ago. Below I will suggest you solution how to find it. It is possible to get a password by executing few commands in CMD or PS console. I aware that some of you possibly know…