Skip to main content

Script Center

Script Center
We are dedicated to the system administration scripters of the world. At the Microsoft Script Center, we focus on teaching people how to use Windows PowerShell and VBScript to reduce time spent performing mundane tasks.

Hey, Scripting Guy! Blog

Script Center Home Page

PowerTip: Easily Find the Value of a PowerShell Variable
Summary: Learn how to return only the value of a Windows PowerShell variable. How can I use a Windows PowerShell cmdlet to return only the value of a particular variable? Use the Get-Variable cmdlet, and specify the name of the variable and the –valueonly switch. This technique is shown here using the home variable: PS C:\> Get-Variable -Name home -ValueOnly C:\Users\ed.IAMMRED

Recent Posts

Â