Showing tag results for scripting techniques

Apr 3, 2015
Post comments count0
Post likes count1

Catch PowerShell Errors Related to Reading the Registry

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Try, Catch, Finally blocks to catch Windows PowerShell errors related to reading the registry.  Hey, Scripting Guy! Yesterday you posted Update or Add Registry Key Value with PowerShell. Would it be easy to use Try, Catch, Finally blocks to know if I need to create the registry key...

Scripting Guy!Windows PowerShellscripting techniques
Apr 2, 2015
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Read Registry Key Property Value

Doctor Scripto

Summary: Use Windows PowerShell to read a registry key property value.  How can I use Windows PowerShell to read a registry key property value so I can find the version of a particular software package?  Use the Get-ItemProperty cmdlet, for example: Get-ItemProperty -Path HKCU:\Software\ScriptingGuys\Scripts -Name version

Scripting Guy!Windows PowerShellscripting techniques
Apr 2, 2015
Post comments count2
Post likes count3

Update or Add Registry Key Value with PowerShell

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to update or add a registry key value.  Hey, Scripting Guy! I am having a problem trying to update the registry. I am using the New-ItemProperty cmdlet, but it fails if the registry key does not exist. I added the –Force parameter, but it still will not cre...

Scripting Guy!Windows PowerShellscripting techniques
Apr 1, 2015
Post comments count0
Post likes count1

Use PowerShell to Compare Two Files

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to compare two files.  Hey, Scripting Guy! I have a script that I wrote to compare two files, but it seems really slow. I am wondering what I can do to speed things up a bit. —JW  Hello JW, Microsoft Scripting Guy, Ed Wilson, is here. I looked at the s...

Scripting Guy!Windows PowerShellscripting techniques
Mar 31, 2015
Post comments count0
Post likes count0

PowerTip: Create Array in PowerShell

Doctor Scripto

Summary: Use Windows PowerShell to easily create an array.  Can I use Windows PowerShell to create an array of strings and avoid typing quotation marks            around all the strings?  Instead of creating an array, such as this: $array = “a”,”b”,”c”,”d”,&rdqu...

Scripting Guy!Windows PowerShellscripting techniques