Home All Groups Group Topic Archive Search About



Scripting for Windows Server

microsoft.public.windows.server.scripting
Score Free Hot Phone Sex
AnimalSperm - 21 Jan 2006 4:09 PM - 2 messages
+8613352960090 100% Free multi-lingual AnimalSperm Production el***@digi-art.de ...
Score getting response time on ping
ckwong19802003@yahoo.com - 21 Jan 2006 7:30 AM - 5 messages
hi, I have a script that use to check for all the server availability.below are the code and i will like to know how to capture those ping time in these script(i.e Reply from 10.208.10.101: bytes=32 time<1ms TTL=128), i wan to ...
Score script to change password for multiple users.
SP - 21 Jan 2006 1:12 AM - 2 messages
Hi, Can some one help in writing a script to reset the password for list of users (which is to eb read from a text file). the password needs to be reset to a common password for all the users. the text file will have user logon ...
Score Simple question
gralet - 20 Jan 2006 8:04 PM - 6 messages
Hi everyone, I need to do a simple script (I'd never did one) and I'd like to use JScript but I only found VBScript samples. Can somebody translate me this VBScript to JScript?, I tried to do it, but I can't use the CreateObject ...
Score Apply Group Security to newly created folder
John R - 20 Jan 2006 5:56 PM - 2 messages
I am using the file system object in VBA to create a folder and move confidential documents to the folder.  I need to secure the folder by assigning access to a specific group.  I was told this can be done using a ...
Score Deleting Specific File types
Lyle - 20 Jan 2006 4:11 PM - 3 messages
I'll start with my situation, I need to scan a Domain Controller and remove any Music files I come across. I was wondering if there is a way to run a script to do this for me to save time, I'm very new to this area of scripting ...
Score Need help previously i posted one msg but I didn't get satisfy ans
Vicky Sam - 20 Jan 2006 3:35 PM - 8 messages
Dear All Frinds, I seen one script in my old organisation that provides information to user. Like when user loging on domain using their user id and password they got one message that thier full name and other information like last password ...
Score How to change default gateway per Login
The Ricster - 20 Jan 2006 10:03 AM - 2 messages
I am trying to determine if it is possible to change the network settings on a client computer (in a domain) based on the User that logs on to the computer. Does anyone know of any scripts (or programs, commands, etc.), that ...
Score Does JScript equal Javascript??
Calros Lo - 20 Jan 2006 6:02 AM - 3 messages
Hi~Everybody Ask a question about script language . Does "JScript" equal "Javascipt" Can tell me Different to Jscript and Javascript Thank you very much ...
Score Event Log
vsr - 19 Jan 2006 10:57 PM - 2 messages
I am reading the Event Log from application , its working fine when connects to local coputers event log but giving the following message instead of the actual error message when connecting to remote server's event log ---------------- The description for Event ID in Source cannot be found. The local computer ...
Score Sample Script for Group Accounts??
Lost & All Alone - 19 Jan 2006 8:21 PM - 2 messages
I am new to scripting, but was needing a script that would do an action based on AD Group Membership. Example: If member of "SPASTRG" then     ren c:\winnt\system32\drivers\etc\xhosts hosts     ipconfig /registerdns ...
Score Mapping network devices
david carvalho - 19 Jan 2006 4:59 PM - 5 messages
Hi ! I'm writing a startup script to map network drive and execute a file there, on the Group Policy refering to machines. First, I've tried everything to avoid using a username and password on the script, but without this I can't access. It's not a permissions issue. I've tried ...
Score Searching AD
Dewar Stewart - 19 Jan 2006 1:33 PM - 2 messages
I am using the following search criteria to locate user specific user accounts in AD in order to populate multiple attributes. objCommand.CommandText="<LDAP://dc=test,dc=testlab,dc=com>;" & _ "(&(objectCategory=person)(objectClass=user)(saMAccountName=strDisplay));ADsPath;subtree" ...
Score $input variable inside a function
Luis Abreu - 19 Jan 2006 12:24 PM - 9 messages
Hello guys. while testing the use of pipes with functions, i was wondering what was the type of that $input variable. Well, in fact, what i really wanted to know is how to check if anything is passed through a pipe (for instance, i want ...
Score [MSH] MSH Not So Great For Interactive Users
Jon Forrest - 19 Jan 2006 2:00 AM - 22 messages
I appreciate all the wonderful features and power MSH has for people doing scripting. But, I'm an old Unix guy and I was hoping for better treatment from MSH when I'm typing commands. Specifically, MSH should be at least as good as csh/tcsh at reducing the number ...
Score Need a function to resolve a dns name
Cristiano (GoodspeedRS) - 19 Jan 2006 2:00 AM - 3 messages
Does anyone knows a function to resolve a specific dns name to its IP address? Tks Cristiano Cunha Santos ...
Score get-hotfix script
James Truher [MSFT] - 18 Jan 2006 11:27 PM - 4 messages
a long time ago, I wrote a script that returned information about the installed hotfixes.  At the time, I used hashtables, but I've rewritten it to use add-member.  Here you go! param ( $fix = ".*" ) # work against 2003 and XP ...
Score Function Args
ebgreen - 18 Jan 2006 9:16 PM - 6 messages
I was trying to make a quick and dirty process killer and I ran across something I don't understand. Here is a function that will do what I expect it to: function showit {     $Args[0] } When you call the function with a parameter, the paramter is displayed: ...
Score File copy in startup script in Group policy.
Andre - 18 Jan 2006 6:46 PM - 3 messages
I am new to scripting so this maybe a real simple solution but here goes: I have in group policy set up with a VBS script that will map a network drive and then copy a file from that folder and place it on the local C: ...
Score User account modification
Craig Mac - 18 Jan 2006 6:31 PM - 5 messages
I am trying to find out if it is possible, or if a script exists to change the convention used for user account names, without doing them individually. EG: Change Test.Guy to testg. Thank you ...
Score Auto shutdown of workstations
Just Guessing - 18 Jan 2006 5:29 PM - 5 messages
I have a Windows SBS 2003 server.  I have about fifty workstations - most are Windows 2000 Pro - a handful of Windows XP and a couple of Windows 98 SE.  I would like to forcibly and automatically shut down most workstations in the ...
Score WSH scripts and input redirection
Bill Stewart - 18 Jan 2006 5:28 PM - 17 messages
Hi all, Suppose I have the following WSH 5.6 script (Test.js): // START CODE var tsinput = WScript.StdIn, tsoutput = WScript.StdOut; while (! tsinput.AtEndOfStream)    tsoutput.WriteLine(tsinput.ReadLine()); // END CODE All this script does is take each line of standard input and write it to ...
Score Trying to populate Listbox with text file content
Barry_Mathiassen - 18 Jan 2006 5:09 PM - 3 messages
Hi, When I try to use a text file to populate the contents of a listbox in an HTA script I get a message that says "Object Requried 'AvailableComputers'". Has anyone else had this problem? The code I got right from Microsoft. ...
Score Logon Scripts deleting current and creating new drive
JH - 18 Jan 2006 3:41 PM - 5 messages
Hello, Is it just a 50/50 scenario with MS Logon Scripts? I created a logon scripts for different ou's that basically said net use F: /d /yes and the second line said net use F: \\new server\share  . It's about 50/50 on the results of it ...
Score remove elemento from array
Luis Abreu - 18 Jan 2006 3:33 PM - 11 messages
hello guys. One question regarding the help text on the array element. The docs (about_array.help.txt) say the following: To delete an item directly from an array, set the index position to nothing. For example, to remove the ninth value (index position 8) from the $a array, ...
Score Duplex Mode detection through WMI?
Jason - 18 Jan 2006 2:57 PM - 2 messages
I think I know how to get Link speed through WMI, but I can't figure out how to tell if the machine is using full or half-duplex mode.  Any suggestions? ...
Score Ubiquitous parameters
Luis Abreu - 18 Jan 2006 1:27 PM - 6 messages
Hello guys! As you can guess from the topic, this question is about ubiquitous parameters What i'd like to know is if this parameters must be supported by all the cmdlets. Or do they exist only to build some form of standard to describe ...
Score How to make SSHD server (cygwin) bind to MSH instead of BASH?
shenzhonghao - 18 Jan 2006 5:03 AM - 2 messages
I am using a sshd within cygwin. Is it possible to make SSHD server (cygwin) bind to MSH instead of BASH? I know it will not get a full functioned remote MSH, but it is doable, right? Tony [link] ...
Score How can get the information of DHCP?
batistuta1977 - 18 Jan 2006 3:52 AM - 2 messages
rt ...
Score Replace Space Characters
TomKing - 18 Jan 2006 3:43 AM - 3 messages
This one doesn't work because of the folder name contains spaces. errReturn = objWMIService.Create("cmd.exe /c rmdir /s /q c:\documents and settings\"& strFolder, Null, Null, intProcessID) How should I write "c:\documents and settings" so the cmd.exe will not ...
Score Terminal Services Profile Attributes
Stewy - 18 Jan 2006 1:53 AM - 4 messages
I am trying to find how I can change the Terminal Services Profile and Terminal Service Home Directory in AD. I can modify the normal profile and home directory but I can't modify the TS Profile details... Any suggestions ...
Score Log on script problem
Lisa - 18 Jan 2006 12:35 AM - 5 messages
Hi, In our domain, the log on script maps the network drives for clients. All users are fine except one whose cmd box will open w/ message below: Current time at \\int-ns3 is 1/13/2006 9:00 AM ...
Score Tech Forum
Matt Burks - 17 Jan 2006 9:57 PM - 2 messages
I've started a tech forum for everything from tech questions to general computer talk (ie geek speak) if anyone would like to come over and join. I have a few of these that I am a regular in for some of my hobbies and just ...
Score Change Dial-in properties in AD on Windows 2003 server sp1
gekken - 17 Jan 2006 9:09 PM - 2 messages
Hi I'm trying to change dial-in properties on a lot of users in Active Directory. I've tested several different ways to do this but none of them seems to work. The last shot was a cut and paste from Microsoft ...
Score Script to append filename
David Crowley - 17 Jan 2006 4:06 PM - 7 messages
I have a folder full of files to which I would like to append the filename with *_revA. How would I do this? I have never written a script before. Thanks, David ...
Score [MSH] Bug with strong typing variables
Keith Hill [MVP] - 17 Jan 2006 9:41 AM - 5 messages
Maybe it is just late and I'm tired but I really expected this to fail: [C:\Temp] MSH:258 # [double]$d 0 [C:\Temp] MSH:259 # $d = "Huh?" [C:\Temp] $d is supposed to be of type double.  Assigning a string to it should fail, ...
Score Use WMI to delete folder
TomKing - 17 Jan 2006 7:47 AM - 6 messages
I tried this delete folder script on a local computer with admin rights. But it's not working for me. It doesn't return any error message. But after running the c:\script folder still there. The value of errResults is 14. What ...
Score [MSH] About using "[Reflection.Assembly]::Load" instead of "LoadWithPartialName"
DontBotherMeWithSpam - 17 Jan 2006 4:29 AM - 8 messages
While I was reading "LoadWithPartialName" function in "System.Reflection.Assembly", in the note, the docs says, the function is now obsolete and use "Load" function instead. So I have tried the following ================================================== MSH> [Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") ...
Score USMT - Is there more help for this tool?
David Rodriguez - 17 Jan 2006 2:56 AM - 2 messages
Hello, I am working with GE Healthcare with several large migrations and would like to help migrate using USMT. I think I got it but several questions are arising. If someone can give me some pointers I will post more info about ...
Score [MSH]Is this the place to ask about the internals of Monad?
Luis Abreu - 16 Jan 2006 10:13 PM - 2 messages
Hello guys. For the last few days I've been using Monad and I've been amazed by what it can do. What i'd like to know is if this is the place to ask about the internal behavior of this shell (if it is, then i'll be back :) ) ...
Score DateValue
Corné Bogaarts - 16 Jan 2006 10:00 PM - 8 messages
I try to use the 'DateValue'-function to get the date value from a date string. Example:     'strDate = "January 13, 2004"     strDate = "August 26, 2004"     intDate = DateValue(strDate)     WScript.Echo intDate ...
Score Batch File
teenzbutler - 16 Jan 2006 4:31 PM - 4 messages
I am new to creating/running batch files.  I wanted to learn how to install several Microsoft Updates using qChain.  I researched this function and learned that a batch file could be run to accomplish this goal.  I created a ...
Score List folders I am denied access to
Tim - 16 Jan 2006 10:38 AM - 17 messages
Hi All, Can anyone tell me if there is a way (script or otherwise) to list folders on a Windows 2000 share that have had the permissions modified to deny access to the administrator? We have been preventing users storing copyrighted music on company servers, ...
Score Install Software in Silent Mode
TomKing - 16 Jan 2006 5:16 AM - 3 messages
I have a very simple startup script here: Set WshShell= Wscript.CreateObject("WScript.shell") WshShell.Run("\\myServer\Installation\SoftwarePackage.exe") Suppose SoftwarePackage.exe is the install launcher. It runs when the computer starts up. Obviously this script will work but the software install ...
Score Script to return process using most CPU and memory at a point in time
Spin - 16 Jan 2006 1:15 AM - 2 messages
Calling all scripting gurus.  :-) I am looking for something short and sweet.  You know how when you are diagnosing a slow system one of the first places you look at is Task Manager, and the look at the processes tab to see which resource is taking ...
Score Need Loging script for ADS user
Vicky Sam - 15 Jan 2006 3:24 PM - 2 messages
Dear All, I trying to find our scripting like when user loging in domain they got information about themselves like their full name, their last loging time and last password change etc. So any one can help me to get this scrip so I ...
Score [MSH] online getting started guide
/\/\o\/\/ [MVP] - 15 Jan 2006 2:55 PM - 2 messages
while updating the links on my blog to beta 3 , I did found out that this one does not work anymore: [link] ...
Score [MSH] Tab Completion in MSH vs. Bash
Patrick Ogenstad - 15 Jan 2006 1:13 PM - 2 messages
If this is the wrong forum for this please point me in the right direction. As I wrote in my blog ([link]) I've just been using Monad for a few days and it looks very impressive! One thing that got my annoyed though ...
Score [MSH] Profiles and Variables
Alex B Chalmers - 15 Jan 2006 8:00 AM - 5 messages
I apologize if this has already been asked and addressed, but I've only been trolling the group for about a month (and getting very good information in the process). With the execution of up to four profile scripts on any initialization of a ...
Next »