-
Alan Renouf has written a PowerShell Audit Script that produces a rich HTML file as output. It is a great demonstration of what you can get from WMI plus what you can do with HTML in PowerShell. The file can be accessed at the following link: http://teckinfo.blogspot.com/2008/10/powershell-audit-script_15...
-
A new utility that writes Windows PowerShell scripts that harness the power of WMI (Windows Instrumentation Management) for use in system management and administration. This tool was created by Microsoft consultant and author Ed Wilson. Download here: http://www.microsoft.com/downloads/details.aspx?familyid...
-
You could consider using WMI as the basis of your solution. Using WMI and PowerShell is relatively easy because there is WMI support built into PowerShell. I would start with this example and start exploring: get-wmiobject -class "Win32_Product" -namespace "root\CIMV2" | Select-Object...
-
So this is a script we used to get some event log infomation (the one additional thing it has over get-eventlog is it gets the location and actual size of files etc) The issue the file kinda worked (it was running over 24hrs with only a few results. After rebooting the machine the script would no longer...
-
Hello, Recently I started developing scripts for SCCM administration. Today I wrote a script that adds computer to collection and this was fairly easy. The problem is with deleting computer from collection. I've found this site: http://chad.cc/blog/2010/05/sccm-delete-all-direct-membership-computers...
-
Hi, Did you use exactly the same version of script that I posted? Because as I wrote earlier - CollectionRules property was also empty in my case, but the script worked either way. Maybe try also the script from http://chad.cc/blog. I remember that I had strange problems with -computername property when...
-
I have a portion of a script that creates an excel spreadsheet and populates the drives for remote servers, their size as well as used and percentage. (Found it here I believe) What I need to add to this spreadsheet are all of the directories that are listed under the drives by using the get-content...
Posted to
PowerShell for Windows
(Forum)
by
squeekie
on
04-20-2011
Filed under: powershell, wmi, get-wmiobject Win32_Product MSI Windows Installer, windows, powershell remoting, output, loop, file
-
Hello ! I've made a script that checks MSClusters' status remotely, using WMI. I have upgraded to POSH v2 to include 'Autentication PacketPrivacy', and it all works perfectly. My query does return the expected results, however my queries keep creating an error msg on the remote servers...
-
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 am trying to find a way to use powershell to query a sql server and provide back the instance names with the port numbers used, then ideally get the port numbers and add them to specific rules I create for the Windows firewall. Currently I use the netsh commands for the firewall config and go to the...