Archive for category Scripts

Internet Explorer 7 Search Provider Import/Export

I recently came across a computer that for no good reason would seem to allow me to change or add a search provider.  When I would attempt to add a provider to the search bar (since google is tons better than the default; windows live) it would cause a fatal exception and close Internet Explorer.  After a ton of  searching, I could not find this anywhere on the internets so i think it is worth posting here.  
Read the rest of this entry »

,

No Comments

Static and DHCP IP Address Changes Through Scripts

I have a office that uses static IP addresses at the location. The manager just got a laptop that he wants to use at the office and at his house the same static address does not work. So I made him two batch files so he can easily switch between a static IP address in the office and a dynamic IP address at home. I was thinking that this could be helpful for making sure everyone in a office is using DHCP and no one is statically assigned. It could also be really useful for changing say the DNS server address on a set of computers automatically through a login script or kaseya.

It is a super simple script. The name of the network adaptor must be changed to match the name of the network adaptor you wish to modify settings for.
Read the rest of this entry »

, , ,

1 Comment

All about the Shutdown Command

The ability to restart and shutdown computers automatically or remotely is key to completing installs, fixing issues, or just having a hell of a time messing with end users. In this post ill detail all the switches and uses of the shutdown command.

For anyone that is not familiar with the command ‘shutdown’, it is a windows/dos function that controlls the the shutdown, logoff and restart of a compiter or server either locally or remotely.

Here are the switches 

shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy]

Read the rest of this entry »

,

1 Comment

Add Command Prompt Here Context Menu

Easy fast administration means less stress. This nifty script aims to save you some time.  This adds the right click context menu to all folders in explorer ‘cmd prompt here’. When you click this option a command prompt with the current directory will be displayed. This is a very useful tool for administrative functions and saves you the time of opening a command prompt and changing directory to the folder you need. Additionally, it gives you a really easy way to walk a user through opening a command prompt window when you need them to run something like ipconfig over the phone. This is a visual basic script and runs silently, so it can be deployed by login script, or GPO as well as kaseya. Just save it as a .vbs.
Read the rest of this entry »

, ,

No Comments

Change Windows Firewall From Command Line or Batch File

I have a set of scripts I run when I prep a computer for deployment.  At specific points applications require that the windows firewall be turned off in order to install correctly.  This is namely ACT! and imagine time.  They use a bunch of odd ports during install, so their documentation tells you to just turn off the firewall. Well here is what I found with a little research.  From run or in a batch file there is a simple netsh command to disable the firewall and one to again enable it.
Read the rest of this entry »

, ,

No Comments

Automatically Remove Windows Search 4.0

Microsoft has a funny way of sneaking ‘features’ in with patches. In this case Windows Search 4.0 is not really a feature as much as a problem. It was installed on a few of the networks I support as part of our weekly patching, and the next day I got a bunch of calls about reduced performance. I figured that people would complain until it finished indexing. Not the case, it seemed to cripple computers and crush servers. It indexed to the point of actually leaving no resources for users to authenticate to one of our terminal servers. I started looking for a fix and came up with this:
Read the rest of this entry »

, , , ,

2 Comments

Service Pack 3 Rollout Options Switches and Scripts

Okay so Service Pack 3. Scary I know, I am always weary of big service pack rollouts. However if you don’t update to SP3, you are open to contracting some nasty bugs. Here are some simple install possibilities if you don’t have it on your network yet.  I suggest that you take a look at some of the install articles on SP3 and some of the complications people have experienced before doing a mass rollout.  Below are some options that might be helpful to you, but as always test on a few computers before rolling out to a bunch.  You might also want to check out this link for a explanation of the switches and arguments for installation. In my scripts below the switches I use will force all aplications closed, and do a backup of of the replaced files, and make a log.  A progress window is displayed during the install and at the end the computer is rebooted.  I found this to be the best option for rollouts as you can see the progress bar to estimate time remaining, and you do have a log and a backup if things go wrong.  I suggest you find the right mix of switches that work for you though.
Read the rest of this entry »

, , , ,

No Comments