Browse Forum Posts by Tags

Showing related tags and posts for the Forums application. See all tags in the site
  • CSV & Array sorting

    I am using PS to collect / report application usage into a spreadsheet. It has worked great until this week, when 2 different users logged into the same machine and ran the same app. I am reading in via import-CSV the following: Computer Name,Process,PID,User Name,Time,Date workstation1,matlab.exe,7136...
    Posted to PowerShell for Windows (Forum) by Dan_West on 08-08-2011
    Filed under: array, powerrshell, arraylist array expandProperty
  • Uptime Script

    Hello everyone, I'm trying to retrieve some information from Event ID 1074. I need the following information Domain\User and Comment. I alread have the servername and uptime output to html. I have added the an example of the html output and a sample of the script, hope you can help. Example of event...
    Posted to PowerShell for Windows (Forum) by aochoar on 10-31-2011
    Filed under: powershell, powershell Windows-programming, wmi, array, powerrshell, powerershell, powerershll, advancedlogging, powershell append to content
  • Recycling an IIS AppPool in powershell...

    I have put together a script that pulls a list of servers in the array and then tests outlook and owa connectivity to each. I also added a menu that allows a restart of selected services on all servers that show an error in connectivity. What im wanting to do is be able to recycle or restart an IIS AppPool...
    Posted to PowerShell for Exchange (Forum) by jwhite on 02-13-2012
    Filed under: InvokeCommand, remoting, ImportPSSession, Exchange, script block, powershell, exchange 2010, array
  • Fastest way to find a value in bigarrays

    Hi all, Im struggling with a script we are writing for a customer. Each night, we get a csv file from an Oracle database containing users we create as contacts in Active Directory. So, I read in the CSV and the existsing contacts from AD, and do a compare to find those that don't already exist in...
    Posted to PowerShell General (Forum) by Trondhindenes on 11-16-2010
    Filed under: Array, powershell 2.0, lookup
  • Problem with Array - But Why?

    Hi everybody, I have a problem with a script and i don't know why and how to do ? That s what i want to make: val01 val02 ----- ----- 0 1 1 2 2 3 3 4 That s what I get : val01 val02 ----- ----- 3 4 3 4 3 4 3 4 This is my script : $tempArray = @() $personalarray = ""| select val01,val02...
    Posted to PowerShell General (Forum) by Sylvain LESIRE on 02-27-2009
    Filed under: Array
  • How to return SQL Query results as Array in Powershell

    I have a SQL 2008 Ent server with the databases "DBOne", "DBTwo", "DBThree" on the server DEVSQLSRV. Here is my Powershell script: $DBNameList = ( Invoke - SQLCmd - query "select Name from sysdatabases" - Server DEVSQLSRV ) This produces my desired list of database...
    Posted to PowerShell for SQL Server (Forum) by Emo on 10-27-2010
    Filed under: PowerShell, SQL 2008, Array
  • Powershell - Data put into an array goes away after exiting ForEach-Object loops

    Originally I ran into this while trying to combine AD groups and user members into an array of objects to process and export into a csv file but the following script fragment does the same thing. I am using Powershell ISE Versiion 3 Clear-Host $Groups = 'Group1', 'Group2' $Users = 'User1'...
    Posted to Learn PowerShell (Forum) by sdillinger1 on 01-25-2013
    Filed under: Learning PowerShell, variables, for each, Array, loop
  • Working with the registry and windows forms

    Hey guys, I am creating a 'Log Reader' which reads a set of registry entries that are written by an automated build process that we use for new servers, The log reader is meant to keep our techs from needing to dig around in the registry. I am displaying the output in 2 listboxes. The first listbox...
    Posted to PowerShell General (Forum) by dagamant on 01-29-2013
    Filed under: Registry, array
  • Dynamically split objects into smaller groups

    Scenario is as follows: Pass in large number of systems (say 1000), break into same size groups (say 100), execute a background process for each group to conduct a WMI query, so I end up in this example with 10 background jobs running with 100 systems in each...but again, I want to do this dynamically...
    Posted to PowerShell General (Forum) by bobbybuche on 04-22-2013
    Filed under: Powershell, Loop, split, array
  • Hashtable export-csv format output

    Hi, I have a Hashtable that looks like this: NAME;VALUE LibraryA;345 LibraryB;867 LibraryC;858 RegionalLibraryT;156 RegionalLibraryY;99 LibraryG;689 This is not the order in which I created the Hashtable, after I am done processing, this is the result I get when calling it. How do I go about putting...
    Posted to PowerShell General (Forum) by ddan on 05-16-2013
    Filed under: array
Page 2 of 3 (24 items) < Previous 1 2 3 Next >
Copyright 2012 PowerShell.com. All rights reserved.