2833 shaares
5 private links
5 private links
65 results
tagged
powershell
Strings in PowerShell and DotNet are immutable. From the MDSN String Class documentation:
If you wanted to see what would happen, you could edit the script and add the WhatIf parameter to every changing command but that’s not really a viable solution. What you can do is
@{ Name = 'FromComputer'; Expression = { hostname }}
Scriptblock
You may have noticed that I referenced scheduled jobs with the Windows PowerShell prefix above. That was not a mistake, or subconscious twitch. At the time of writing, the required cmdlets have not ported to PowerShell Core and as such the Windows moniker is very important.