-
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...
-
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
-
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...
-
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...
-
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...
-
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...
-
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'...
-
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...
-
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...
-
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...