1
vote
1answer
34 views

Using VBscript and EnumNetworkDrives, how can I instruct our login script to NOT delete a drive letter mapping and remove the rest upon each login?

I've been working on adding some new parts to an already existing login script using VBscript. I'd like to use the below code to erase all drive mappings on login. Set WshNetwork = ...
0
votes
1answer
273 views

Disable “Windows Firewall with Advanced Security” for all profiles(Domain,Public,Standard) in local GP using script help! Windows 7 Clients

We need Windows7 with windows firewall to be turned off , so the GOLD image has windows firewall turned off for all profiles(Domain,Public,Standard) and Windows Service disabled No the same GOLD ...
1
vote
3answers
2k views

How do I turn off Windows 7 Firewall via script or through automation?

This is in regards to working on machines before joining the machine to a domain and although I would love to rely on GPO, that isn't an option at this time. In the environment I'm working in, the ...
0
votes
2answers
596 views

Need to modify VB script so it deletes all existing network printers first

We have a fantastic VB script that adds multiple network printers, then goes on to select one of them to be the default. Dim multiPrinter, UNCpath1, UNCpath2, UNCpath3 UNCpath1 = "\\server\printer1" ...
0
votes
1answer
592 views

Export hardware specifications to a spreadsheet for Windows Server

I have a bunch of servers : Windows 2003 and 2008. I just wanted to export these hardware specs to a spreadsheet: cpus : num processors, clock speed, etc total hard disk space total used disk space ...
1
vote
1answer
128 views

.vbs script wont run at login using AD

I am trying to execute a printer script (.vbs) on logon for my company's users. I am currently running a batch (.bat) file on startup through Active Directory > Profile > Logon Script which ...
0
votes
1answer
224 views

Delete folders with exclusions (case)

i found a VB script that uses FileSystemObject to delete every folder on a drive except ones i specify, my problem is that the FileSystemObject cannot see or enumerate folder with trailing / leading - ...
0
votes
2answers
2k views

Script to delete Shortcut on each user's desktop

I'm looking for a script to remove a .lnk file that was placed on every user's desktop. I installed a program on a terminal server that put a .lnk file on every user's desktop, rather than putting one ...
0
votes
2answers
2k views

VBScript with ADsDSOObject no longer working after move to Server 2008 R2

we recently moved some scripts from a 32 bit Windows 2008 server to a new Windows 2008 server R2 64 bit machine. Now we have some trouble with a few VB Scripts. Let's take this one for example: Set ...
1
vote
2answers
251 views

get account name for IIS anonymous user

I'd like to get the name of the anonymous user account for an IIS install. It's easy enough to assume that it's the machine name, but in the event that the machine name has changed I'd like to still ...
3
votes
3answers
146 views

Direction for Scripting

I'm administering a network and they use a few scripts here. Mostly batch scripts or vbscript. It's a Windows environment, mostly Server 2008 with a few 2003 servers. My question is Should I learn ...
1
vote
1answer
533 views

Running an application as a different user (.bat / .vbs)

I need to restart an application using a service running on the SYSTEM account. The problem is that the application is then also started under the SYSTEM account. For various reasons beyond my control ...
-1
votes
2answers
120 views

creating and modifying .exe file? [closed]

How to create an .exe file and how can I modify exsisting .exe file?
0
votes
2answers
1k views

admin right to IIS7 for user using group policy or script?

I want to provide administrator rights to user account under windows 7 just for IIS7 and user shouldn't be able to manage any other application. I have create group policy rules using applocker for ...
0
votes
4answers
459 views

Writing all running services to a .csv file with WS2003

I want to list all the current running services and output it to a .csv file. Does anyone know how to do this?
0
votes
2answers
185 views

Headless server has stuck “del” key, making it unmanageable. How can I disable keyboard via VBS?

I have a headless Windows 2008 R2 box that seems to have a keyboard plugged in and something is pressing on the delete key. I'm using GotoMypc to access the box and am unable to click on device ...
0
votes
1answer
451 views

Remove OCS user programatically

I am looking for programatically removing user accounts from OCS 2007 R2. I would prefer vbscript solution as this will become part of larger deprovisioning script used for removing various user ...
0
votes
1answer
2k views

Script to wrap around an application and wait for app to finish

I need a vb script that will wrap around an applcation which will stay open until the application finishes. I want to be able to call the following command "setup.exe /qb /I Autocad2010.ini ...
1
vote
6answers
268 views

Standardising on a single Windows Scripting Language

I wasn't quite sure whether this would be better on StackOverflow or not, feel free to move it if you think it's more appropriate there. Anyway on to the question... The Situation We currently ...
1
vote
3answers
28k views

Script to list current user's mapped network drives

I have a Windows XP/ Server 2003 environment here users have mapped different network drives themselves using arbitrary drive letters. Some of these users do not know how to tell the true UNC path of ...
0
votes
2answers
796 views

Check for the presence of a printer connection (unreliable printer mappings)

I have a lab area with about 75 XP boxes in it. At logon, we map two served printers with the AddWindowsPrinterConnection method in a VBS. 5-10% of the time, the users find that the printers have ...
1
vote
1answer
337 views

Building .htm email signatures with PHP or script and Active Directory

We use HTML signatures which are based off a template which gets changed from time to time. At the moment i have to open all the html files stored on the server into dreamweaver or similar, make the ...
1
vote
8answers
1k views

how to visit every computer on the network and modify the hosts file in windows xp

We need to append a line to the hosts file for every user on our network. I have admin privileges, but don't know the first thing about windows scripting. Can someone point me in the right direction ...
1
vote
5answers
3k views

Alternative to WScript.Sleep

I'm using WhatsUpGold to monitor the uptime of services and one of them is a MySql server. Since there's no explicit support for MySql, I'm forced to write a VBS script to do it. Unfortunately, ...