Support Forums

Search found 9693 matches

by jvierra
Tue May 12, 2009 3:20 am
Forum: Windows PowerShell
Topic: Text into Table
Replies: 16
Views: 2457

Text into Table

We can also use filters and make it even more simplistic. Good filter design in this case precludes the need for robust error handling. Filter Ping-Host{ $reply=gwmi win32_PingStatus -Filter "Address=`'$_`'" if ($reply.StatusCode -eq 0){ Write-Host "Ping Success:$_" -fore green $...
by jvierra
Mon May 11, 2009 11:26 pm
Forum: Windows PowerShell
Topic: Text into Table
Replies: 16
Views: 2457

Text into Table

nev hi

Look at your code. It looks like about half of it is missing. Where are you geting the server information? This code just creates one object.

by jvierra
Mon May 11, 2009 11:20 pm
Forum: Windows PowerShell
Topic: Script to forced to change user password immediat
Replies: 3
Views: 231

Script to forced to change user password immediat

Just set the accoount flag that says cjane password on next login and teh system will handle the rest for you.

This is done easily by selecting all users in the ADUC GUI and right-click and change the checkbox on the account tag.


by jvierra
Mon May 11, 2009 7:47 am
Forum: Other Scripting Languages
Topic: VBScript works as .VBA not as .HTA
Replies: 12
Views: 11176

VBScript works as .VBA not as .HTA

Each "onload" method is called in turn. The window_onload is called first then body then each object in body and so on. You problem is that you are trying to call a popup messagebox. This will stop all processing as soon as it is called. It effectively aborts processing by diverting teh flow of even...
by jvierra
Mon May 11, 2009 6:52 am
Forum: Other Scripting Languages
Topic: VBScript works as .VBA not as .HTA
Replies: 12
Views: 11176

VBScript works as .VBA not as .HTA

So I assume there is no workaround with .HTA and the best methodis using a .VBS and create a HTML-file with it for the report? Why can't you use the onload event. That will work in all versions of IE and MSHTA. I don't think you are understanding why you need to use the window_onload event. Why can...
by jvierra
Mon May 11, 2009 6:09 am
Forum: Other Scripting Languages
Topic: VBScript works as .VBA not as .HTA
Replies: 12
Views: 11176

VBScript works as .VBA not as .HTA

If you don't put the code in the onload procedure it will only work intermittently. Look at teh DHTML and IE/HTA Windows specs. It is very clear that any code short of simple assignment must be plaxced inside of a procedure or an event. If this is not done then the code will fail occasionally. Searc...
by jvierra
Mon May 11, 2009 5:33 am
Forum: Windows PowerShell
Topic: Disable and Move Users
Replies: 5
Views: 1989

Disable and Move Users

zactek -

What errors are you getting. What is wrong with the code you started with. Looks like a few out-file statements will give you your logging function. Rest of code looks usable have you tried it?



by jvierra
Mon May 11, 2009 5:03 am
Forum: PrimalScript
Topic: PrimalScript 2009 My Documents Not Handled Correct
Replies: 2
Views: 114

PrimalScript 2009 My Documents Not Handled Correct

PrimalScript 2009 Does not handle the "My Documents" folder correctly when the folder has been moved out of the profile. PS 2009 keeps creating it's folders in the %profile%My Documents folder under "Documents & Settings". Though you might put this on the list of things to do. Low priorty but a pain...
by jvierra
Mon May 11, 2009 4:44 am
Forum: Other Scripting Languages
Topic: VBScript works as .VBA not as .HTA
Replies: 12
Views: 11176

VBScript works as .VBA not as .HTA

Change to: <script language="VBScript"> Sub window_onload      Dim WSHShell     Set WSHShell = CreateObject("WScript.Shell")      WSHShell.Popup WSHShell.regread("HKLMSOFTWAREMicrosoftWindowsWindows ErrorReportingLocalDumpsDumpCount") End Sub </script> The window execut...
by jvierra
Mon May 11, 2009 3:54 am
Forum: Windows PowerShell
Topic: Search in Powershell
Replies: 7
Views: 589

Search in Powershell

I believe the "findstr" method would be esiest for you. FINDSTR is available on all Windows platforms. It will return a list of files that contain the requested string. It can be run from PoSH. $M-Files = =invoke-expression 'findstr /M "<M-[0-9][0-9][0-9]-[0-9]*>" *.000' $XM-Files = =invoke-...

Go to advanced search