Showing archive results for August 2014

Aug 16, 2014
Post comments count0
Post likes count0

PowerTip: Change Value of Element in PowerShell Array

Doctor Scripto

Summary: Learn how to change the value of an element in a Windows PowerShell array.  How can I use Windows PowerShell to change the value of the first element in an array?  Use the Set method and specify the element number and the new value, for example: PS C:\> $a = 1,2,3,4,5 PS C:\> $a.Set(0,50)

Aug 16, 2014
Post comments count0
Post likes count0

The Scripting Editor Tells All

Doctor Scripto

Summary: Dia Reeves, aka the Scripting Editor, has some fun talking about working on the Hey, Scripting Guy! Blog. Microsoft Scripting Guy, Ed Wilson, is here. Today we have a guest blog post from my editor, Dia Reeves... Hello to all you Windows PowerShell scripters and fans of the Hey, Scripting Guy! Blog! I have been editing and publishing this...

Windows PowerShellguest bloggercommunity
Aug 15, 2014
Post comments count0
Post likes count0

PowerTip: Mini-Scripting Games 2014 Question 5

Doctor Scripto

Summary: Here is the fifth short-answer question for Mini-Scripting Games 2014.  You created a constant variable in your Windows PowerShell console.            Now when you attempt to delete the variable, you get an error message.            How can you remove a constant variable? &nb...

Scripting Guy!Windows PowerShellPowerTip
Aug 15, 2014
Post comments count0
Post likes count0

PowerShell Mini-Scripting Games 2014: Problem 5

Doctor Scripto

Summary: Here is the final problem in Windows PowerShell Mini-Scripting Games 2014. Microsoft Scripting Guy, Ed Wilson, is here. This is it. It is day five of the Mini-Scripting Games. Next week, I will share solutions to the questions (PowerTips) and problems from this week. Problem 5 description Your manager has tasked you to help a junior admin ...

Scripting Guy!Windows PowerShellcommunity
Aug 14, 2014
Post comments count0
Post likes count0

PowerTip: Mini-Scripting Games 2014 Question 4

Doctor Scripto

Summary: Here is the fourth short-answer question for Mini-Scripting Games 2014.  You are attempting to use Try/Catch/Finally in your script. No matter what you try, the script never seems to catch it.            What is the most likely cause of the problem?  Answer to be posted next week!

Scripting Guy!Windows PowerShellPowerTip