Folks,
you can use the following script, to get files on your SYSVOL that are greater than 1 MB and save the output to CSV and XLSX. ADM Files will be excluded.
Download my script on SPICEWORKS
Have a nice day.
Cheers,
Tim
Friday, July 13, 2018
Tuesday, July 10, 2018
lastLogon vs lastLogonTimestamp vs lastLogonDate - explained
Today I want to write about this "last Logon attributes"... This could be a little bit confusing if you check it on the internet. So with my post I will try to explain it easily.
lastLogon
The lastLogon is only updated on the Domain Controller where login has actually happened and it wouldn´t be replicated. It´s being updated each time after each interactive logon.
An interactive logon to a computer can be performed either locally, when the user has direct physical access, or remotely, through Terminal Services, in which case the logon is further qualified as remote interactive.
lastLogon
The lastLogon is only updated on the Domain Controller where login has actually happened and it wouldn´t be replicated. It´s being updated each time after each interactive logon.
An interactive logon to a computer can be performed either locally, when the user has direct physical access, or remotely, through Terminal Services, in which case the logon is further qualified as remote interactive.
Thursday, June 28, 2018
Task Scheduler - Repeat a task on a custom interval that is not selectable
In Windows Server 2008 and above you can set task to repeat on whatever you want. The corresponding drop down menu just present 5,10,15,30 minutes and 1 hour, but you can type in any number of hours or minutes you want to use.
There are some limitations you should know.
You can enter 2 hours, but not 2.5 hours. If you want to run a task every 2.5 hours, you have to enter the amount of minutes. Therefore, this would be 2.5 x 60 = 150 minutes.
There are some limitations you should know.
You can enter 2 hours, but not 2.5 hours. If you want to run a task every 2.5 hours, you have to enter the amount of minutes. Therefore, this would be 2.5 x 60 = 150 minutes.
Wednesday, June 20, 2018
PowerShell Get and copy LAPS generated Admin password to clipboard V2
My new script just get the Administrator password generated by LAPS and save it to clipboard.
You just have to enter the computer name.
The password will be shown in your PS Console and copied to your clipboard.
Labels:
Active Directory,
Computer Accounts,
Powershell
Monday, June 18, 2018
Get all Site-Linked GPOs using PowerShell
You can download my new script to get all Site-Linked GPOs on Technet.
https://gallery.technet.microsoft.com/Get-all-Linked-GPOs-using-4086b1f3?redir=0
It´s based on Ashley MCGlone´s Get-GPO-Report. Link -> https://tinyurl.com/jpbzmuu
https://gallery.technet.microsoft.com/Get-all-Linked-GPOs-using-4086b1f3?redir=0
It´s based on Ashley MCGlone´s Get-GPO-Report. Link -> https://tinyurl.com/jpbzmuu
Labels:
Active Directory,
Powershell
Subscribe to:
Posts (Atom)