Home All Groups Group Topic Archive Search About



Scripting for Windows Server

microsoft.public.windows.server.scripting
Score Need Helping Scripting My Server
Scott Walker - 8 Jul 2006 9:24 PM - 3 messages
Hi, Is anyone able to help me add some scripting to my server so i can create an automatic account creation tool which after someone registers on my website it will go and create there account. Im not sure how to do anything but am ...
Score How to determine what is mapped to a network drive?
Arch Willingham - 8 Jul 2006 9:09 PM - 3 messages
In a VBS script, how do I determine what networkshare is mapped to a network drive? In other words, I need to know if T: is mapped to \\computer1\share1 Thanks! Arch ...
Score [PSH] Parsing bug or feature?
OK - 7 Jul 2006 6:24 PM - 8 messages
I was playing with function parameter and found that this PSH didn’t make any complaint about following function: function check {   param([string] [int] $y = 0, $x = 0) ###^^^^^^^^^^^^   $x.GetType().ToString();   $y.GetType().ToString();   $x + $y; ...
Score Delete folders by date
Jrex7 - 7 Jul 2006 6:09 PM - 4 messages
I need a script that will delete folders that have not been modified for longer than a month.  On each of our servers we have an application Temp folder that has a subfolder for each user that connects to the server. These subfolders store ...
Score Changing DNS server entries on multiple servers w/ static IPs
jatdesi - 7 Jul 2006 2:31 PM - 4 messages
Hi - Newbie question.  I found a script that changes the DNS server entries for a single computer.  I would like to change the entries for several servers that have static IPs assigned to them i.e. maybe input the server ...
Score Debugging Startup Scripts
Jamié - 7 Jul 2006 12:53 PM - 4 messages
Hi, I have a vbScript that uses WMI to obtain information about workstations and then saves that information to a network folder. The script works without any problems if I run it as a domain user or a domain administrator. ...
Score retrive event from security log
gero - 7 Jul 2006 10:53 AM - 3 messages
Hi, In the past week, an user, deleted a lot of liles. Now I have to collect a list of deleted files from the security event log. How can I get a .txt whith a list of the files that this user deleted? ...
Score Need Script to Scan Folders and Delete Certain Files
MMC-Michelle - 6 Jul 2006 8:39 PM - 2 messages
I need a script that will scan all user profile folders on a file server for files that start with "ntuser" and delete them.  Is there a way this can be done? ...
Score profiles
Gustavo - 6 Jul 2006 7:01 PM - 2 messages
Hi!!   These days í´m working in a migration from linux (samba 3.0 and 2.8) to windows server 2003 (Active Directory), and i need a script that makes me easy the way that i reassign the old profiles from the old domain (Samba) to ...
Score [PSH] How do I start new process and inherit all current shell var
OK - 6 Jul 2006 6:00 PM - 5 messages
Guys, How do I start new process and inherit all current shell variables? I did read documentation, but still not clear how to do something similar to CMD start command or UNIX & (background job) My script looks like this: ...
Score Home folders
eldingo - 6 Jul 2006 1:56 AM - 5 messages
Hello All: I have been searching the internet for a script that would automate the user home folder creation, but so far no luck. I was wondering if there is a script that would create a home folder for the users automatically when the ...
Score How do i call a Login Script?
aaronw - 5 Jul 2006 11:40 PM - 3 messages
Hello, I have a login script which i have assinged to a User in ADCU under the Profile tab. I checked that the user can get to the script just via UNC from his machine.  That worked When he logs in he gets nothing.  Eventvwr shows nothing.  Permissions ...
Score need a script to capture local W2K server permissions
ToddKin - 5 Jul 2006 9:17 PM - 2 messages
Does anyone have a script written that will capture to a text file my local server shared files & folder names and security permissions. ...
Score group name with space
vbs script name rules - 5 Jul 2006 8:52 PM - 3 messages
Does vbs script allow you to have group name with space between letters? for example if a have a group name Canada Operation. would I have a problem if my group name has space in between Canada space Operation? ...
Score Change Domain Line at Logon Screen via Start up Script
Greg H - 5 Jul 2006 8:20 PM - 3 messages
I'm migrating about 1500 computers and users from one domain to another using Microsoft's ADMT 3.0.  It does everything I need it to do except change the default domain to the computer's new domain at the logon ...
Score VBScript can't read NTBackup log files
Ken Morley - 5 Jul 2006 8:13 PM - 2 messages
Our company uses Windows 2003 Server and Exchange 2003, both of which are patched to the latest revision. I would like to automate our Exchange backups.  I have written a VBScript that backs up Exchange to a disk file.  After the backup, I would like the ...
Score add enterprise admin to local computer
dan - 5 Jul 2006 4:10 PM - 2 messages
Hello, I would like to add the enterprise admin. group to the local computer. How do I create a script for this to occure? If anyone could point me in the right direction I'd appreciate it. ...
Score Delete Computer accounts
Jeff - 5 Jul 2006 4:05 PM - 2 messages
I ahve a number of computer accounts I need to delete.  The computer objects are in multiple different OUs.  How do I create a script to delete the accounts? I am using the following for deleting from a specific OU: ...
Score copy file with date prefix
Fabrussio - 5 Jul 2006 6:56 AM - 4 messages
I want to make a daily backup of a file but rename it to 'date'filename.mdb any idea how I can do this? Have tried using %date% but it puts it in subfolders of the day..month....year rather than renaming the file itself. ...
Score Executing program across domain
Locke Nash Cole - 4 Jul 2006 5:02 AM - 2 messages
I'm looking to write a custom program that executes across the domain, much like Symantec now deploys the antivirus install to specified targets, or ADMT executes on selected machines on your domain.  I'm not familiar with the API to do this, anyone know?  I'd rather learn the proper way to do this ...
Score average file size in directory on remote computer
Chris - 4 Jul 2006 4:23 AM - 6 messages
Hi Everyone, I'm having a problem with this script in the fact that colFileList is coming up empty when there should be many files in the collection. I previously had the basic skeleton of this script working on my local machine, before I had ...
Score grep, which, and tail commands?
Jon Miller - 3 Jul 2006 9:37 PM - 26 messages
Hi, I'm just starting to play around with PowerShell. It seems pretty cool. There are a few things that I'm wondering though. Namely, I'm wondering if there are equivalents for UNIX commands grep, which, and tail. With regard to ...
Score AccountExpirationDate Does Not Work
Paul - 3 Jul 2006 5:05 PM - 8 messages
I am trying to use VBscript to set the AccountExpirationDate for certain accounts within Active Directory. I tried: dim ojbUser Set objUser = GetObject("LDAP://CN=guest\, test,OU=Company Guests,DC=company,DC=local") objUserAccountExpirationDate = #2006/10/31# objUser.SetInfo ...
Score Mapping a Home Drive using WSH
celcius233 - 3 Jul 2006 5:02 PM - 6 messages
Hello. This is what I've got in my script. All other drives map, except the home drive (Q:). I took out the $ to see if that was it, nothing (I changed the share name as well). The script runs no problem. No errors all other drives ...
Score Adding users
user - 3 Jul 2006 4:32 PM - 3 messages
I know that it is possible to create script that adds users, in bulk say 1000, to active directory but it is possible to do this on a stand alone xp machine? ...
Score I would like to see a more modern console (terminal) for PowerShel
John Ericson - 3 Jul 2006 1:21 PM - 37 messages
I did a comprehensive blogging on this subject at the address: [link] Where I mention the shortcomings of today's console in Windows and what I ...
Score lower services remote
miguel-lopes - 3 Jul 2006 10:03 AM - 2 messages
Hello I have 2 boxes with Windows 2000 sp4. Box1( backup server) box2 (aplication server). Box1 is responsable for doing the backup and it will copy the files from box2 to box1. Box1 must lower ther services and start backup procedure. These server are ...
Score Taking User Input
Paul - 3 Jul 2006 8:24 AM - 3 messages
I'd like to be able to print a question to the console and take a 1 letter input answer from a user (usually Y or N), then react to this input. Is there a cmdlet or piece of script that will allow me to do ...
Score make different message post at different time script?
Joel - 2 Jul 2006 5:48 PM - 3 messages
cmd_cmdOnTick = "if (cmd_tmTick-(FLOAT)(INDEX)(cmd_tmTick/120.00)*120.00 <0.05) {Say(\"Go to first page to get the address\"); };"; With that code above, I send a message to my users every 120 secs. The problem is that I want to send 3 messages at varying intervals (ie. message ...
Next »