<< < 2 3 4 5 6 7 8 9 10 11 12 > >>   Sort: Rank

Get Directory Properties in Windows PowerShell
How to get directory properties in Windows PowerShell? I want to know how many files are there in a directory. If you want to get measurement properties of a directory in Windows PowerShell like total file size, you can use the "Get-ChildItem ... -Recurse | Measure-Object -Sum Length" pipeline. Here...
2016-10-22, 2555🔥, 0💬

Get File Content in Windows PowerShell
How to get the content of a file in Windows PowerShell? You can use the "Get-Content" cmdlet to get the content of a file in Windows PowerShell. "Get-Content" cmdlet gets the content of the item at the location specified by the path, such as the text in a file. It reads the content one line at a tim...
2016-10-22, 2421🔥, 0💬

Put Data into File in Windows PowerShell
How to put data into a file in Windows PowerShell? You can use the "Set-Content" or "Add-Content" cmdlet to put data into a file in Windows PowerShell. The "Set-Content" cmdlet is a string-processing cmdlet that writes or replaces the content in the specified item, such as a file. You can type the c...
2016-10-22, 2250🔥, 0💬

Delete Directory or File in Windows PowerShell
How to delete a directory or file to a new location in Windows PowerShell? Can I use the old "del" command? Yes, you can still use the old "del" command in Windows PowerShell. But "del" is defined as an alias of the "Remove-Item" cmdlet. The "Remove-Item" cmdlet deletes one or more items, like direc...
2016-10-22, 1766🔥, 0💬

Send Console Output to File in Windows PowerShell
How to send console output to a file in Windows PowerShell? You can use the "Out-File" cmdlet to send console output into a file in Windows PowerShell. The "Out-File" cmdlet sends output to a file. You can use this cmdlet instead of the redirection operator (&gt;) with more controlling parameter...
2016-10-20, 3597🔥, 0💬

Variable Expansion in Strings in Windows PowerShell
What is variable expansion in strings in Windows PowerShell? Variable expansion in strings is a short-hand of string concatenation operations using the following syntax rule: When a variable is included in a double-quoted string literal like "... $variable ...", it will be replaced with the string r...
2016-10-20, 1944🔥, 0💬

String Concatenation in Windows PowerShell
How to concatenate strings in Windows PowerShell? I want to join two strings together. The easiest way to join two strings together is to use the concatenate operator (+) as shown in the example below: PS C:\fyicenter&gt; $name = "John" PS C:\fyicenter&gt; # using string concatenation operat...
2016-10-20, 1916🔥, 0💬

What Is String in Windows PowerShell
What is a string in Windows PowerShell? A string is a sequence of characters in Windows PowerShell. If a sting is encoded in ASCII format, each character occupies a single byte. But if a string is encoded in UTF-8 format, a character may occupy multiple bytes. So the number of characters in a string...
2016-10-20, 1825🔥, 0💬

Work with Strings in Windows PowerShell
Where to find tutorials on how to work with strings in Windows PowerShell? Here is a collection of tutorials compiled by FYIcenter.com team on working strings in Windows PowerShell. What Is String in Windows PowerShell String Concatenation in Windows PowerShell Variable Expansion in Strings in Windo...
2016-10-20, 1756🔥, 0💬

Select String by Pattern in Windows PowerShell
How to select strings with a given pattern in Windows PowerShell? I want to find some specific text in strings. You can use the "Select-String" cmdlet to do string pattern match in Windows PowerShell. The Select-String cmdlet searches for text and text patterns in input strings and files. You can us...
2016-10-19, 2799🔥, 0💬

String Object Methods in Windows PowerShell
What methods are available on the string object in Windows PowerShell? I want to know which method to call to trim a string. A String object supports the following methods in Windows PowerShell: PS C:\fyicenter&gt; "" | get-member -MemberType method TypeName: System.String Name MemberType Defini...
2016-10-19, 2535🔥, 0💬

String Comparison in Windows PowerShell
How to compare two strings in Windows PowerShell? Windows PowerShell supports the following string comparison operations: -eq - Equal to -ne - Not equal to -gt - Greater than -ge - Greater than or equal to -lt - Less than -le - Less than or equal to -Like - Match with wildcard characters ? and * -No...
2016-10-19, 1816🔥, 0💬

