Search found 13684 matches

by jvierra
Sun Dec 09, 2007 5:37 am
Forum: VBScript
Topic: StdRegProv creates user profile
Replies: 4
Views: 5217

StdRegProv creates user profile

Some testing verifies what you have seen. On XP machines a remote profile is created when using StdRegProv. This may be a requirement for loading the registry although I can't see why. We should search the knowledgebase to see if this has been noted. There are fundamental differences between server ...
by jvierra
Fri Dec 07, 2007 4:31 am
Forum: VBScript
Topic: WinMgmts Permission
Replies: 3
Views: 2543

WinMgmts Permission

The service is a remote object in this case.
by jvierra
Fri Dec 07, 2007 3:33 am
Forum: VBScript
Topic: WinMgmts Permission
Replies: 3
Views: 2543

WinMgmts Permission

The SC command can run remotely.

Not a good idea to elevate standard users and give them elevated remote permissions. This can lead to serious trouble.

SC should work as long as the user has permission on the remote object and machine.
by jvierra
Fri Dec 07, 2007 2:25 am
Forum: VBScript
Topic: How to create Subfolders and assign permissions
Replies: 6
Views: 5496

How to create Subfolders and assign permissions

I think this is closer to what you want. RunCACLS "d:testp", "/E /G testme:F" Function RunCACLS( sFile, sPerms )     Set objShell = CreateObject("Wscript.Shell")        intRunError = objShell.Run("cacls " & sFile & " " & sPerms , 2, True )              If intRunError 0 Then         If intRunError = ...
by jvierra
Fri Dec 07, 2007 1:53 am
Forum: VBScript
Topic: Compare Excel document to another file
Replies: 3
Views: 945

Compare Excel document to another file

FC has a switch which will dump ONLY the differences between list 1 and list 2. To do this with script you would probably want to load both files into sorted arrays and then walk them and compare them in collated order. This is a pretty sophisticated script. Start with using the FileSystemObject to ...
by jvierra
Thu Dec 06, 2007 10:38 am
Forum: VBScript
Topic: Compare Excel document to another file
Replies: 3
Views: 945

Compare Excel document to another file

If you want two files to be identical just copy the first file over the second file. They will then both be the same.

Easiest way.
by jvierra
Tue Dec 04, 2007 2:04 am
Forum: VBScript
Topic: Passing argument to WMI Select statement in ExecQu
Replies: 2
Views: 1154

Passing argument to WMI Select statement in ExecQu

Glad it was that easy. I had a big suspicion that, somewhere in the hard-to-read code, there wsa a simple coding mistake. Consider functioning your code builds as it makes debugging easier and creates reusable code. Consider the following as a demo and notice what it brings to the party: WMIGetFolde...
by jvierra
Mon Dec 03, 2007 3:40 am
Forum: VBScript
Topic: chkdsk script for servers
Replies: 4
Views: 1193

chkdsk script for servers

It is far easier to just create a single BAT file for each server with teh ChkDsk commands. Remember that volumes with open files will cause you to have to do a restart to get the chkdsk to run. Each server will end up having it's own particular set of rules. Some volumes will not require a restart ...
by jvierra
Sun Dec 02, 2007 3:53 pm
Forum: VBScript
Topic: How to create Subfolders and assign permissions
Replies: 6
Views: 5496

How to create Subfolders and assign permissions

You could mutiple input boxes but I would use teh "ReadLine" method of WScript,StdIb.ReadLine method.

You could also design an HTA to gather multiple lines of input.
by jvierra
Fri Nov 30, 2007 4:59 am
Forum: Other Scripting Languages
Topic: Disk report with WMIC
Replies: 4
Views: 10058

Disk report with WMIC

Here is a better example of how to concatenate reports using WMIC. It also contains much information on how to use other poorly documented capabilities of WMIC. It comes with sample source code for BAT file the generates a composite listing. http://www.microsoft.com/technet/technetmag/issues/2006/09...