microsoft.public.windows.server.scripting
  Home FAQ Contact Sign in
microsoft.public.windows.server.scripting only
 
Advanced search
September 2008
mo tu we th fr sa su w
1234567 36
891011121314 37
15161718192021 38
22232425262728 39
2930      40
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
microsoft ... scripting Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  diskpart and WshScriptExec problem         


Author: James
Date: Sep 19, 2008 21:58

Hello,

currently putting together a vbscript that is piping input to diskpart.exe
(from within winPE). It uses the WshScriptExec object with is sending input
commands just fine. The problem I'm having is that even know I'm piping the
'exit' command to diskpart it does not exit... I still see it's process
running in taskmgr... so my script loops infinitely waiting for that
WshScriptExec.Status to change from 0, which it doesn't since diskpart does
not exit. After I manually kill the task with taskmgr, my script breaks out
of the loop as expected.
Show full article (1.59Kb)
5 Comments
  Need help vbscript shell out to run dbeng10         


Author: Rachan
Date: Sep 19, 2008 19:45

We have vbscript that will shell out and exectue command that load
transaction log to SQL Anywhere. The DOS command line:

"%%SQLANY10%%\win32\dbeng10" E:\DbName.db -ek "EncryptionKey" -ad
"e:\TransactionLogDir" -o LogFile

Since SQLANY10 is the system var. (location where SQL Anywhere install)
when the program run we got this error:

'E:\Program' is not recognized as an internal or external
command,operable program or batch file.

We relized that SQLANY10=E:\Program Files\SQL Anywhere 10 and the
program will not run. How do we get around this issue?

LoadTransLogCmd = """%%SQLANY10%%\win32\dbeng10"" E:\DbName.db -ek
""EncryptionKey"" -ad ""e:\LogFilesDir"" -o E:\LogFile.txt"
RunCmd = "%%comspec%% /k " & LoadTransLogCmd & ""
objShell.Run(RunCmd), 1, TRUE
WScript.Quit

Best Regards,
Rachan Terrell
Show full article (1.07Kb)
1 Comment
  Update HKEY_CURRENT_USER registry         


Author: Mel K
Date: Sep 19, 2008 17:03

Hello:

I have to push a reg update out and am looking for ideas on the best approach. We have Altiris, so I can use that, but should I make a VBS for this or should I just use the .reg file? What about a bat file with the reg command?

Below is my .reg file, which I can convert to VBS or a reg command. This update is specific to the currently logged on user and only needs to be run once.

; Based on instructions from http://support.microsoft.com/default.aspx?scid=kb;en-us;319206

; This reg file will add the Closest GC value to HKEY_CURRENT_USER\Software\Microsoft\Exchange\Exchange Provider

; The value will force Outlook to identify and use the closest GC for its GAL.

; To Use: Run this reg file while logged on as the end user (since the value is specific to the current user's registry).

[HKEY_CURRENT_USER\Software\Microsoft\Exchange\Exchange Provider]

"Closest GC"=dword:00000001

Thank you.
--
Regards,
Mel K, MCSA: M

Hello:
 
I have to push a reg update out and
am looking for ideas on the best approach. We have Altiris, so I can use that,
but should I make a VBS for this or should I just use the .reg file? What...
Show full article (1.92Kb)
2 Comments
  Tracking Print Driver Changes         


Author: NBullock
Date: Sep 18, 2008 20:07

I need to do change managment on our print servers. Other than Events, are
changes tracked?
1 Comment
  Get SQL Server version of each instance installed         


Author: Carlos Felipe França da Fonseca
Date: Sep 18, 2008 18:28

I'm looking for a way to get the version of each SQL Server instances
installed locally on a server.
Does anybody know the best way of doing that?

Thanks,

Felipe
4 Comments
  VBscript Help please - creating AD groups         


Author: Clubsprint
Date: Sep 17, 2008 09:30

G'day all
I've hobled a script together from the MS examples but it's not working.
I want to create a list of groups in an OU.
I run the script and it asks for the input and then does nothing.

------start script--------

On Error Resume Next

Dim OrgUnit, GroupName, fso, f, objOU, objGroup

Const ADS_GROUP_TYPE_GLOBAL_GROUP = &h2
Const ADS_GROUP_TYPE_SECURITY_ENABLED = &h80000000

GroupName = InputBox("Enter the name of the Group Name you wish to create")

Set objOU = GetObject("LDAP://ou=Workstation
Groups,ou=Workstations,dc=int,dc=dept,dc=gov")
Set objGroup = objOU.Create("Group", "cn=ChairmanWS")

objGroup.Put "sAMAccountName", "HRStaff"
objGroup.Put "groupType", ADS_GROUP_TYPE_GLOBAL_GROUP Or _
ADS_GROUP_TYPE_SECURITY_ENABLED
objGroup.SetInfo

------start script--------
Show full article (1.06Kb)
4 Comments
  Remove All Group Memberships for all User Accounts in an OU?         


Author:
Date: Sep 17, 2008 02:27

I've seen the examples with

LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com

but it's only one account, I have a whole OU full of accounts whose group
memberships I need to clear (Domain Users excepted of course). I know I
can't modify the user account I have to modify the group, because memberof
is backlinked, but is there a way to essentially loop through the actions of
the one account and its group memberships, then move to the next user
account and repeat?

Any help appreciated
1 Comment
  Re: Have a .bat file which I want to turn into a .exe file         


Author: Spin
Date: Sep 15, 2008 17:42

The reason for this is my company recently got hit with a virus that created
a file in the user's startup folder called Iexplore.exe. Of course, it
wasn't the real Iexplore.exe and when launched it did nefarious thoings to
the system. This was in spite of the fact that we had Antivirus running on
the system. In order to prvent this from happening in the future, I want to
create software restriction policies that will only allow the "true"
Iexplore.exe to run, and will do this by using a hash rule. This will be a
backup of sorts, to my Antivirus. Of course I need to test this and by
doing so I created a batch file that simply launches Iexplore.exe (start
Iexplore.exe). But it's named Iexplore.bat and I need to rename it to
Iexplore.exe in order to test my software restriction...
Show full article (0.81Kb)
2 Comments
  Script needed to change the SourcePath value in my Windows Server 2003 Registry         


Author: Spin
Date: Sep 15, 2008 17:28

Gurus,

I am trying to change just the SourcePath value in my Windows Server 2003
Registry via script. I want to change it from it's current value to
"D:\ENGLISH\WIN2003\32BIT\ENT_WITH_SP1\I386". What kind of simple script
would enable me to change just that one value? The path to that is:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion.

--
Spin
3 Comments
  script to get MAC address info. from DHCP         


Author:
Date: Sep 12, 2008 23:23

I have an application that I need to import all the MAC addresses for all
hostnames into. I haven't found a way other than to an nbtstat -a
COMPUTERNAME. Of course the only issue with that one is the machines have to
be powered on to get a result. Is there any way to extract the MAC address
from DHCP?

Thank You,

--GT--
1 Comment
1 2 3 4 5 6 7 8 9