Description:
Microsoft Windows newsgroup.
|
|
|
Set-Item and the magic -concatenate argument...
|
| |
Received a powertip email today stating: Use the -Concatenate switch to add new entries without overwriting existing entries: Set-Item WSMan:\localhost\client\truste dhosts 10.10.10.10 -force -concatenate So I ask help for the Set-Item cmdlet, but cannot find the -concatenate switch. On the other hand, typing the statement below, followed by tab-completion, I... more »
|
|
Exchange 2k7 powershell truncates multi-value properties
|
| |
Greetings, I'm running the following command: Get-SendConnector -Identity "Send Connector Name" | ft -autosize -wrap -property AddressSpaces We have over 20 domains in this list. When I run this command it lists 16 of these domains and then just sticks ... at the end. If I leave out the -wrap switch the output lists only 3 domains.... more »
|
|
Baffled by v2 advanced functions
|
| |
The below advanced function works as I would expect. But if you remove the line of code that makes the nonsensical access to $MyArrayArgument.Length then it longer works the same way. Why? Example of the function in action: Echo-ArgValue 'one','two' $MyArrayArgument:one two But when you take that line of code out it changes thus:... more »
|
|
New-PSSession
|
| |
I have trying to setting up remoting between a Windows XP SP3 machine and a Vista box. I followed on the direction and it seems I am ready to go on the Vista box. I issue the command New-PSSession and I get a session back. However I have done the same sets on the XP machine and cant seems to figure... more »
|
|
Defining global scoped functions from within a script file
|
| |
I want to have a define.ps1 file that defines a set of functions that will end up in the function: drive, similar to the $profile file that runs at startup. The functions are defined in the normal manner, as they would be in $profile. If I execute this file as .\define the functions are defined only in the scope of the script, and so are... more »
|
|
Powershell.exe troubles with spaces, quotes, and arguments
|
| |
I need to run a PowerShell script from a command prompt, but am having trouble. This command works fine inside PowerShell: Get-WMIObject MSCluster_ResourceGroup -ComputerName MYEXCHANGE01 -Namespace root\mscluster -filter "name='Cluster Group'" | Format-Table __Server When I launch it from a command line:... more »
|
|
Finding YYYYMMDD_YYYYMMDD files with regexp
|
| |
Hi, I have several hundred files here which accidently got renamed after the following pattern: YYYYMMDD_YYYYMMDD-something where the first date does not match the second date. How can I get the file which follow this pattern? Thanks from Germany, Uwe
|
|
Windows update
|
| |
Hi all, I've been combining two of the scripts I have found relating to windows update services, basically I've come to a stop with passing a target group to the computer scope section of the following script. I want the count of approved updates by computers in a WSUS container. It is the $computerscope variable I am having trouble understanding:... more »
|
|
|