Comments for RandomTechMinutiahttps://randomtechminutia.wordpress.com
No Telling what the subject is today.Fri, 10 Mar 2017 06:21:09 +0000hourly1http://wordpress.com/Comment on Powershell Script to Disable Inactive Users v3 by Davehttps://randomtechminutia.wordpress.com/2014/07/09/powershell-script-to-disable-inactive-users-v3/#comment-4631
Fri, 10 Mar 2017 06:21:09 +0000http://randomtechminutia.wordpress.com/?p=487#comment-4631Hi I can send you a jpg if you send me your email address.
]]>Comment on Powershell Script to Disable Inactive Users v3 by Roberthttps://randomtechminutia.wordpress.com/2014/07/09/powershell-script-to-disable-inactive-users-v3/#comment-4629
Fri, 10 Mar 2017 02:37:00 +0000http://randomtechminutia.wordpress.com/?p=487#comment-4629Can you show or send me an example? I don’t currently have a lab setup any longer to test the code. If I had to guess you can mess around with the HTML in the script around like 126. You might be able to fix it by putting in a line return.
]]>Comment on Powershell Script to Disable Inactive Users v3 by Davehttps://randomtechminutia.wordpress.com/2014/07/09/powershell-script-to-disable-inactive-users-v3/#comment-4625
Wed, 08 Mar 2017 14:58:05 +0000http://randomtechminutia.wordpress.com/?p=487#comment-4625Hi love your script however when it sends the email it puts the company name and details in the same line as the Name,Account,Creation Date,Last Login,DN any idea how I can get it to move down to the next line.
]]>Comment on Taking Ownership of a Registry Key using Powershell by Roberthttps://randomtechminutia.wordpress.com/2012/05/09/taking-ownership-of-a-registry-key-using-powershell/#comment-4351
Thu, 08 Dec 2016 15:04:52 +0000http://randomtechminutia.wordpress.com/?p=351#comment-4351Fixed! Thanks!
]]>Comment on Taking Ownership of a Registry Key using Powershell by microb.vnhttps://randomtechminutia.wordpress.com/2012/05/09/taking-ownership-of-a-registry-key-using-powershell/#comment-4349
Thu, 08 Dec 2016 10:13:04 +0000http://randomtechminutia.wordpress.com/?p=351#comment-4349Line 35 misses an opening square bracket. Rest of the script works!
]]>Comment on Powershell Script to Notify Users of Expired or About to Expire Passwords in Active Directory. by Krenhttps://randomtechminutia.wordpress.com/2011/11/18/powershell-script-to-notify-users-of-expired-or-about-to-expire-passwords-in-active-directory/#comment-3500
Wed, 29 Jul 2015 13:06:34 +0000http://randomtechminutia.wordpress.com/?p=151#comment-3500Thank you for the reply.

I have tested using the Send-MailMessage using my “localhost, 127.0.0.1” as my smtp server because we use google apps for business and our email is through this service as well.

however, when I attempt to use google as my smtp server it either fails at the credentials or I get a startTLS message although I have port 587 set as my delivery port.

so can I do the same using my localhost as the relay server? I have tried but again never receive the email using your code.

Thanks in advance.

]]>Comment on Powershell Script to Notify Users of Expired or About to Expire Passwords in Active Directory. by Roberthttps://randomtechminutia.wordpress.com/2011/11/18/powershell-script-to-notify-users-of-expired-or-about-to-expire-passwords-in-active-directory/#comment-3499
Tue, 28 Jul 2015 22:52:31 +0000http://randomtechminutia.wordpress.com/?p=151#comment-3499Yes the smtp relay server is needed for the very last step in the script is to send a email based on this line $RelayMailServer = “mail.yourdomain.com”

The email is then sent over SMTP \ Port 25 without trying to authenticate to your email server. So the server where you run the scrip must be able to relay off your email server.

Most emails systems have rules that allow/block relaying from specific hosts. If you have the Relay String configured but not getting email you might look on the email server. You can test to see if you are allowing relay by telneting from the server with the script to SMTP, just google test SMTP via telnet: One such example https://technet.microsoft.com/en-us/library/Aa995718%28v=EXCHG.65%29.aspx

Another way you can test is to use the Send-mailmessage via powershell command line and test it directly. If you get the email it worked if not again it might be the mail server.

Sorry for the long response there are a lot of variables that can come into play here. We didn’t even touch on the possibility that email is working and your AD setup is not working so you never get a email. I am sorry to say when I wrote this I didn’t write up a lot of error testing in the code.

]]>Comment on Powershell Script to Notify Users of Expired or About to Expire Passwords in Active Directory. by Krenhttps://randomtechminutia.wordpress.com/2011/11/18/powershell-script-to-notify-users-of-expired-or-about-to-expire-passwords-in-active-directory/#comment-3498
Tue, 28 Jul 2015 18:52:01 +0000http://randomtechminutia.wordpress.com/?p=151#comment-3498Hi, the script seems to run but I never receive the email report or email alerts.

I am not receiving any error messages and I have tested the Send-MailMessage functionality.

However, is an smtp relay server necessary? I am able to send messages from my localhost by omitting the smtp server information. If so, how can I do this using the script?

]]>Comment on Powershell Script to Notify Users of Expired or About to Expire Passwords in Active Directory. by Roberthttps://randomtechminutia.wordpress.com/2011/11/18/powershell-script-to-notify-users-of-expired-or-about-to-expire-passwords-in-active-directory/#comment-3492
Fri, 24 Jul 2015 18:36:51 +0000http://randomtechminutia.wordpress.com/?p=151#comment-3492The way its written today it will not. I wrote this before some of the newer powershell features where released and have not had a reason to go back and revisit. (I don’t work at the job where I rolled this out.) It might be possible to re-write part of it to do it without the Quest tools. Those tools are free however and don’t take any real resources on a Windows server.
]]>Comment on Powershell Script to Notify Users of Expired or About to Expire Passwords in Active Directory. by Willhttps://randomtechminutia.wordpress.com/2011/11/18/powershell-script-to-notify-users-of-expired-or-about-to-expire-passwords-in-active-directory/#comment-3491
Fri, 24 Jul 2015 15:55:14 +0000http://randomtechminutia.wordpress.com/?p=151#comment-3491Does this work without the Quest tools?
]]>