A couple of admins posted for questions for some future interviews that they had in the pipeline so I sent in an email about scripting. I'm currently proficient in batch file scripting but really struggled with Powershell scripting which is unfortunate as it looks like this is where admin scripting is going in 2008 with Windows 2008 and Exchange2007. So Steve kindly produced a 10 minute podcast that answered my questions about getting started in Powershell and that was all that was in it - a whole podcast produced for me (but I don't mind other people listening to it either)- Thanks very much Steve!
Recently in Scripting Category
Computer Performance has a useful tip on installing printers via a login script. One thing I noticed when I tried it was that it needed the descriptive name of the printer (in quotes if a space is used) instead of the sharename of the printer ie
rundll32 printui.dll,PrintUIEntry /in /q /n"\\server01\sharp al-1655cs"
I've toyed with nmap tonight to try and speed up some scripting across the lan scripts - currently I have a script that copies files across the lan, by checking each ip in turn to see if the machine is there and then copies it across - it's very laborious and slow - I started it at 6pm tonight and it's still running now at 10.24pm (It copies 3*100mb files across the lan).
I think by using nmap to ping sweep the lan and feed the results to a loop batch file it'll be much quicker.
The nmap and dos script is this :-
nmap -sP 192.168.98.0/24 -oG pclist.txt
for /F "skip=2 tokens=2" %%i in ('find "Status: Up" pclist.txt') do echo %%i is alive!
Just replace the echo bit with the command you want to run.
Looks like there is now some more incentive to start using the powershell that I installed on the notebook as there are two ide's to use - see Scott Hanselman's blog post for more details.
Although its not a good idea to do this, we have a requirement to set the passwords for users on a telnet application so that they never expire. This is because the telnet interface is the only interface they have with the server and therefore they don't have any way of changing their passwords. Security is controlled by another layer of usernames and passwords within the app so its not that much of an issue.
Anyway, I have a script that creates all the users for me - saves me having to enter all the fields correctly and also ensures that all the fields are entered in a uniform manner.
Until this morning, I'd not been able to set the password never expires option. However using netuser.exe, available from JSI Tip 570 you can do this with netuser username /pwdnexp:y
My Windows 2000 script to check whether the amount of disk used in a certain directory is greater than the amount of free space in a directory on Google Groups hit a snag this morning when someone had 35GB of data and over 100 GB of data available (previously they had <100GB.
I had to change the script so that it now reads as below. (I've out it within the extended entry so that it displays correctly all on one line which my css breaks on this page)
January 2008: Monthly Archives
Categories
- .Net (1)
- 404 pages (4)
- ADP (1)
- ADSL (5)
- AIX (7)
- ASP (4)
- ActiveSync
- Adsense (2)
- AmericanFootball (1)
- AntiSpyware (1)
- AntiVirus (18)
- Apache (5)
- Audible Books (3)
- Audio (4)
- AximElated (13)
- B2 (2)
- Backup (14)
- BackupExec (3)
- Backups (7)
- Banking (3)
- Belkin (2)
- Beta Testing (9)
- Blackberry (7)
- Blog2MT (5)
- Bloggar (2)
- Blogger (4)
- Blogging (52)
- BlueJackq (1)
- Bluetooth (4)
- Books (19)
- Buckeyes (1)
- Bugs (40)
- CSS (23)
- Car (6)
- Cats (6)
- Chat (6)
- Christian (3)
- Church (3)
- Cold (1)
- Computer Hardware (5)
- Concerts (9)
- Control Panel Backup (3)
- Creative Zen (3)
- Customers
- DNS (4)
- DST (6)
- DVD Burning (1)
- Defender (1)
- Deferred
- Dell (18)
- Directories (2)
- Disaster Recovery / Restores (13)
- Domain Names (4)
- Domain migration (1)
- Dreamhost (4)
- Eating Out (1)
- Email (38)
- England (3)
- Evernote (4)
- Exams (7)
- Excel (2)
- Exchange / Outlook (85)
- Extensions (10)
- Facebook (1)
- Films (26)
- Firefox (41)
- Firewalls (9)
- Fitness (1)
- Flash (3)
- Flash Mobs (8)
- Flickr (21)
- Food (10)
- FriendsInTech (9)
- Froderick (1)
- Funny Pages (100)
- GPS (20)
- Games (7)
- Garmin (3)
- Geoblogging (10)
- Geocaching (18)
- Geotagging (4)
- Ghost (2)
- Gmail (9)
- Gnomads (1)
- Google (38)
- GoogleMaps (5)
- Greasemonkey (19)
- Group Policy (2)
- Hacking (10)
- Hasweb (5)
- Holidays (13)
- Home repairs (1)
- Hosting (15)
- Hotfixes (4)
- Hyper-V (2)
- IBM (1)
- IIS (7)
- ISP's (2)
- Imported Blog (996)
- Installed Greasemonkey Scripts (13)
- Instant Messaging (2)
- Internet Explorer (14)
- Intuit (1)
- Itunes (2)
- Java (1)
- Job Hunting (3)
- KVM (1)
- Laptops (5)
- Library (4)
- Links (4)
- Linux (5)
- Live Communication Server (3)
- Lotus Notes (10)
- MBSA (1)
- MP3 (3)
- Mambo (1)
- Mandrake (6)
- Maps (3)
- Meme (1)
- Microsoft (86)
- Microsoft Max (1)
- MovableType (66)
- Moving to the states (28)
- Mozilla (14)
- Music (35)
- Networking (12)
- News (28)
- ODBC (1)
- Odeo (1)
- Office (20)
- OneCare (4)
- OneNote (4)
- Other Blogs (25)
- PHP (14)
- Patches (14)
- Perl (1)
- Photo Friday (2)
- Photos (77)
- Pipex (3)
- PocketPc (12)
- Podcast (8)
- Popfile (1)
- Powerpoint (1)
- Powershell (2)
- Powertoys (2)
- Privacy (1)
- Productivity (1)
- Programming (2)
- Qiq hosting (1)
- Quickbooks (1)
- RSS Feeds (31)
- RSS Readers (23)
- Rants & Complaints (30)
- Real Life (117)
- Remote desktop control (6)
- Resource Kits (4)
- Restaurants (3)
- RevDrives (2)
- Ricoh (1)
- SBS (15)
- SQL (4)
- Sage (2)
- Scenery (1)
- ScreenCaptures (1)
- Scripting (6)
- Search Engines (34)
- Security (85)
- Settling in (27)
- SharedView (1)
- Sharepoint (2)
- Shopping (45)
- Skype (9)
- Software Reviews (3)
- Spam (63)
- Sprint (1)
- Spyware (26)
- Support (4)
- Symantec (27)
- Synctoy (1)
- TV (9)
- Tater (1)
- Taxes (1)
- Technet (4)
- Telephones (37)
- Terminal Services (9)
- Theatre (5)
- Thunderbird (2)
- Timeslips (2)
- Toshiba (12)
- Training (7)
- Tutorials (1)
- UK Locations (2)
- Ubuntu (4)
- Uniform Server (4)
- Utilities (56)
- VOIP (4)
- VPN (7)
- Veritas (2)
- Virtual PC (9)
- Virus (69)
- Visio (1)
- Vista (8)
- Visual Basic (1)
- Visual Studio (1)
- Vmware (1)
- W.Bloggar (2)
- WHS (9)
- WRT54G (1)
- WSUS (28)
- Web Browsers (18)
- Webcams (1)
- Webservers (9)
- Windows 2000 (51)
- Windows 2003 (29)
- Windows 2008 (2)
- Windows NT (6)
- Windows Update (25)
- Windows XP (47)
- Wireless (25)
- Wordpress (13)
- Work (61)
- XPSP2 (16)
- Zoo (1)
- Zooomr (8)
- bookmarking (1)
- copiers (1)
- ie7 (3)
- ipod (1)
- passwords (1)
- pumpkin (1)
Monthly Archives
- May 2008 (11)
- April 2008 (6)
- March 2008 (4)
- February 2008 (11)
- January 2008 (14)
- December 2007 (17)
- November 2007 (26)
- October 2007 (10)
- September 2007 (11)
- August 2007 (12)
- July 2007 (11)
- June 2007 (18)
- May 2007 (19)
- April 2007 (15)
- March 2007 (28)
- February 2007 (26)
- January 2007 (14)
- December 2006 (10)
- November 2006 (13)
- October 2006 (16)
- September 2006 (15)
- August 2006 (24)
- July 2006 (24)
- June 2006 (32)
- May 2006 (19)
- April 2006 (22)
- March 2006 (29)
- February 2006 (30)
- January 2006 (23)
- December 2005 (20)
- November 2005 (35)
- October 2005 (41)
- September 2005 (39)
- August 2005 (63)
- July 2005 (65)
- June 2005 (52)
- May 2005 (30)
- April 2005 (34)
- March 2005 (50)
- February 2005 (57)
- January 2005 (54)
- December 2004 (21)
- November 2004 (33)
- October 2004 (41)
- September 2004 (33)
- August 2004 (46)
- July 2004 (35)
- June 2004 (25)
- May 2004 (37)
- April 2004 (38)
- March 2004 (47)
- February 2004 (58)
- January 2004 (88)
- December 2003 (69)
- November 2003 (65)
- October 2003 (68)
- September 2003 (78)
- August 2003 (129)
- July 2003 (123)
- June 2003 (69)
- May 2003 (78)
- April 2003 (67)
- March 2003 (76)
- February 2003 (77)
- January 2003 (94)
- December 2002 (39)
- November 2002 (43)
- October 2002 (74)
- September 2002 (123)
- August 2002 (70)
- July 2002 (56)
- June 2002 (66)
- May 2002 (91)
- April 2002 (27)
- March 2002 (33)
Pages
Search
About this Archive
This page is a archive of recent entries in the Scripting category.
ScreenCaptures is the previous category.
Search Engines is the next category.
Find recent content on the main index or look in the archives to find all content.
