Jump to content

Constantine

Member
  • Posts

    21
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

About Constantine

Constantine's Achievements

0

Reputation

  1. I am not sure Where I got the idea from, was a CCIE (Cisco Certified Internetworking Engineer), but I cannot get ahold of him to ask him how to do it. I would assume that surely windows is incapable of it... but I don't know for sure so I thought I would ask.
  2. I've been total it's possible to set DHCP reservations for a MAC address range. Example... The range I need to Reserve IP's for is: 00107a7 I realize that is only 7 digits of a 12 digit MAC address. But those 7 Digits are the same on every product I have from this company. Part of those 7 digits is their manufacturer's ID. What I need to know. With windows DHCP is it possible to set a reservation for a Manufacturer's ID? Just have it check the first 4-8 digits before it issues the IP address? If not, can anyone suggest a DHCP product (I'd even be tempted to check out a Linux solution) that would allow this to work?
  3. I kind of tried that. That might work, I can get the batch file on each computer. My issue at the time was, that I was unable to create the task to run, mainly because the AT command was not working and just flat out copying the task wasn't working at all. Now that I have learned quite a bit more. I think if I modify his script to create the task to launch the batch file, and also copy the batch file locally. It might actually work, if nothing else schtasks might. I'll try both and let you know what happens.
  4. Now that I've had time to think about this. How were your permissions set up on your test area? Was it set to Everyone could come in? or mabey just Domain Users? I gave the Everyone group full control just to see what would happen. **EDIT** I should also mention I'm not using the NetLogon folder. I'm just using a shared folder on a server.
  5. So... basically the way I'm doing it with the Login Script is the only option?
  6. Any idea why I get the unable to find configuration error?
  7. That is what I had to change to get it to work. Few questions though. I highlighted my changes in bold so their easy to spot incase I'm wrong. 1 Why is there SpyBot stuff in the script? This a remodeled script? (If its not doing anything I won't worry about it, just have to ask) 2 If I run it off my computer. It works. I can schedule the task on my PC using the "." everything is perfectly okay. If I try to do it on someone elses computer renaming the "." to their "ComputerName" the script works like normal. But it tells me it cannot find the configuration file. Same thing happens if I leave it "." and run it from their PC. Basically no matter how I schedule it, it works on my PC but no one elses. The files are shared on a server with everyone having full control of the folder for trouble shooting purposes. Nothing changes. here is the real tricky part. I can log into any other computer and it fails. But from my system it works. This is why I started using the Batch file to launch it in the first place. I had to use a mapped network drive and the batch file to get rid of the error about the configuration file.
  8. The way Task Scheduler should work. It will run the task that you tell it to as the current user, but with the credentials you supply. It would be the same thing as shift+right click and using Run As. My question for you Eyeball. I can create the tasks. The issue is it always says task failed to start. That's what confuses me. Mabey it has something to do with the fact that I'm creating a task to run a batch file. I'll have to look into that.
  9. Yeah. I already have it implemented using a logon script w/ Timer:0. My issue is. I am IT in a Hospital, if you don't know what thats like. It basically means my users might log off their PC's once every 2 months, even then, it's only because their PC blue screens and forces them to reboot. So what I need is 1 of 2 things. Either a way to Actively cause each computer to do this. For instance if It is possible to use active directory to tell an entire group of computers to execute their logon script, or another pre-defined script at a specific time or on a specific day. A way to force BGInfo without using a logon script and instead using a group script. Ideally. I would like to be able to place this into part of a GPO as a run once command. Once each computer gets updated with this GPO's settings they would run the command that inniates the script one time.
  10. I actually used an excel macro to get a pc list to use with the @file setting for PCExec. The issue with PCexec was I could not get it to edit the background. It would run the script but nothing would happen. I even tried getting it to just flat out run bginfo.exe. That still would not do anything. I'd love to use PCexec, that was actually the first thing I tried.
  11. I just tried using schtasks.exe. The error I recieved said the scheduled task has been created, but may not run because the account information could not be set. This is basically the answer I am encountering. The program is BGInfo (for those who don't know it's a program that edits a background to put information on the screen such as Hostname/IP). Right now, it is referenced by a batch file that excutes it the way I want it to execute. I've tried using all sorts of alternatives to get it to work and nothing worked but this. I basically just need a way to make this program update when I tell it to on each computer in our Domain. If you know of a GPO that might help me do this I'm completely open to suggestions. This does give me an idea though. Is there a way to make their login script rerun itself without actually logging in? Could I add a line in the script that says to run this every x days, or run on specific days? Or even better yet, just make the batch file for my BGInfo run every so many days?
  12. Tried it before I posted this, but just tried it again. I may just not be Intelligent enough to use it. I tried: at \\computername 15:00 \\Computername\Netlogon\SCRIPT.BAT It copies across, acts, disapears like it ran, and nothing happens.
  13. I need to make a batch file run on every computer in our organization. The catch is, I need to do this multiple times a quater and want to be able to do it remotely. The file is located in our netlogon directory so everyone can see it. All the file does is reference another batch file that actually executes the application. I tried creating a job and just copying it to the remote pc's tasks folder. That failed. The file copies but it effectively loses the username I give it and takes on my username once copied. Once I give it a different username is works, the issue is, I don't want to have to remote into every machine and change the user name. Any suggestions, ideas, or thoughts? I already use a logon script but getting nurses to reboot/relog a machine in a hospital is impossible. If there is something along the lines of PCexec that actually works I'm definately open to that idea as well.
  14. strComputer = "." Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objNewPort = objWMIService.Get("Win32_TCPIPPrinterPort").SpawnInstance_ Set objPrinter = objWMIService.Get("Win32_Printer").SpawnInstance_ objWMIService.Security_.Privileges.AddAsString "SeLoadDriverPrivilege", True Set objDriver = objWMIService.Get("Win32_PrinterDriver") objDriver.Name = "SAVIN MLP25n PCL 5e" '<-- Driver name in INF file objDriver.SupportedPlatform = "Windows NT x86" objDriver.Version = "3" objDriver.FilePath = "\\255.255.255.255\Printer Script Drivers\Savin MLP25_MLP25N" '<-- Path to inf file objDriver.Infname = "\\255.255.255.255\Printer Script Drivers\Savin MLP25_MLP25N\OEMSETUP.INF" '<-- Path and name if inf file intResult = objDriver.AddPrinterDriver(objDriver) 'Installs Printer Port objNewPort.Name = "IP_255.255.255.255" '<-- change to the port address or name objNewPort.Protocol = 1 objNewPort.HostAddress = "255.255.255.255" '<-- change to the port address or name objNewPort.PortNumber = 9100 '<-- Change to appropriate port number if needed objNewPort.SNMPEnabled = True objNewPort.Put_ 'Install Printer objPrinter.DriverName = "SAVIN MLP25n PCL 5e" '<-- change to match the driver name in the INF same as first line above objPrinter.PortName = "IP_255.255.255.255" '<-- change to the port address or name objPrinter.DeviceID = "Pritner1" '<-- Friendly name displayed in control panel objPrinter.Location = "" objPrinter.Network = True objPrinter.Put_ Here is the code I currently have. It basically install a printer with default settings. What I need is a way to automate which trays are activated on a per printer basis. The options I can think of is adding to this VBS script, or using a batch file. I'd even be willing to use registry settings if that is the best way. Thanks for your input. (I changed the important things to be somewhat private. No I don't use broadcast IP's.)
  15. Thats to Uninstall Internet or Zone Games echo Uninstalling ZoneGames... (choose no if asked to reboot) Rundll32 setupapi,InstallHinfSection ZoneUninstall 132 igames.inf
×
×
  • Create New...