0
votes
1answer
287 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
1answer
415 views

How to prevent schtasks on Windows 7 from showing the command prompt after executing a task?

I am trying to get a scheduled task on Windows 7 to execute once a minute, using schtasks and a batch file. My .bat batch file is: @ECHO OFF wscript "c:\http.vbs" The .vbs script si a simple one, ...
1
vote
1answer
210 views

Delete a folder in the currently logged in user's profile

I am trying to create a login script, or bat file to delete the folder located in the following directory. I would like the whole folder deleted with all of its contents "Juniper Networks". This is ...
0
votes
1answer
274 views

NINite Integration, vbs script,copy file from server and replace existing

Lets forget about everything besides mapping a drive and running NINite. So here is what I have done. I have changed the task sequence to look like this: ...
1
vote
0answers
278 views

WinHTTP module not found (HRESULT 0x8007007e)

I've got a customer that gets a module not found error (0x8007007e) when running a vbscript at this line of code: set test = CreateObject("WinHttp.WinHttpRequest.5.1") The system is Windows 7 ...
0
votes
1answer
714 views

2 VB Scripts one to remove Default Gateway and one to add a Default Gateway

I have a client with a bunch of children using about 30 machines on a regular basis. All machines that the children user are set with Static IP Addresses. The machines that the kids use, I would ...
0
votes
0answers
1k views

VB Script SetDWORDValue via WMI is not working in Windows 7

I'm trying to get this particular segment of vbscript to work on Windows 7 and it's just not doing it. No errors or anything. const HKEY_LOCAL_MACHINE = &H80000002 strComputer = "." Set ...
1
vote
2answers
4k views

Windows 7 logon scripts — set default printer

I have been tasked with troubleshooting a logon script at a client site that among other things sets the default printer. The logon script is vbscript with the printer being set using Set ...
1
vote
1answer
768 views

Enumerating and mapping network drives (Windows 7 Pro/Windows Server 2003)

I had a working script for Windows XP clients, distributed via group policy from Windows Server 2003 PDC. This is the main part of the script: Function ggMapNetworkDrive(fDriveLetter, fShareName, ...
5
votes
5answers
37k views

Why won't my logon scripts map drives under Windows 7?

Why won't my logon scripts map drives under Windows 7? I'm using a vb script similar to the one below, the script runs using a group policy. Dim WshNetwork Set WshNetwork = ...