Posts Tagged ‘powershell’

Notice that in Active Directory Users and Computers (ADUC) when setting the expiration of a user account, there’s only a way to have the account expire at the end of a specific day:

Tuesday, October 4th, 2022 at 10:21 | 0 comments
Categories: Technology
Friday, June 17th, 2022 at 09:16 | 0 comments

Step #1: This is the simplest method to add a computer to a domain. In this example you will be prompted for credentials followed by the required reboot. Add-Computer -DomainName “” Restart-Computer Step #2: If you require an automated script without prompting the user for credentials you can provide the user account with rights to […]

Thursday, May 12th, 2022 at 09:34 | 0 comments

The Server Message Block (SMB) network protocol is used to share and access folders, files, printers, and other devices over network (TCP port 445). In this article, we will look at which versions (dialects) of SMB are available in different versions of Windows (and how they relate to samba versions on Linux); how to check the SMB version in […]

Saturday, November 27th, 2021 at 01:12 | 0 comments
Categories: PowerShell, Technology

This script might be useful in getting users that haven’t logged for a longer amount of time. It is checking lastlogondate property: Please be aware that it gets a date only from the specified Domain Controller. In this case, I added a logon server in the server parameter and I was looking only for enabled […]

Saturday, November 27th, 2021 at 01:05 | 0 comments

Unlinked GPOs are just simply policies that aren’t applied to any OU or site. These policies aren’t

Wednesday, September 18th, 2019 at 13:02 | 0 comments
Tags: , ,