Jump to content

QwertyMash

Members
  • Posts

    149
  • Joined

  • Last visited

Everything posted by QwertyMash

  1. I will contact you via DM tonight or tomorrow night with hopefully the solution for you. Thank you.
  2. Hello, I might be able to do this tonight for you but more likely tomorrow night - is that ok? Thank you.
  3. Hello, this can be done two ways, you can either add it to the script but it means even internal emails will have it or you can do what most people do and use mailflow rules to append the disclaimer to the bottom of internal to external emails only.
  4. Have you looked at foreach -parallel?
  5. Hello Browolf, Nice little script. Thought I would just throw in my thoughts: I would not recommend using a wildcard filter (-filter *) or -properties * this is needlessly expensive as you are going to get every single AD user account then do a check against every single one in your If statement. You could use: get-aduser -filter 'useraccountcontrol -eq "544"' -properties useraccountcontrol. This will return only the accounts with that flag and only the extra properties you need (and samaccountname is a default one that is pulled back). And to make it even safer you could also add -searchbase and point it to a specific OU. Also just a side note for people that might panic thinking all their accounts have 544 and can be blank - this is not the case, they still follow any password policy enforced by Group Policy. Here is my take on this, please note this is untested and continue at your own risk: function Get-PasswordBlankAllowed { [CmdletBinding()] param ( [Parameter()] [switch] $outlog, [Parameter()] [switch] $fix ) write-host "Finding all accounts with 544 UserAccount Flag $(if ($fix){'and attempting to change the flag.'}) $(if ($fix){'Log located in C:\temp\544Flag.log.'})" get-aduser -filter 'useraccountcontrol -eq "544"' -properties samaccountname,useraccountcontrol | ForEach-Object { write-host "$($_.samaccountname) - $($_.useraccountcontrol)" if($fix) { write-host set-adaccountcontrol $_.samaccountname -PasswordNotRequired $false } if($outlog) { Add-Content -path C:\temp\544flag.log "$($_.samaccountname) $(if ($fix){', Fixed'})" -force } }} Examples of use Get-PasswordBlankAllowed #Just lists the usersGet-PasswordBlankAllowed -outlog #Lists the users and outputs a log to C:\temp\544flag.logGet-PasswordBlankAllowed -fix #Lists the users and alters their account Get-PasswordBlankAllowed -outlog -fix #Alters their account and creates the log Thank you very much for the blog post, hope my take on it is something you like - I am a fan of seeing the other ways people achieve something.
  6. Oh very nice - I didn't realise.
  7. What new forum sorry?
  8. Exactly what I was going to say. Could even do a QR code to a private YouTube link on top of all the physical media.
  9. I believe Vbulletin would have to add this feature and as I think it has been a feature request since 2014 I sadly do not think it will be coming.
  10. I've worked a few times at places that use Docusign which was half decent.
  11. Just a thought but do you have any other products such as a Watchguard Firewall or even using group policy to block YouTube even if its just a stop gap while you maybe speak to Smoothwall support?
  12. Those are all number of days sadly - the OP wanted a specific date. I think his best bet is to just use a script to expire the passwords in Active Directory on a set date.
  13. Unless you are doing this for a specific reason I would avoid forced password resets - Please see the NCSC Gov website for more info (in fact PaulKerton has linked you directly). However if this is for a specific task, such as to reimplement a higher password requirement etc and you want everyone to set new passwords this one time I'd recommend just writing a Powershell script.
  14. +1 for codeclub - I used to run one my self for a group of kids at the library.
  15. Sorry for the late response but I am super happy you got sorted.
  16. GeoffA - Sent you a PM with what I think it is you are after
  17. Glad to hear you got sorted man! Nice one.
  18. Thank you very much and if you post a screenshot of a mock up of how you would like it I will send you the part of the script to replace to get it how you like Thank you. - - - Updated - - - I've set a reminder on my phone, I will do this for you after work. Thanks.
  19. Hello Geoff, I have no reply? Did it work? Thank you.
  20. I have PM'd you a possible layout for the HTML to look closer to what I think it was you were after. Thank you.
  21. Hello there, When I get in from work I can send you a PM with a version that will do it how you want Thank you.
  22. So I just created a fake user with a hyphen in their last name field and display name and it was still displayed totally fine in their signature so I am currently unable to replicate your issue.
  23. Spot on I will take a look now.
  24. Hello, I will do some testing as this is not something I have noticed happen before. Which part of the users active directory object is the hyphen in? Thank you.
  25. Hello Kevin. Of course - Can you try using ü for the ü Mit freundlichen Grüen - Best Regards Let me know how that goes Thank you.
×
×
  • Create New...