Search found 15436 matches
- Fri Jun 12, 2009 2:39 am
- Forum: VBScript
- Topic: Searching AD with alternate credentials timeout
- Replies: 3
- Views: 1659
Searching AD with alternate credentials timeout
I am going to ammend that. A little thinking jogged my memory. I was almost half right. Const ADS_SCOPE_SUBTREE = 2 Set objConnection = CreateObject("ADODB.Connection") Set objCommand = CreateObject("ADODB.Command") objConnection.Provider = "ADsDSOObject" objConnectio...
- Fri Jun 12, 2009 2:18 am
- Forum: VBScript
- Topic: iis 7 auto install on windows server 208
- Replies: 5
- Views: 2633
iis 7 auto install on windows server 208
Hi - wow! That's a tall order. It is not a simlpe thing to do but maybe someone here has done it. In any case here is a froum thread that is dedicated to remote WMI installs of IIS7. It contains most of what you need. Mostly you need to use the installer commandline and then wrap it in WMI Win32_Pro...
- Thu Jun 11, 2009 11:25 am
- Forum: PowerShell
- Topic: New-Object xml corrupting return value
- Replies: 5
- Views: 2186
New-Object xml corrupting return value
It is returning a "0" like you told it to do. function CreateWorkConfig { $xml = New-Object xml $root = $xml.CreateElement("Work") $xml.AppendChild($root) $order = $xml.CreateElement("Order") $order.PSBase.InnerText = "0" $root.AppendChild($order) $XDec = $xml...
- Thu Jun 11, 2009 10:25 am
- Forum: PowerShell
- Topic: New-Object xml corrupting return value
- Replies: 5
- Views: 2186
New-Object xml corrupting return value
Here is a piece of code that demos how to build an XML document. # there are no rules about PIs so this can add the same sheet multiple times function Add-XMLStyleSheetInstruction( [string]$xmlfile,[string]$xslfile){ [xml]$doc=Get-Content($xmlfile) # add stylesheet instruction. $pi=$doc.CreateProces...
- Thu Jun 11, 2009 7:59 am
- Forum: PowerShell
- Topic: PowerShell Foreach Loop
- Replies: 4
- Views: 3464
PowerShell Foreach Loop
Right - you cn't predefine a collection and then assign to the same variable as it will overwrite your definition. By design an object even null is of value. Only enumerating an empty collection works. However using th e pipeline handles this correctly: Get-WmiObject -query "Select * from Win32...
- Thu Jun 11, 2009 7:44 am
- Forum: PowerShell
- Topic: PowerShell Foreach Loop
- Replies: 4
- Views: 3464
PowerShell Foreach Loop
That's correct. The null object matches the null collection. Try this: $a=@() # empty array/collection $a|%{"in loop"} $a=$null $a|%{"in loop"} Do you see it now? By the way - you shouldn't use your email address as your name as you will likely get spammed to death. jvierra2009-0...
- Thu Jun 11, 2009 5:28 am
- Forum: Other Scripting Languages
- Topic: Getting coordinates of mouse click
- Replies: 1
- Views: 3468
Getting coordinates of mouse click
The Event objet contains teh coordinates of the event click. <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>My HTML Application</title> <script language="vbscript"> <!-- Insert code, subroutines, and functions here --...
- Thu Jun 11, 2009 3:53 am
- Forum: PowerShell
- Topic: question about change reg key
- Replies: 4
- Views: 1961
question about change reg key
Here is the REG file. Set the value as needed. Windows Registry Editor Version 5.00 [HKEY_CURRENT_USERSoftwareMicrosoftOffice11.0OutlookPST] "WarnLargeFileSize"=dword:000f4240 When a user double clicks this a value will be added or updated in user registry. As stated before. This is not ne...
- Thu Jun 11, 2009 3:34 am
- Forum: PowerShell
- Topic: DNSSuffixSearchOrder not working for XP Hosts
- Replies: 9
- Views: 5411
DNSSuffixSearchOrder not working for XP Hosts
Actually we are both wrong.
Here is the definition:
SetWINSServer(System.String WINSPrimaryServer, System.String WINSSecondaryServer)
Two strings not an array.
Here is the definition:
SetWINSServer(System.String WINSPrimaryServer, System.String WINSSecondaryServer)
Two strings not an array.
- Thu Jun 11, 2009 1:08 am
- Forum: PowerShell
- Topic: DNSSuffixSearchOrder not working for XP Hosts
- Replies: 9
- Views: 5411
DNSSuffixSearchOrder not working for XP Hosts
This:
$WINSServers="10.7.251.70","10.7.251.71"
Should be:
$WINSServers=@("10.7.251.70","10.7.251.71")
$WINSServers="10.7.251.70","10.7.251.71"
Should be:
$WINSServers=@("10.7.251.70","10.7.251.71")