Search found 83 matches

by joel.delatorre
Fri Jun 05, 2009 2:32 am
Forum: VBScript
Topic: Passing Arguments via Scheduled Tasks
Replies: 1
Views: 1314

Passing Arguments via Scheduled Tasks

Just tried that after I posted and it worked. TY Bill.
by joel.delatorre
Fri Jun 05, 2009 2:18 am
Forum: VBScript
Topic: Passing Arguments via Scheduled Tasks
Replies: 1
Views: 1314

Passing Arguments via Scheduled Tasks

Has anyone ran into a problem where trying to pass arguments to a vbscript via the task scheduler?

Running this in the Run field fails to grab the arguments

c:shutdown_Computer.vbs 13:00 18:00

The arguments pass thru fine via the command prompt or from PrimalScript.
by joel.delatorre
Wed May 20, 2009 3:47 am
Forum: Windows PowerShell
Topic: Query DNS Suffix for this Connection
Replies: 7
Views: 3949

Query DNS Suffix for this Connection

You need to get to the Name property of the $server object. Use $($server.name) instead of just $server in your WMI command
by joel.delatorre
Mon May 11, 2009 12:44 am
Forum: Windows PowerShell
Topic: InputBox Function
Replies: 8
Views: 3395

InputBox Function

This code is from MOW's blog and can also be found on the SCripting Guys website. $a = new-object -comobject MSScriptControl.ScriptControl $a.language = "vbscript" $a.addcode("function getInput() getInput = inputbox(`"Message box prompt`",`"Message Box Title`") end function" ) $b = $a.eval("getInput...
by joel.delatorre
Mon Apr 27, 2009 3:44 am
Forum: VBScript
Topic: Find line in text file and insert txt above it
Replies: 12
Views: 5076

Find line in text file and insert txt above it

Absolutely. Im sure he will post soon.
by joel.delatorre
Wed Apr 22, 2009 4:21 am
Forum: Windows PowerShell
Topic: Remote Intall
Replies: 8
Views: 2758

Remote Intall

Here are a few other links that provide info on why UNC paths fail using WMI remotely.http://www.pjtec.com/Support/data/resources/UserManuals/WMIX/tutorials/managing_software_products.htm#Special_note_on_the_location_of_installation_packagesand http://www.microsoft.com/technet/scriptcenter/guide/sas...
by joel.delatorre
Tue Apr 21, 2009 7:54 am
Forum: Windows PowerShell
Topic: GWMI_Remote Servers
Replies: 2
Views: 774

GWMI_Remote Servers

Concerning the RPC error try running WbemTest to test WMI connectivity. If that fails you are sure to rule out PoSh as the problem and continue to narrow down the issue. Regarding your query. I don't think its possible to query the different classes within one statement. You would have to run a quer...
by joel.delatorre
Mon Apr 20, 2009 12:11 am
Forum: Windows PowerShell
Topic: Reformatting CSV data within Powershell
Replies: 3
Views: 1310

Reformatting CSV data within Powershell

Glad to help
by joel.delatorre
Fri Apr 17, 2009 1:49 am
Forum: Windows PowerShell
Topic: Reformatting CSV data within Powershell
Replies: 3
Views: 1310

Reformatting CSV data within Powershell

Sorry no one has responsed but perhaps this could get you going on the right track $items = Import-Csv test.csv $gblobject = @() $groups = $items | Group-Object Timestamp foreach ($row in $groups) {         $myobject = '' | select Timestamp,MemUsage,CpuUsage         $myobject.timestamp = $row.group[...
by joel.delatorre
Fri Mar 20, 2009 8:32 am
Forum: Windows PowerShell
Topic: Liat files open on a share by user and loaction
Replies: 13
Views: 6196

Liat files open on a share by user and loaction

works great jim(.EnumOpenFiles2.ps1 -server myserver | ?{$_.username -eq 'jdelatorre'})[0].close()