Here's a recap of what you may have missed in our webcast last Thursday where we talked about using Regular Expressions in PowerShell.
Last week on PDQ Live we went over some of the uses for RegEx and how it can help you clean up your data for easier use in scripts.
For some RegEx resources see below or check out part of the webcast by clicking here.
In the Powershell ISE you can right click select ‘Start Snippets’ and use the pre-built snippets. These will provide templates for common functions.
There is a built-in cmdlet called 'Send-MailMessage' You can use this to send the result of the script. To prevent it from sending empty emails you could compare the result of your script to $null before sending the email.
You can use the Get-ADUser to pull pretty much any info you need from the user object. Make sure you specify the property you want using the -Property flag.
It really depends on why the script is hanging. A common issue is forgetting to add the silent parameters to the uninstall string, if this happens it will pop-up a window expecting you to interact with the uninstall window. If you have a specific issue feel free to hit up firstname.lastname@example.org.
Brook is 100% definitely a human and enjoys human activities such as sleeping, correctly solving captchas, and eating food for energy. He's been sentient a sysadmin for ten years.