Extract a variable from a bunch of files
I have a couple of TXT files. They contain some text, along with a line like this: $version = "0.2" The version number keeps changing. I want to list all these files along with the value of $version in...
View ArticleDot star replace matches twice
Have a look at this: PS C:\> 'abc' -replace 'a(bc)','ff$1' ffbc Works as expected. It matches “bc” in the input text and replaces the output with “ff” followed by whatever was matched (in this case...
View ArticleModifying Junk Email configuration using PowerShell
You can use the (Set|Get)-MailboxJunkEmailConfiguration cmdlets to set or view the Junk Email configuration of a mailbox. For instance: PS> Get-MailboxJunkEmailConfiguration rakhesh RunspaceId :...
View Article
More Pages to Explore .....