Search found 297 matches

by sekou2331
Wed Oct 10, 2012 1:30 am
Forum: PowerShell
Topic: How to see duplex settings on NIC
Replies: 3
Views: 1380

How to see duplex settings on NIC

I am trying to see duplex settings on multi computers. I tried using win32_networkadapter and win32_networkadapterconfiguration but i cant get the information I need which is below. Is there somewhere else i have to look.


Link Speed and Duplex(Trying to see if it is set to auto or not)
by sekou2331
Fri Oct 05, 2012 2:06 am
Forum: PowerShell
Topic: Powershell script that allows me to export and then import to remote server Windows Scheduled Tasks
Replies: 3
Views: 2633

Powershell script that allows me to export and then import to remote server Windows Scheduled Tasks

I am trying to export Windows Scheduled Tasks from one server to another. I have the script below but i can't seem to make it import the file to a remote server. $sch = New-Object -ComObject("Schedule.Service") $sch.Connect("ServerName") $tasks = $sch.GetFolder("").GetTasks(0) $outfile_temp = "C:tes...
by sekou2331
Fri Sep 14, 2012 1:56 am
Forum: PowerShell
Topic: Trying to make a new-object
Replies: 5
Views: 2591

Trying to make a new-object

Thanks. I was trying to add a line to this script and it seems not to work.


$props.Name=(Get-WmiObject Win32_Product -ComputerName $_ -filter 'Name like "%Microsoft%"').Name

Why can I not filter the out the name and the version of softerware within the script you supplied.
by sekou2331
Tue Sep 11, 2012 5:09 am
Forum: PowerShell
Topic: Trying to make a new-object
Replies: 5
Views: 2591

Trying to make a new-object

Hi I was trying to add another line that gets the IP address. I used this line "Get-WmiObject Win32_NetworkAdapterConfiguration" And added it to the script below but it will not produce the IP address. $ErrorActionPreference = "silentlycontinue" Get-Content C:Computrelist.txt | ForEach-Object{if (Te...
by sekou2331
Fri Sep 07, 2012 8:24 am
Forum: PowerShell
Topic: Using WMI-Object twice
Replies: 5
Views: 2708

Using WMI-Object twice

Hi I was trying to add another line to to get the IP address. I used this line "Get-WmiObject Win32_NetworkAdapterConfiguration | ? {$_.IPAddress} | Select-Object IPAddress" And added it to the script below but it will not produce the IP address. $ErrorActionPreference = "silentlycontinue" Get-Conte...
by sekou2331
Mon Aug 27, 2012 11:56 pm
Forum: PowerShell
Topic: MSI install Script
Replies: 8
Views: 4078

MSI install Script

Thank you for taking the time with this and helping me understand. As for the -computername i thought you had to add before the $_ to tell powershell that it is the computername . In my script after the foreach object I was trying to make the program install so i thought it had to be the there as ad...
by sekou2331
Mon Aug 27, 2012 9:24 am
Forum: PowerShell
Topic: MSI install Script
Replies: 8
Views: 4078

MSI install Script

Your right it would but I do not have that type of access to AD but i have rights to the computers i control. So the below will only work with one computer and not a list of computers ? Just want it to read from the list in the script. $Software=[wmiclass]'-computername $_rootcimv2:Win32_Product'
by sekou2331
Mon Aug 27, 2012 8:25 am
Forum: PowerShell
Topic: MSI install Script
Replies: 8
Views: 4078

MSI install Script

This works but the uninstall works on all computers in the Comptr.txt while the the install part of the script doesnt. For some reason it just install on the computer i am running this script from. THe script is below. $ErrorActionPreference = "silentlycontinue"$Software=[wmiclass]'rootcimv2:Win32_P...
by sekou2331
Mon Aug 27, 2012 5:52 am
Forum: PowerShell
Topic: MSI install Script
Replies: 8
Views: 4078

MSI install Script

by sekou2331
Fri Aug 24, 2012 5:07 am
Forum: PowerShell
Topic: Win32_Product
Replies: 4
Views: 2492

Win32_Product

Cool this gets me the name but not the version. Was looking at GM after each pipe and I do not see a property for version. Is there a way to get version form this the unistall reg?