Showing archive results for 2011

Sep 22, 2011
Post comments count0
Post likes count0

Format Multilevel Arrays in PowerShell

Doctor Scripto

Summary: Microsoft Scripting Guy Ed Wilson talks about formatting multilevel arrays in Windows PowerShell.   Hey, Scripting Guy! I am having a problem with arrays. I have two-level arrays and they work perfectly when I have the arrays defined on a single line. But when I try to format my script so that it is easier to read, they seem to get me...

Scripting Guy!Windows PowerShellscripting techniques
Sep 21, 2011
Post comments count0
Post likes count0

Two Simple PowerShell Methods to Remove the Last Letter of a String

Doctor Scripto

Summary: Learn two simple Windows PowerShell methods to remove the last letter of a string.   Hey, Scripting Guy! I have, what should be a simple question. I need to be able to remove only the last character from a string. For example, if I have a string the scripts, I want the string to be the script instead. If I have the number 12345, I wan...

Scripting Guy!Windows PowerShellscripting techniques
Sep 20, 2011
Post comments count0
Post likes count0

Solve Problems with External Command Lines in PowerShell

Doctor Scripto

Summary: Microsoft Scripting Guy Ed Wilson discusses problems creating external command arguments using Windows PowerShell.   Hey, Scripting Guy! I am using an external program that takes a –o command-line parameter followed by a path location. The program permits no space between the –o parameter and the supplied path. For example...

Scripting Guy!Windows PowerShellscripting techniques
Sep 19, 2011
Post comments count0
Post likes count0

Avoid Blank Lines at End of a Text File with PowerShell

Doctor Scripto

Summary: Microsoft Scripting Guy Ed Wilson teaches how to avoid writing blank lines at the end of a file by using Windows PowerShell.   Hey, Scripting Guy! I have a problem with my script. For example, in my script, I build up a variable. Then when I write the variable to a file, I always end up with an extra blank line at the end of the text ...

Scripting Guy!Windows PowerShellscripting techniques
Sep 18, 2011
Post comments count0
Post likes count0

Restore NTFS Security Permissions by Using PowerShell

Doctor Scripto

Summary: Superhero BATCHman restores NTFS security permissions using Windows PowerShell.   Microsoft Scripting Guy Ed Wilson here. Well, it is time once again for BATCHman. This time, it is Episode 12. Take it away, Sean. When the digital crash In a blink and a splash A gleam in the night To make all wrongs right Our heroes fly out And there ...

Scripting Guy!Windows PowerShellsecurity