Showing tag results for PowerTip

Aug 7, 2012
Post comments count0
Post likes count0

PowerTip: Run a PowerShell Script with Space in the Path

Doctor Scripto
Doctor Scripto

Summary: Learn how to run a script with a space in the path. Question: How do I run a script with a space in the path? Answer 1: PS > c:my` foldermyscript.ps1 Answer 2: PS> &(“c:my  foldermyscript.ps1”) Question: What is the easiest way to create an array? Answer 1: $array = “1”,”2”,...

Scripting Guy!Windows PowerShellPowerTip
Aug 6, 2012
Post comments count0
Post likes count0

PowerTip: Using Tabs in PowerShell

Doctor Scripto
Doctor Scripto

Summary: Learn about creating tabs in Windows PowerShell by using the t in a script to produce a tab? Answer: "`thi" Question: That syntax above is ugly. What happens if I put a space in it like this: “`t hi”? Answer: If you include a space in the line like “`t hi”, then you will tab over one tab stop and one additional spac...

Scripting Guy!Windows PowerShellPowerTip
Aug 5, 2012
Post comments count0
Post likes count0

PowerTip: Switch and Other Things

Doctor Scripto
Doctor Scripto

Summary: Learn to post powerful Windows PowerShell command and other things. Question: What is the most powerful command in PowerShell? Answer:  Switch Question: What is `t used for?Answer: Tab

Scripting Guy!Windows PowerShellPowerTip
Aug 4, 2012
Post comments count0
Post likes count0

PowerTip: Finding the Type of an Object

Doctor Scripto
Doctor Scripto

Question: What .NET Framework class is leveraged by the Get-EventLog cmdlet? Answer: System.Diagnostics.EventLogEntry Question: How would I find the above information? Answer: Get-EventLog application | get-member  

Scripting Guy!Windows PowerShellPowerTip
Aug 3, 2012
Post comments count0
Post likes count0

PowerTip: Finding Specific Cmdlets

mredwilson
mredwilson

Summary: Learn about important Windows PowerShell cmdlets and how to find them. Question: What are the three MOST important cmdlets? Answer: The three most cmdlets are: Get-Command, Get-Help and Get-Member. Question: Which cmdlet can I use to work with event logs? Answer: To work with event logs, use the Get-EventLog cmdlet, or the Get-WinEven...

Scripting Guy!Windows PowerShellPowerTip