Home All Groups Group Topic Archive Search About



Scripting for Windows Server

microsoft.public.windows.server.scripting
Score Delete Empty Folders but not the files?
Tmack - 17 Feb 2007 3:41 PM - 2 messages
Is there a way to delete empty folders under a parent directory while leaving the files that are at the same level as those empty folders intact? I have to use a simple cmd shell script For example: Root Folder : ...
Score How to return or exit from a JScript (WSH)?
PNayak - 16 Feb 2007 9:10 PM - 2 messages
I've a simple quesion? How to exit from executing JScript ( I tried, Return, Exit and Quit- None works) Check the following script. TEST.js ===== if (WScript.Arguments.Lengh=0) { WScript.Echo("Arguments missing!"); ////---- I WANT TO QUIT here. What should I use? ...
Score Another Scripting Newbie - admin check
STFW - 16 Feb 2007 5:14 PM - 4 messages
The goal is to find out who is running with admin rights (and then later worry about trying to get users to run as domain users only).  In the past we typically added a user to the local Administrator group to workaround ...
Score Scripting Newbie
Brent Mattson - 15 Feb 2007 8:00 PM - 4 messages
I am new to scripting.  I am doing some simple list AD groups.  i am copy and pasting scripts from the portable script center.  Could someone kind of guide me through so I can change the script to fit me .  I am not sure what all ...
Score New Scripter - Listing members of Groups in AD
gbrown135 - 15 Feb 2007 10:03 AM - 8 messages
Hi, I'm trying to use the script from microsoft, which does work. But is there anything I can place in there that will just display a list of the Display Name in AD instead of the Long cn=Scientists,ou=R&D,dc=NA,dc=fabrikam,dc=com name format. ...
Score Script to unregister and register dll for group of systems
VR - 15 Feb 2007 10:01 AM - 2 messages
Hi, Am very new to script. I want to perform unregister and register a dll for a group of systems. I know the command regsvr32 /u /s for doing it from command prompt. But i dont know to automate this to all the systems. ...
Score A script that can take folder and SUBFOLDERS ownership
TomKing - 15 Feb 2007 1:00 AM - 2 messages
Not sure if you guys had this problem or not. So far I still can only take folder ownership manually. There are plenty ways to take ownership of a single folder. But that's usually not what we want. e.g. take ownership of ...
Score Logon Script
aja44 - 15 Feb 2007 12:40 AM - 3 messages
Good Evening.... I have recently taken over an environment where all mapped drives were done manually on each workstation.  We have just upgraded to W2K3 and I would like to begin using logon scripts to mapped these drives to my users.  I currently ...
Score Event Logs into a Database
Daytona - 14 Feb 2007 9:42 PM - 2 messages
I have been trying to get the events from servers into the SQL Database using a script posted in the ScriptCenter. I have created the database on our server and created the table as well. When I run the script I get the following error: ...
Score GPO queries - any help appreciated
Yobbo - 14 Feb 2007 9:38 PM - 2 messages
Hi All I know its quite a long list, but I didn't want to annoy everybody by posting each query individually.  I'm running Win2003 Server with WinXP Pro clients.  Here goes: 1) Using GPO, is it possible to hide the common tasks 'bar', which resides ...
Score Manage Printing ..
user - 14 Feb 2007 5:43 PM - 4 messages
Hello, How to manage printing with a share printer on a windows server 2003 ... make things like : -  ask for crentential . - allow printing.. Thanks for helping me.... ...
Score Authorize on server
Andrey - 14 Feb 2007 5:16 PM - 3 messages
I launch script on local computer (win xp). This script should make some action in AD win 2003 (like move computer account and disable it). How can I be authorize on server in this situation if I now account and password for ...
Score How to script to restart all computer in a domain.
PW Techguy - 14 Feb 2007 4:27 PM - 2 messages
I need a script to restart all the workstations in a domain. I am not sure if this is possible, but if it is, it would save me alot of time. Thanks for any help in advance! ...
Score How to print from a script
Jrex7 - 14 Feb 2007 4:05 PM - 4 messages
I would like to know if there is a way to Print from a script. I already have a script that looks for specific session names running on servers. At the end of the script I use the "wscript.echo" method to display ...
Score addprinterdriver method
Andrew Topp - 14 Feb 2007 3:30 PM - 2 messages
Does anyone have experience creating printer drivers, printer ports, and the printes themselves via WMI? I'm working on a script that I can use to add the above to Windows XP and Vista machines, and I'm running into trouble. I have the following problem ...
Score Login script loging a user out based on day and time...
Joe - 14 Feb 2007 1:50 PM - 7 messages
Good day, I am using a simple batch file to set up my users environment (drive mappings, etc).  I currently have login time restrictions on most accounts to ensure that everyone is off the system while nightly maintenance is being ...
Score OK to move a user from one OU to a sub OU
Yobbo - 13 Feb 2007 10:36 PM - 6 messages
Hi All Newbie calling!! Having to look after a Win2003 Server after the previous techie has gone. They put all users into 1 OU, but I need to show a different set of desktop backgrounds and start menu icons per user. ...
Score Machine-specific logon script commands
Huwy - 13 Feb 2007 12:36 PM - 2 messages
I'd like to have a section in my login script for domain users that basically says if they are logging onto a particular machine (in this case a terminal server) then run a particular command. For example.... If logging on on machineA then map this network drive ...
Score ADS Scripting
Vir - 13 Feb 2007 9:37 AM - 7 messages
Hello ! I’m having a Domain Controller running Windows 2003 Ent Edtn w/SP1. Do anybody here aware of any script which will allow me to append a following value in Active Directory: I need to append a Computer Name in Log On To option of Account Tab of a ...
Score Email ntbackup result and report
Ian Zahn - 13 Feb 2007 12:37 AM - 4 messages
Is there a way to have Windows 2003 SP1 email the results of the backup. I am using the built in NTbackup scheduled nightly.  Even if this is a batch file performed each morning looking at the result and emailing the report that would be great. ...
Score Req: Script to create directory for users listed in a file and apply permissions for each user
kdfake@spam.com - 12 Feb 2007 9:14 PM - 2 messages
Hi This is what i need to automate: I have a list of users. I wish to create a directory for each user in the list. And then set permissions on each users directory. The users are already in active directory. ...
Score How can I map network drives with other user
Adrian - 12 Feb 2007 8:10 PM - 3 messages
I have map network drive from logon script. It´s applied from GPEDIT.msc. I don´t know to send other user in the script Dim objNetwork Set objNetwork = CreateObject("Wscript.Network") objNetwork.MapNetworkDrive "e:", "\\server name\shared folder" ...
Score Can we Copy all Comments from a WORD document to another document
Praveer Verma - 12 Feb 2007 2:40 PM - 3 messages
Hi Guys, I have tried the Script given by Scripting Guy! to copy comments from an Excel document to another WORD document.  But I now wish to do same for WORD documents too. Thats is: I want to copy all comments of Word Document 1 to another document. this ...
Score VBscript Editor / Development environement ??
Emmanuel - 12 Feb 2007 1:01 PM - 2 messages
Hi all, I have been using Notepad++ for a while to edit/write .vbs and .hta I find Notepad++ sometimes limited, plus I would like to have integrated help for vbs language in my editor. Automaitc indent, Run/Debug integrated, ...
Score Launching program from Start Button -- Problem with Quotes
mr_ravi_patil - 11 Feb 2007 11:31 AM - 2 messages
I want to launch an IDE and build a project file. If I type the following in a DOS command line it works OK: cmdide.exe /b "c:\projects\software\FIRMWARE 3.0\Master 3.0.mcp" When I enter the same thing  on the Windows Start | Run edit field -- ...
Next »