Showing archive results for October 2015

Oct 7, 2015
Post comments count0
Post likes count0

PowerTip: Concatenate String Array with PowerShell

Doctor Scripto

Summary: Use Windows PowerShell to concatenate elements of a array.  How can I use Windows PowerShell to concatenate the elements of a string array?  Use the static Concat method from the String class, for example: $a = "string a" $b = "string b" $arr = @($a,$b) [string]::Concat($arr)

Scripting Guy!Windows PowerShellscripting techniques
Oct 7, 2015
Post comments count0
Post likes count0

Dude, a String Is a String in PowerShell

Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, talks about using string methods to determine null or empty in Windows PowerShell.  Hey, Scripting Guy! I have a problem with a script. It is used to write data to another application, but sometimes the variables in it are empty. I have tried to detect this by checking to see if the variable is equa...

Scripting Guy!Windows PowerShellscripting techniques
Oct 6, 2015
Post comments count0
Post likes count0

PowerTip: Enable PowerShell Remoting

Doctor Scripto

Summary: Learn how to enable Windows PowerShell remoting.  How can I turn on Windows PowerShell remoting on my workstation so it will run remote commands?  Use the Enable-PSRemoting cmdlet.

Scripting Guy!Windows PowerShellPowerTip
Oct 6, 2015
Post comments count0
Post likes count0

Troubleshooting WinRM with PowerShell—Part 2

Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, talks about troubleshooting WinRM.  Hey, Scripting Guy! So I thought that Windows PowerShell remoting was supposed to just work. Well, it doesn't. I am confused, and don’t even know where to begin. I am pretty sure that it should be enabled, but it is not working. Can you help? —EG ...

Scripting Guy!Windows PowerShellremoting
Oct 5, 2015
Post comments count0
Post likes count0

PowerTip: Produce List of Disabled Windows Features

Doctor Scripto

Summary: Use Windows PowerShell to produce a list of disabled Windows features.  How can I use Windows PowerShell to see what Windows features are disabled in my installation? Open an elevated Windows PowerShell console, use the Get-WindowsOptionalFeatures cmdlet, and specify            that you want to ...

Scripting Guy!Windows PowerShellPowerTip