Home All Groups Group Topic Archive Search About



Scripting for Windows Server

microsoft.public.windows.server.scripting
Score I need a script (pref VB) to change permissions on a folder in multiple folders.
Woody - 20 Oct 2007 11:35 PM - 2 messages
I need a script (pref VB) to change permissions on a folder in multiple folders. Example, imagine users home directory, so a folder contains all the users. Each user has a folder insiide their home driectory called 'examples'. I need a script to search for that folder inside each users home directory and ...
Score Verify the new DST setting on all server using script
Steve - 20 Oct 2007 2:03 AM - 1 message
All, Does anyone use some kind of script to verify all servers in a domain to make sure they have the new dst patch or new dst setting? Thanks, Steve ...
Score Re: Scripting for Event logs
BJW - 19 Oct 2007 4:07 PM - 1 message
Hi, I have tried running the original script posted by "lyott" on an XP SP2 machine but it does not seem to work. When I debugged it I found that the following line seems to be returning an empty collection (Count = 0): Set colLogFiles = objWMIService.ExecQuery ...
Score Share Out All Folders In A Folder
cronse - 19 Oct 2007 3:50 PM - 2 messages
Hello, I am migrating a server that holds all the home folder for users to another folder.  I robocopied the folders to the new folder but the sharing does not copy.  I am trying to write a script to share the ...
Score Any Way to Turn On Power Switch of PDU From Command Line?
Will - 19 Oct 2007 6:26 AM - 3 messages
I'm looking for a rackmount Power Distribution Unit (PDU) with integrated Windows software that gives the ability to turn on and off power to individual ports on the PDU by commands issued from the command line.   Who ...
Score Modify user home directory path
dung.t.ng - 18 Oct 2007 10:15 PM - 2 messages
Hi All, I'm new to the VBScripting world. I need help with a script that can modify user home directory path. I'm going to move approximately 1500 user home directories from one server to another. I need a script that ...
Score IP Change Script fails
Niel - 18 Oct 2007 2:48 PM - 1 message
we have many locations and all our IPs are static.  We have users with laptops that move from place to place.  I used the following format for my script.  However, it only works in one location and I get the warning 1005 ...
Score Change local admin password
Miha - 18 Oct 2007 7:04 AM - 9 messages
Hi Is it possible and how to change local admin password on all Win2000/WinXP computer in domain? Can't find any function in GPO, the only way that I can think of is via script, but it's a problem that script is run with users privileges, and ...
Score Move folders using input from CSV
Mark R. - 17 Oct 2007 8:02 PM - 2 messages
I need to move thousands of folders (and their contents) from one location to another. No problem if they were sequential...however, they are not. I have an input file in CSV format (actually it's an Excel file right now) that ...
Score delay for consecutive commands
Honza B. - 17 Oct 2007 5:25 PM - 2 messages
I need to process two WshScripts methods consecutively, such as remove network drive and map another network drive. When I try process method RemoveNetworkDrive and MapNetworkDrive consecutively then Error occured on MapNetwordDrive command because network drive is still maped or the new RemotePath not apply. When I paste other ...
Score Need Help with Randomized and Incremental Numbering
Corey Forman - 17 Oct 2007 5:18 PM - 4 messages
I'm trying to set a variable to a call of ticket_ID from table tickets of the most recent ID. Basically I want to call the most recent number in the column ticket_ID and add 1000 to it to make a 4 digit #. What I've got is this: ...
Score Re: Jscript + cscript.exe errors
Bron Davies - 17 Oct 2007 2:02 PM - 1 message
Reinstall the scripting engine for your platform [link] or run your scripts using the /e:vbscript or /e:javascript command ...
Score reading remote file using a non-administrative account
akkha1234@gmail.com - 16 Oct 2007 4:02 PM - 1 message
I would like to pull files from remote servers, using a non- administrative accounts. I can retrieve information of the file using WMI and supplying authentication information of account with administrative rights on those remote servers (but which have no rights on the server that I am ...
Score Parse txt file and output to cmd file
Michael - 16 Oct 2007 2:26 PM - 3 messages
I am working on updating some of our out dated unattened installs for the 64-bit world. In our build scripts we echo the computer name to a txt file then need to read the name. Based on the name we import settings into our unattened.txt ...
Score Add "Send as" permissions from script
ricmik - 16 Oct 2007 11:05 AM - 1 message
Hello! Is it possible to make a script to add "Send as" permissions to active directory users? Does anybody know how to do this by modifying AD by LDAP? ...
Score Install Software on a Remote Computer
kannadhasan.k - 16 Oct 2007 10:56 AM - 3 messages
Hi, I would like to install software in remote machine without using any remote login software( like damware, remote desktop. etc..). I  run this script. but i get  error mgs only. can you help me. Script Code Const wbemImpersonationLevelDelegate = 4 ...
Score Re: Blocking access to websites?
getsolutionfast - 16 Oct 2007 9:26 AM - 1 message
We are using the software BrowseControl to restrict internet access in our company. Really the software is worthy.. We got it from [link] It is too cheap compared to other softwares. It provides many other good options like application blocking, internet scheduling etc. ...
Score Report of DNS and DHCP configuration
Pasi Heino - 15 Oct 2007 12:52 PM - 1 message
I need to save my DNS and DHCP Server configurations f. ex. to text file. I have WAN environment with many (40 sites). Because management is delegated local IT admin can modify DNS zones, DHCP leases, etc... settings.. I was wondering that I will save DNS and DHCP configurations 2-3 times in ...
Score AD Group Script NTFS
IT Guy - 14 Oct 2007 4:12 PM - 1 message
Any way to write a script that will apply a group to every folder on a shared drive? Inherit from parent is disallowed. ntfs permissions set on the folders. I want to apply a group at the root of the drive ...
Score Client IP retrieval
Green-Thumb - 14 Oct 2007 2:38 PM - 4 messages
I have been trying to write a script for retrieving the IP from a client. I want to be able to send an email with the script as an attachement and my client then would receive the email and run the script.  The script would ...
Score Zip files
AHartman - 14 Oct 2007 12:15 PM - 1 message
I'm looking for an example of how to seach a given folder based upon file date and create a zip file. Example: seach folder \\sourcefolder if files are of type .csv and are a week old then create zip file .. ...
Next »