July 17th, 2010
I was given the task to rewrite the login script for a company, they had 4 sites and about 20 login scripts for various purposes.
So I wrote a general one which took care of all the general stuff.
You may look at my earlier post about an inventory script, because this script will use that one.
Read the rest of this entry »
Tags: loginscript, Winbatch
Posted in
Scripts, Winbatch, Windows |
No Comments »
March 19th, 2010
I was recently asked to inventory approx 200 client computers of what programs they had installed, the specifications (cpu/ram/hdd) etc. So I was being lazy as most IT-techs are and wrote a script that I later on implemented into their usual login script.
It creates a simple .txt-file on a pre-mapped network drive and appends new batch runs into the same file.
After a successfull inventory run, the script creates a empty file (flag.txt) in the global var %appdata% where the current logged in user allways has write access. And the next time the script runs, it will check if the file flag.txt exists and exit if it does.
As I wrote, this script can be used together with a login script.
start \\servername\full_unc_path\inventory.bat
Read the rest of this entry »
Tags: inventory, login script, script
Posted in
Winbatch |
No Comments »
January 5th, 2010
So I work with many servers and many customers. Usually I had to write a new backup script for every new customer and server. Therefore I figured I might as well just write a template that I can copy/paste everytime I have to implement a robocopy backup script. So here goes.
Read the rest of this entry »
Tags: backup, robocopy, script, Winbatch
Posted in
Winbatch |
1 Comment »
December 23rd, 2009
I’ve already mentioned I work with many customers and servers. Everytime I install a new server that hosts printers I have to handwrite a loginscript that connects/maps the printers on the clients. So I made a template for that as well. There is only a few variables needed to change for it to rock. Check it out.
Read the rest of this entry »
Tags: loginscript, map printer, printers, script
Posted in
Winbatch |
No Comments »
September 17th, 2009
I had a scenario where I wanted to see what was on the network at a location.
So I figured I’d just ping them all, man was this a pain or what! So I wrote a script for it instead. :)
And yes, I know there is alot of IP-scanners out there. But what hacker would I be if I used someone elses programs? I wanted my results in my own custom preferences.
The script was developed further on and now includes hostname lookup and logging to file with identification tags of the current place.
The script will ask all the necessary questions. Its quite useful. Check it out!
Read the rest of this entry »
Posted in
Winbatch |
No Comments »