Home All Groups Group Topic Archive Search About



Scripting for Windows Server

microsoft.public.windows.server.scripting
Score DST setting
sany - 2 Mar 2007 2:41 PM - 2 messages
please post the script for found out the current time,dst setting of a list of computers in the network. ...
Score Run a script every 30 minutes.
lean - 2 Mar 2007 2:21 AM - 4 messages
Hi All: Is there any command to schedule a script to run every 30 minutes in the task manager? Thanks a Lot Lean ...
Score Help with VBscript
George - 1 Mar 2007 10:18 PM - 6 messages
Can someone help me write this command in to VBscript? "D:\program files\QlikView\Qv.exe" /r "D:\QvDocuments\ITSales Template v1.qvw" Thanks, ...
Score List the users in a group
Avi G - 1 Mar 2007 9:36 PM - 10 messages
Hi, I've looked for scripts that will retrieve me all the users that are in a specific group. i found that script but at the end i find that the script doesn't show me the users that the primary group is the group that i query. ...
Score Remote Disk Properties
TEA - 1 Mar 2007 9:24 PM - 11 messages
Hello all, We are running Windows 2003 Servers and XP Professional Desktops.  We also have several 2000 Servers.  I have 2003 Administrative Tools running on my desktop....not that it helps me much.  I've been looking into Perl, but the ...
Score How to pause all print jobs by default ?
user - 1 Mar 2007 5:26 PM - 2 messages
Hello, how to pause all print jobs by default ? registry parameters or scripting ? Someone will resume each job after (..the one which are ok..) thanks for helping me ... ...
Score Modify Multiples Users Profile Properties
JOP73 - 1 Mar 2007 1:39 PM - 2 messages
I need modify the logon script on multiples users, adding for example setup.bat on all users of a OU. Any help with this would be greatly appreciated. I have this script, but modify only one user: Set objUser = GetObject _ ...
Score SQL and vbscript
Paul Bergson [MVP-DS] - 28 Feb 2007 10:16 PM - 5 messages
Trying to read a sql server 2005 table from a vendor and I'm not having any luck I'm getting the error : Invalid Object Name '_SMDBA_._CUSTOMER_' on execution of the select statement I'm not real skilled when it comes to attaching to sql.  I have the sa as ...
Score Batch file and START command
George - 28 Feb 2007 7:52 PM - 5 messages
Hello all. Have a windows scheduled task to run a bat file with only one line of code (running an exe). I need to know when this process is finished (takes 1 hour to finish). I got the email peace finished (will create a file and drop it in ...
Score Another Newbie
gchalfont@thomasnelson.com - 28 Feb 2007 7:14 PM - 2 messages
Hi all.. please bear with me as I'm extremely green when it comes to scripting.  I need a script that will give me a list of all users who's passwords are set to never expire in Active Directory.  I'm in a server 2003 ...
Score how to run a script?
Miztiik - 28 Feb 2007 2:37 PM - 2 messages
hi, i am a newbie to windows scripting, i found some readymade scripts in microsoft site, can some one tell me how to run them and test them ...
Score Filtering out files that can't synchronise
Yobbo - 27 Feb 2007 9:20 PM - 2 messages
Hi All Like this AD/GPO thing, but finding that when the teachers log out the synch bit isn't finishing gracefully because of a number of files.  These files vary, but most appear to be MS Access .mdb files and the like. ...
Score Help running script
HectorP - 27 Feb 2007 6:11 PM - 2 messages
I receive the following error when running script: Line 1 Char 1 Error: Expected statment Code 800A0400 Source: Microsoft VBScript Compilation error Can you help me find the error? SCRIPT <html> <!-------------------------------------------------------------------- Find Computers in OU and Check when password was last changed ...
Score Changing all Local Admin Passwords
Andy K. - 27 Feb 2007 12:42 PM - 4 messages
I need a script that will allow me to change all the local admin passwords on PC's w/in my domain. It is very urgent. Thank you in advance ...
Score Create and share folder on client's pc
navyfighter - 27 Feb 2007 6:13 AM - 4 messages
Hi all, Is there a way, of creating a folder in all the client's pc which is in the domain using the group policy? For example, I want all the clients to have a folder call XYZ and it has a ...
Score Monitoring database writes from remote script
Tom@Sentara - 27 Feb 2007 12:37 AM - 6 messages
Got this dumped on me this afternoon. Need to monitor writes to a table from a client PC. Any thoughts on how to go about this? Would the monitoring be better done on the client or on the server? ...
Score Importing variables into Batch script from text file
mrbowes - 26 Feb 2007 8:48 PM - 7 messages
Hi, I'm trying to be able to source in variables into my batch script from a text file.  I know how to do this in a shell script, but I'm not sure how to do it in a Windows batch script.  Is this even possible? ...
Score Vbscript:ActiveX Object runtime error
OwusuKesseh - 26 Feb 2007 8:15 PM - 6 messages
I am using getobject with LDAP and I am getting error. ActiveX Object can't create getObject(LDAP://...) I have tried to use CreateObject and it gives tha same ActiveX error Any Help will be welcome Thanks ...
Score print word files in multiple directories
CTVS - 26 Feb 2007 7:57 PM - 3 messages
I am trying to create script for remote home user to: 1. change default printer to work network printer 2. print word.doc files on local directory (multiple files/directories under 1 main directory) to network printer 3. change default printer back to user's local printer. ...
Score errReturn of 3. What does 3 mean?
Graphfixz - 26 Feb 2007 7:33 PM - 3 messages
I have the following script. strComputer = "blahyaddayadda" Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objSoftware = objWMIService.Get("Win32_Product") errReturn = objSoftware.Install("C:\package.msi",,True) WScript.Echo errReturn I get a return code of 3. What does 3 mean? ...
Score Output Access File Query
Glenn - 26 Feb 2007 5:59 PM - 5 messages
I am trying to modify a script to output a query as opposed to a table. (Works fine to output the table, not the query though.) I think my problem is in this line: acOutputTable,_   ---- I've tried changing it to acOutputQuery,_  and ...
Score Dynamically Moving Computer Objects
JV - 26 Feb 2007 5:37 PM - 5 messages
I am planning a move of computer objects from the common "Computers" container to respective OU's that are sorted by the "User Department" attribute. Is there a way that I can move them at login, where the script would ...
Score VBS: How to disable net share cache?
Martin Gudel - 26 Feb 2007 5:30 PM - 2 messages
Hello, I want to do something equivalent to          net share sharename /cache:none to some servers (approx. 270) of our domain and I cannot believe it has to be done manually. Can you please tell me how? ...
Score Script help please
Woodsy - 26 Feb 2007 2:31 PM - 2 messages
Hello all, I'm a scripting virgin and have been asked to create a monthly report that lists the following: 1 - the largest files on a certain drive, 2 - the files that have not been accessed for more than 3 months ...
Score Running a script to find out how large users home directory is
gbrown135 - 26 Feb 2007 2:24 PM - 4 messages
Hi I have created a script to find out how large users Home Directories are. It is as follows Dim oIADS, fsi, f Dim fso, a Set fso = CreateObject("Scripting.FileSystemObject") Set a = fso.CreateTextFile("h:\dirsize.csv") Set fsi = CreateObject("Scripting.FileSystemObject") ...
Score Remove/Add Printer Connections
RandyH - 26 Feb 2007 1:18 PM - 2 messages
We are decommissioning all the current or old printers and rolling out new printers.  I have this script that will remove printer connections and then add the new printer connections.  But I am having problems, that if the PC ...
Score Viewing AD schema info using WMI
graeme.donaldson - 26 Feb 2007 9:10 AM - 8 messages
Hi I've been looking for a list of the attributes that are preserved when making a copy of an AD user account. All I've been able to find is that viewing attribute properties in the AD Schema MMC snap-in reveals ...
Score rename all folders in the current folder
Glenn - 25 Feb 2007 9:17 PM - 2 messages
Could someone point me to a script or tell me how to rename all of the folders inside of the current folder so that the word "Old" is added to the beginning of the name? For instance in the folder "Main" ...
Score Script to List What Users have Rights to Certain Folders
Glenn - 25 Feb 2007 9:12 PM - 2 messages
I have a folder named "MAIN".  In it are several sub folders. Each sub folder has different users with permissions to it. For instance, "User A" has rights to folder "Subfolder1", etc. Is there a way to run some type of report that will show the name of the ...
Next »