News

One of the features I like about PowerShell is automatic variables. Automatic variables save you time and provide a more consistent approach at figuring out what's going on under the hood of your ...
You can see what this looks like in Figure 2. [Click on image for larger view.]Figure 2. PowerShell does not evaluate the variable when you use apostrophes.
You can use PowerShell New-Item & Set-ItemProperty cmdlets to find and replace, create, change or remove Registry keysor values remotely.
Now that you have a variable containing the drive letter, you may be able to use it as-is. In some cases however, PowerShell may have trouble accepting a variable in place of a literal drive letter.