We recently set up a new Server 2008 R2 domain, and are having a weird issue. When joining the domain, I can't join a machine by typing "domain.com" for the domain. It only "finds" the domain if I type "domain" and join that way. When logging in as well, the logon screen shows "domain\username"...
I'm having a strange DNS issue on a lot of our client Windows 7 workstations that I've narrowed down to the following:
When the DNSCache (DNS Client) service is running:
- Clients cannot resolve four particular hostnames
- Clearing the DNS cache (ipconfig /flushdns) and then pinging the hosts...
I've been tearing my hair out trying to figure out why my virtually unchanged image was failing on deployment. It kept tossing error code 0x80070070 along with a message about failing to copy the administrator profile to the default profile.
In our case it turned out to be a relatively simple...
Since Windows 2008 lacks the ability to do proper failover between a primary and backup DHCP server (I don't consider split-scope a "real" solution), I hacked together this watchdog script to run on a backup DHCP server.
It checks the primary DHCP server every so often (user-specifiable), and...
Hi there,
I'm having an odd issue with my dhcpd.conf file on a Fedora Core 13 system. The server is at a remote site and my desire is for it to only give IP addresses to reserved clients (by MAC address). The problem is that it is still passing IP's out to unknown clients. I'm sure it's a...
I have an ASA 5510 with a WAN connection to the outside world.
Currently it looks like this:
[Internet]
|
[ASA]
|
192.168.x subnet
|
[NAT device]
|
172.16.x subnet
My plan is to move both subnets to their own interface on the ASA and remove the second NAT device.
The...
I threw together a batch file this morning that goes out and backs up a users files to my hard drive (or wherever) before I wipe out the computer. But it's really ugly...was wondering if a scripting master could look at this and suggest any way to clean it up?
:: Purpose: Backs up a...
Hi there,
I'm trying to archive and rotate some log files from a profile deletion script.
The batch file creates a file "OCPN2_master.log" from the script. This is what I currently have but it's kind of ugly:
:: Log file rotation section. Archives up to 6 backups, ("backup" through...
I've been searching for a while for a program or script for windows that's equivalent to Tripwire on *nix. Basically something to monitor files in a directory and notify me on either a) modification of files (checksum change) or b) new files in the directory.
I.e. "watch c:\secretfiles\*.exe...
I've been using this batch file for a while to remotely update Java on some computers. However, for some reason it just started breaking, and I'm not sure why. Whenever I make the menu selection and then hit 'enter' to confirm and start the patch process, I get the error "goto was unexpected at...
I'm trying to remove users and groups from the "Deny Logon Through Terminal Services" setting in group policy (secpol.msc) via the command-line. How do I do that?
I was previously posting under "GeneralDzur" but hgate73 is my new username.
I'm having an issue with our Vista boxes.
Windows Vista Enterprise.
- Remote desktop is enabled
- The appropriate users are added to the "remote desktop users" group
- Windows firewall is disabled
- I can ping the machine
But when I try connecting, it fails.
Any ideas? I'm stumped!
I...
This is a basic temp file cleaner script. It also cleans Flash cookies - something most people overlook.
It deletes random stuff sitting in C:\ too - so if you store files in C:\ (the root of the drive) then remove this section.
:: Purpose: Temp file cleanup
:: Requirements: Admin access...
Admittedly, turning off Windows services is a touchy topic. Some people think it's worthless, other people swear by it. I'm one of the people that swears by it :-P. Not to save CPU cycles, but a) to reduce RAM usage, and b) to reduce attack surface. Good security practice involves eliminating...
Windows Time service isn't registered w/ Windows by default (XP only), randomly. This batch file fixes that so you can have network-updated time.
:: Windows time service isn't registered with Windows by default...who knows why..???
w32tm /register
sc config W32Time start= auto
net start...
I noticed one day that Windows XP was set by default (out of the box) to use a whopping 12% (!) of the hard drive for system restore points. That's HUGE. We don't need all those on our systems, so this script crawls through the network (or, if you like, only your computer) and flips a registry...
Our power goes out every week for generator maintenance, and usually we're not given any advanced notice. Users lose important work, and invariably at least one Windows box blows up because of the power loss in the middle of a data write or something.
I wrote this scrip this morning to let me...
If you are in a highly transient environment like I am, you have hundreds of users logging into workstations they'll probably never use again. This script uses delprof.exe from Microsoft to crawl through the network and delete old cached profiles from the computers, potentially freeing up GIGS...
I'm posting a few scripts I use as a system administrator in Kuwait. These are to perform mundane tasks on a /lot/ of computers at once. Every one of my scripts reads through a "names.txt" file with a FOR loop and executes that command for each PC. Without further ado!
:: Purpose...
I'm using PSEXEC (sysinternals) to script the installation of a bunch of routine patches on our systems.
I have a FOR loop read the list of computer names and execute the command one-by-one on the computers.
I want to copy a patch to the remote computer, run it, and disconnect. The only part...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.