Some perl module notes
upgrade modules :
#perl -MCPAN -e ‘CPAN::Shell->install(CPAN::Shell->r)’
create bundle:
#perl -MCPAN -e shell
cpan>autobundle
Install bundle:
cpan>install Bundle::Snapshot_2003_10_01_00
How to move a dhcp scope from one windows 2003 server to another.
1. Export SCOPES from original server ( scopes 10.1.1.1 and 10.2.2.2 )
netsh dhcp server export scopes.txt 10.1.1.1 and 10.2.2.2
2. Import scopes on new server
netsh dhcp server import scopes.txt all
3. Change DHCP scope options
for %i in (10.1.1.1 10.2.2.2 ) do netsh dhcp server \\servername scope %i set optionvalue 006 IPADDRESS new_dns_ip new_dns2_ip ( DNS )
for %i in (10.1.1.1 10.2.2.2 ) do netsh dhcp server \\servername scope %i set optionvalue 044 IPADDRESS new_wins_ip new_wins2_ip ( WINS )
4. Disable scopes on old server
for %i in (10.1.1.1 10.2.2.2 ) do netsh dhcp server \\servername scope set state 0
5. Enable scopes on new server
for %i in (10.1.1.1 10.2.2.2 ) do netsh dhcp server \\servername scope set state 0
6. Delete scopes on old server ( BACKUP FIRST !!! )
for %i in (10.1.1.1 10.2.2.2 ) do netsh dhcp server \\servername delete scope %i
Sometimes , the mouse is the hardware item you want to install….
here’s how to get to those control panel items via the “run” prompt
Read more…
1. fetch ftp://elsie.nci.nih.gov/pub/tzdata2007a.tar.gz
2. mkdir timezone && cd timezone && tar zxvf ../tzdata2007a.tar.gz
3. sudo tar cf /usr/share/zoneinfo.tar /usr/share/zoneinfo
4. sudo zic northamerica ( or whatever timezone you are intrested in )
5. zdump -v /usr/share/zoneinfo/America/New_York | grep 2007
Needed to find what service account are being used by the scheduled tasks o my servers and came up with the following command line:
for /F %i in (Servers.txt) do SCHTASKS /query /v /FO CSV /nh /s %i >> tasks.csv