No announcements
Found 160555 threads
-
1 Votes
Foreach undesired output
Team, I have a piece of code that is generating an undesired console output. $global contains the promotions imported from an XML ...Answered | 3 Replies | 260 Views | Created by AllenVh - Tuesday, January 16, 2018 4:55 PM | Last reply by AllenVh - Tuesday, January 16, 2018 5:44 PM -
0 Votes
SPWeb.AllUsers.Count returning undesired output
Hi, We have a .NET application that creates MHSCs and also user mysites in a multi-tenant environment. The code uses the object model of SharePoint2013. The code uses the ... -
3 Votes
Foreach Output to CSV
-AllMatches) $output= foreach($minfo in $matchInfo) { foreach($match in @($minfo.Matches | Foreach {$_.Groups[0].value})) { ...Answered | 7 Replies | 2093 Views | Created by IamGuy84 - Wednesday, May 20, 2015 7:42 AM | Last reply by IamGuy84 - Thursday, May 21, 2015 8:49 AM -
1 Votes
Foreach loop output formatting
Try something like this: $sourceRoot = "c:\" $inner = foreach ($computer in $computers) {$pre = Get-ChildItem -LiteralPath $sourceRoot -Force ...Answered | 6 Replies | 3743 Views | Created by el-lobo - Saturday, November 27, 2010 1:10 AM | Last reply by SeanWright - Sunday, November 28, 2010 11:30 PM -
1 Votes
nested foreach loop html output
1..10 | ForEach-Object{ [pscustomobject]@{ Index = $_ Name = "Name $_" } } | ConvertTo-Html ...Proposed | 6 Replies | 1504 Views | Created by Konica1989 - Wednesday, November 8, 2017 5:42 PM | Last reply by jrv - Thursday, November 9, 2017 3:56 PM -
1 Votes
Formatting Output of ForEach Array
I use a script block for that: &{ foreach ($strServers in get-ExchangeServer) { Test-ServiceHealth $strServers | Select-Object @{ ...Answered | 6 Replies | 3099 Views | Created by chriswight - Tuesday, September 4, 2012 5:52 AM | Last reply by chriswight - Wednesday, September 5, 2012 1:00 AM -
0 Votes
Formatting output from a Foreach
| select Name, creationDate foreach ($time in $times) ...Answered | 13 Replies | 624 Views | Created by BusyLifeSoftwareMLW - Friday, December 15, 2017 12:58 AM | Last reply by JS2010 - Saturday, December 16, 2017 5:20 AM -
0 Votes
Undesired output from query. Records outputting multiple times
Hi Runner ! You may get the desired output using below query; SELECT a.PURCHID AS [Purchase ...Answered | 6 Replies | 2092 Views | Created by runnerpaul - Thursday, August 16, 2012 4:05 PM | Last reply by runnerpaul - Thursday, August 16, 2012 8:34 PM -
0 Votes
Foreach loops output in Different files.
Hello Team, As a project requirement, i need the output of a foreach loop to be saved in a different file. (i.e). If a loop runs 100 times the output of ...Answered | 7 Replies | 680 Views | Created by Shriram14 - Monday, July 15, 2019 10:35 AM | Last reply by jrv - Monday, July 15, 2019 11:37 AM -
1 Votes
Foreach loop for flat file output
, they work. Anything parallel or looping, results are unpredictable. Remember, I'm generating these output files in parallel, as you observed in your earlier ...Answered | 4 Replies | 703 Views | Created by Buster Coder - Saturday, May 9, 2015 7:47 PM | Last reply by Buster Coder - Tuesday, May 12, 2015 4:30 AM -
0 Votes
Using output from Foreach Loop for Variables
failure wwhen you are not sure how to write Powershell to beginwith. Start simple. This would be an easier start: $Database = import-csv ...Answered | 8 Replies | 2536 Views | Created by Declan G - Monday, July 27, 2015 2:31 PM | Last reply by jrv - Wednesday, July 29, 2015 12:41 PM -
2 Votes
Output of foreach loop is blank
", " for the split and enter the names with username1, username2, username3 format. Would prefer each line format but I just don't know what I'm doing wrong. ...Proposed | 8 Replies | 1225 Views | Created by IceWolf762 - Thursday, September 25, 2014 11:32 AM | Last reply by IceWolf762 - Monday, September 29, 2014 10:04 AM -
0 Votes
Repackage foreach output into single table
sid, friendly_name $subaccounts | foreach { $account = $_ | Select-Object -ExpandProperty sid $name = $_ | Select-Object ...Answered | 1 Replies | 297 Views | Created by PortableTech - Tuesday, May 2, 2017 8:03 PM | Last reply by jrv - Tuesday, May 2, 2017 8:33 PM -
0 Votes
xmlSchema - undesired namespace
I have a problem using xmlschema when it adds an undesired namespace xmlns:sql="urn:schemas-microsoft-com:mapping-schema" to my annotations.Answered | 1 Replies | 12382 Views | Created by BobLusk - Monday, August 1, 2005 8:39 PM | Last reply by Todd Pfleiger - Wednesday, August 10, 2005 1:47 AM -
0 Votes
Bizarre non-sequential output from a ForEach loop
Well, I've tried Write-Verbose and Write-Output as a test. Write-Verbose gives the same issue. Write-Output seems to work and shows ...Answered | 7 Replies | 579 Views | Created by YannickJ - Tuesday, March 21, 2017 10:50 AM | Last reply by - Tuesday, March 21, 2017 8:55 PM -
0 Votes
Undesired ROWGUID column
Hello Everyone,I have a situation where I am creating a merge publication on 2 databases using a customers table. When I create the publication it adds a column to the customers table called ROWGUID ...Answered | 3 Replies | 10682 Views | Created by Todd Peasley 00 - Friday, September 30, 2005 6:23 AM | Last reply by Greg Y - Friday, September 30, 2005 8:11 AM -
0 Votes
Script to output foreach of computers via Get-ADComputer
Answered | 6 Replies | 4271 Views | Created by Anders Kofoed - Tuesday, August 28, 2018 3:31 PM | Last reply by Anders Kofoed - Wednesday, August 29, 2018 6:49 AM -
0 Votes
Undesired scroll-bars
Hi, I created a dashboard with a scorecard , and 2 charts that open up once I pick a KPI from the scorecard. Both charts are created by Dundas in SSRS and ...Answered | 1 Replies | 3331 Views | Created by tomerd - Monday, October 13, 2008 9:45 AM | Last reply by AseemN - Monday, October 13, 2008 3:59 PM -
6 Votes
Problem sending powershell foreach output to text file
There is no output to the pipeline with a foreach() loop syntax. It only works with ForEach-Object. Try it this ...Answered | 13 Replies | 32929 Views | Created by s.samuelson - Wednesday, July 23, 2014 3:59 PM | Last reply by jrv - Wednesday, July 23, 2014 7:21 PM -
1 Votes
How to restrict or remove undesired SW ?
You can't restrict no and ultimately if the user is a local admin, nothing you can do can really stop them from installing undesired software. Group Policy ...Answered | 1 Replies | 2058 Views | Created by EEOC - Thursday, February 13, 2014 12:10 PM | Last reply by Jason Sandys [MSFT] - Thursday, February 13, 2014 1:53 PM - Items 1 to 20 of 160555 Next ›
No announcements