sometimes during the week-end, in the factory, a user can be locked out. Maybe this is a big problem because they have to go ahead fastly (i.e. trucks are waiting for a document and they cannot print it due to this situation).
You are in the middle of the mountain without your mobile phone or maybe you are sleeping because last night ....... anyway I had the need to unlock the account automatically and take track of this.
You can say "There are GPO exceptions that you can activate in Windows 2008........fine grained password policy....bla bla bla". Yes you're right but I love Powershell and I would like to find something to schedule that record everything on a text file.
Schedule it to be executed every minute and the game is over.
....and what about the log ?
Easy :
# use the "expandproperty" to avoid additional info in the text file that will not be correctly interpreted by the second line to unlock the users
Obviously you can refine and adjust this little command to delete, for example, the file if it already exist; or or you can create a new file every time the script is executed. Anyway there are a lot of possibilities of customization.....
No complications, no tricks, only the essential.
Hope this helps.
See you soon.
Portekiz yurtdışı kargo
ReplyDeleteRomanya yurtdışı kargo
Slovakya yurtdışı kargo
Slovenya yurtdışı kargo
İngiltere yurtdışı kargo
FOJV