How to stop windows service which is stuck at starting or stopping?

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 of service.…

Send mail script – PowerShell

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. [crayon-69e1d840b9cd2985332142/] In this case $bodymail is a table with disk space reports converted to html by using below command. [crayon-69e1d840b9cde622542214/] To send email we…

List of AD users with last logon date – PowerShell

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 status. [crayon-69e1d840ba14a186130398/]…

List of AD accounts with „no expire” passwords

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. [crayon-69e1d840ba545463979848/] 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. [crayon-69e1d840ba54f215226566/]

How to read password of saved wifi network ?

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 this way…

Mass update of distribution list members – Powershell

Mass update of distribution list members – Powershell
Some time ago I had to perform update of one of DLs with all mails from company. I prepared a simple commands and will share it with you. The csv file is the export of emails I want to add. Imported file has 2 columns - surname and email address (primarySmtpAddress). 1st one column is not obligatory…

When AD user password expired ? – PowerShell

When AD user password expired ? – PowerShell
In this short port I publish PS script which in easy way is checking when user password is expired (or when will expire). I am using this in my daily work. This is very simple code. It is getting from user some part of name or surname of AD account, then is searching account and lists all…

Hello !

Hi, since some time I have planned to start blog like that. I am actually working in IT and met a lot of ocassions to write script which helped me in my daily work. It helped me and i hope also will help someone. Will add some scripts, instructions of the some interesting things I am doing.…