Hi All. I have xml file:<?xml version="1.0" encoding="utf-8" ?> <variables> ...
Bush
Alias for any program
I want to create alias for some programs. It is fulfilled successfully: Set-Alias edit "C:Program Files (x86)Notepad++notepad++.exe" Now...
Problem with Enable-PSRemoting cmdlet
Hi All. I learn it article. All has read - all clearly. Has started practice - and at once has faced a problem. Screen (full size image here):...
Various results for object of the same type
Hi All. function Get-RegKeys { # Variant 1: $LMRegKey =...
The recursive selection of directories from Outlook
Hi All. I have found how to receive the list of directories from Outlook here. I have wanted to rewrite this code more compactly and have made...
Object presence in a collection
Hi All. Sorry for my English... How in PowerShell to check up presence of object in an array? Very much it would not be desirable to use for this...
What type is correct?
Hi All. Test code: $dir = 'C:TestDir' if ([System.IO.Directory]::Exists($dir)) { Remove-Item -Path $dir -Recurse } New-Item -Path $dir...
Incorrect result
Hi All. I can not understand the reason of incorrect result (the place is specified in the code - 68 row). 1 2 3 4 5 6 7 8 9 10 11 12...
Get string[] from DirectoryInfo[]
Hi All. $Home | Get-ChildItem But I want to get string[]. How can I easier to get from DirectoryInfo array to array of strings ('Name'...
Get-ChildItem & 'Include' parameter
PowerShell code: PS C:Usersuser> Get-ChildItem -Path 'c:00' Directory: C:00 Mode ...
Verbs list for cmdlet names
Whether there is more simple way to receive the list of the verbs which are a part of cmdlet names? I while do so: $verbs = Get-Command...
Parameter "-InputObject" in "Sort-Object" command
Hi All. I can't understand how to work "-InputObject" parameter in "Sort-Object" command. I can't find samples for it....
Remote operations
Hi All. The list of operations which to me need to be fulfilled in PowerShell 2.0: *************************************** 1. To receive the list of...