Home All Groups Group Topic Archive Search About



Scripting for Windows Server

microsoft.public.windows.server.scripting
Score Adding shortcut to toolbar
Tcs - 27 May 2006 3:08 PM - 3 messages
I guess the first quesstion should be...Can I do this?  Add a shortcut to the "Quick Launch" toolbar I mean.  So far, I'm not having any luck. Here's my code: ----- ' ' create desktop shortcut for Windows Explorer program ...
Score Executing a binary
jstic04@cp.centennialcollege.ca - 27 May 2006 9:03 AM - 3 messages
Using vbscript, how can i shell and execute a binary? ...
Score Logon Script .bat
jstic04@cp.centennialcollege.ca - 27 May 2006 6:46 AM - 4 messages
Hello, i have made a real simple script to mount directories echo Welcome to the domain net use x: \\server\share1 net use z: \\server\share2 Does anyone know how i could make it so instead of using the x: and z: ...
Score Samples not working
Ray - 26 May 2006 6:06 PM - 2 messages
I cut and pasted this example to a vbs file and it will not work can someone please tell me what is the problem? here is a link to the microsoft site: [link] ...
Score Enumerate local Administrators
Diego Pereira - 26 May 2006 2:09 PM - 3 messages
Hi I need write a script to enumerate local administrators of a large number of servers. I tried use the follow script: Option Explicit 'On Error Resume Next Dim objContainer, colUsers, iBadCount Set objContainer=GetObject("WinNT://servername/Administrators,group") objContainer.get("member") or objContainer.getex("member") ...
Score Batch File to delete existing shortcuts
ano1optimist - 25 May 2006 10:32 PM - 3 messages
I'm trying to code a batch file that will delete any existing icons with a filename of *text*.lnk that reside on the local C drive.  I can run the commands at a command prompt but when I execute them in a batch ...
Score more recent file with power shell
Nicola Attico - 25 May 2006 10:02 PM - 6 messages
Hello! is this the right place to post questions about Power Shell? If yes, is this the best way to extract the more recent txt file under c:\ ? get-item c:\*.txt | sort-object -property LastWriteTime | select-object -last 1 ...
Score How to update an iframe tag using vbscript? (Permission Denied Err
Geraldo Rosado - 25 May 2006 5:23 PM - 6 messages
Hi ALL! I need to place the results of a vbscript process on an iframe in a html page but I am receiving a "Permission Denied Error" in the "iewindow.innerhtml"  line and I cant find a way to fix it... would anyone ...
Score Sharing with script
Jamie Allison - 25 May 2006 7:49 AM - 5 messages
Hi there, On our windows werver 2003 we have two shares which are Y and Z drive but when the server is rebooted these shares go again and have to be re shared. These drives are two external drives connected to the server and shared to ...
Score Password Protecting a BlankZIP file
hobie14t - 25 May 2006 3:44 AM - 3 messages
Hi, I have some VB code this is firstly dumping some form data to a txt file. I then have some VB code which creates a Blank ZIP file and then copies the txt file in to the ZIP file. This works great. ...
Score What's the difference between...?
Tcs - 24 May 2006 6:49 PM - 3 messages
In trying to set up a disk space monitoring script to run against all our servers, some of which are NT 4, I've noticed that in MS's downloads site, there are several "CORE" downloads about 6+ mb, such ...
Score UNINSTALL DEVICES IN DEVICE MANAGER
Kevin2005 - 24 May 2006 6:36 PM - 2 messages
I am using the serial and parallel ports in applications. Many times the ports are locked, and the only way to clear them is to Uninstall the port, and Scan for Hardware changes in Device Manager. Can this be scripted for the LPT1 and COM1 ports? ...
Score script not running when machine is locked
Avi G - 24 May 2006 6:15 PM - 3 messages
Hi, i have this script that turn on the capslock and turn is off Set objShell = WScript.CreateObject("WScript.Shell") objShell.SendKeys "{CapsLock}" now this script work great on the machine but when i schedule it and locked the computer nothing is happen why? and how i can fix it? ...
Score __NounName property for Get-Process?
Alex K. Angelopoulos [MVP] - 24 May 2006 4:39 PM - 3 messages
I've noticed that processes have a __NounName property returned. Is this from PowerShell, and if so, why is it visible here and not on other objects produced by various cmdlets? ...
Score Available disk space report
NAN - 24 May 2006 4:16 PM - 8 messages
I see the vb script for getting available disk space.  How would I go about automating this so it created a report/text file? Thanks. ...
Score WSH Error when running script
James Robertson - 24 May 2006 3:27 PM - 6 messages
I am running a simple script to map netwrok drives and it gives me an error when the device is already in use.  ERROR: The local device name is already in use. Code: 80070055 WSHNetwork.MapNetworkDrive Is there any way to suppress those errors?  I am slo using this in a Group ...
Score Error loading system MshSnapIns exception from C# dll
Varun Bansal - 24 May 2006 10:15 AM - 3 messages
Hi All, I've written a C# dll - a wrapper around Exchange cmdlets. I'm calling it from unmanaged C++ code by COM callable wrapper around my C# dll. The call to CoCreateInstance( ) is successful but when my C# dll's Initialize( ) ...
Score renaming an excel worksheet using msh
Irish girl brid - 24 May 2006 8:26 AM - 3 messages
Hi, I'm using MSH and I want to save a table in excel with a different sheet name to the file name. Currently I'm writing a table to a csv file using $tablename | export-csv -not c:\Folder\name.csv ...
Score renaming an excel worksheet using msh
Irish girl brid - 24 May 2006 5:02 AM - 2 messages
Hi, I'm using MSH and I want to save a table in excel with a different sheet name to the file name. Currently I'm writing a table to a csv file using $tablename | export-csv -not c:\Folder\name.csv ...
Score Help script security
marcobeja - 23 May 2006 6:48 PM - 2 messages
Hi, I have win2003 with AD, downlodad this script : strFileName = "C:\Temp\test.txt" Set objWMIService = GetObject("winmgmts:") Set objFileSecuritySettings = _ objWMIService.Get("Win32_LogicalFileSecuritySetting='" & strFileName & "'") intRetVal = objFileSecuritySettings.GetSecurityDescriptor(objSD) I executed this exe and see the next error: ...
Score Sending keystrokes
avipenina - 23 May 2006 5:20 PM - 4 messages
Hi, I need to know how to send the alt ctrl del keystrokes to unlock remote machine by script, I have a locked machine that I need to unlock my only way right now is to go to the PC and press ctrl alt del and put the password and press enter, I need this thing to be done automatically by script or something else, even if you have a file that I can run on the remote machine that i need to unlock it will be fine, I have a program that run on the remote machine that gives me the ability to run files on the remote machine. ...
Score Script detect connected USB Devices
Paul - 23 May 2006 3:21 PM - 3 messages
Hi All, I am having difficulty finding and displaying USB connected devices. Is there an easy script that will enumerate all these devices so I can log them all. I also found this location in the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB ...
Score Help with script?
Les - 23 May 2006 2:04 PM - 10 messages
We have a product that backs itself up every hour into a zipfile named timestamp.zip but timestamp is some real gibberish number chain like 1148392803645.zip. Is there a way to add logic to a script file to find the oldest zip file (we ...
Score which systems listen to Powershell?
portlock - 23 May 2006 10:45 AM - 7 messages
I realize that you have to have Vista, Longhorn etc to install and run Powershell, but what systems will it talk to? Windows NT4.0 Windows 2000? TIA Nick ...
Score [PS] $myInvocation vs %0
Staffan Gustafsson - 23 May 2006 9:36 AM - 2 messages
Hi, I find it difficult to use $myInvocation to get the path to a script, or the script a function was sources from. With cmd.exe, it was common to use %~dp0 to get the directory of the running script. This worked no matter where the script was invoked from. With ...
Score PowerShell: piping binary data to Out-File
Oisin Grehan - 21 May 2006 8:25 PM - 3 messages
fellow powershellers, I've got some cmdlets nearly ready: Out-BZip2, Out-GZip, Out-Zip and Out-Tar. The bzip2 and gzip commands deal with a single file in, single file out. The zip and tar commands allow multiple files in, ...
Score PowerShell and ManagedSpy
Doug Finke - 21 May 2006 2:44 PM - 2 messages
ManagedSpy is downloadable here. [link] A simple multiply winforms app is described. Three textboxes and a button. The button multiplies the first two textboxes and shows the result in the third. ...
Next »