String Replacement in Windows PowerShell
How to replace a part of a string in Windows PowerShell? You can use the "-Replace" operation to replace a part of a string in Windows PowerShell. Here is the syntax of the "-Replace" operation: $subject -Replace $pattern,$replacement Regular expression is supported in $pattern. Here are some good e...
2016-10-19, 1565🔥, 0💬

Expression Expansion in Strings in Windows PowerShell
What is expression expansion in strings in Windows PowerShell? Expression expansion in strings is a short-hand of string concatenation operations using the following syntax rule: When an expression enclosed in parentheses following a $ sign is included in a double-quoted string literal like "... $(e...
2016-10-19, 1539🔥, 0💬

"New-PSSession" Cmdlet in Windows PowerShell
How to use "New-PSSession" cmdlet in Windows PowerShell? You can use the "New-PSSession" cmdlet to create a PSSession on a remote computer. The New-PSSession cmdlet creates a Windows PowerShell session (PSSession) on one or more remote computers. Once a PSSession is created on a remote computer, it ...
2016-10-17, 4738🔥, 0💬

"Test-Connection" Cmdlet in Windows PowerShell
How to use "Test-Connection" cmdlet in Windows PowerShell? "Test-Connection" cmdlet in Windows PowerShell is similar to the old "ping" command. The Test-Connection cmdlet sends Internet Control Message Protocol (ICMP) echo request packets ("pings") to one or more remote computers and returns the ech...
2016-10-17, 2030🔥, 0💬

Managing Remote Computer with Windows PowerShell
Where to find tutorials on managing remote computers with Windows PowerShell? Here is a collection of tutorials compiled by FYIcenter.com team on managing remote computers with Windows PowerShell. Remote Computing Overview in Windows PowerShell "Test-Connection" Cmdlet in Windows PowerShell Windows ...
2016-10-17, 2006🔥, 0💬

Windows PowerShell Session with Remote Computers
What is a Windows PowerShell session? A session is an environment where you can run Windows PowerShell commands and scripts. Windows systems supports two types of sessions for Windows PowerShell: 1. Default Sessions - Sessions implicitly created by the local computer, when you start Windows PowerShe...
2016-10-17, 1772🔥, 0💬

Remote Computing Overview in Windows PowerShell
How to manage remote computers in Windows PowerShell? Windows PowerShell allows you to manage remote computers by using various technologies, including WMI, RPC, and WS-Management. You can run commands on one or hundreds of computers with a single Windows PowerShell command. Windows PowerShell offer...
2016-10-17, 1692🔥, 0💬

"Enter-PSSession" Cmdlet in Windows PowerShell
What is the "Enter-PSSession" cmdlet in Windows PowerShell? You can use the "Enter-PSSession" cmdlet to create a new PSSession on a remote computer, and continue to use that PSSession to run cmdlets on the remote computer. Here is an example of using the "Enter-PSSession" cmdlet to run two cmdlets o...
2016-10-15, 8716🔥, 0💬

"New-PSSession" Cmdlet Error in Windows PowerShell
Why I am getting the "new-pssession : [...] Connecting to remote server ... failed" error in Windows PowerShell? Sometimes, when you try to create a PSSession on a remote computer, you get an error as shown in the following example: PS C:\fyicenter&gt; New-PSSession office-server new-pssession :...
2016-10-15, 6454🔥, 0💬

Enable WinRM for Remote Computer with Windows PowerShell
How to enable WinRM on the remote computer? I want to access it from my local computer with Windows PowerShell sessions. To support Windows PowerShell sessions, you need to perform the following tasks on the remote computer: Starting or restarting (if already started) the WinRM service Setting the W...
2016-10-15, 3740🔥, 0💬

Connect to Existing PSSession in Windows PowerShell
How to connect to an existing PSSession in Windows PowerShell? You can use the "Enter-PSSession" cmdlet to connect to an existing PSSession in Windows PowerShell by using the "-id n" or "-name xxx" to specify the PSSession. Here is an example of using the "Enter-PSSession" cmdlet to connect to exist...
2016-10-15, 3062🔥, 0💬

"Get-PSSession" Cmdlet in Windows PowerShell
What is the "Get-PSSession" cmdlet in Windows PowerShell? You can use the "Get-PSSession" cmdlet to get the user-managed Windows PowerShell sessions ("PSSessions") on local and remote computers. Here is an example of using the "Get-PSSession" cmdlet: PS C:\fyicenter&gt; New-PSSession office-serv...
2016-10-15, 2600🔥, 0💬

<< < 2 3 4 5 6 7 8 9 10 11 12 > >>   Sort: Rank