Quantcast
Channel: use-powershell » regexp
Browsing all 3 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

Dot 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 Article

Image may be NSFW.
Clik here to view.

Modifying 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
Browsing all 3 articles
Browse latest View live




Latest Images