20gnd + sysadmin   981

Batch -change month # to letters
First off, you can save yourself all those for statements. Since NT has a built-in DATE var, you can simply use substrings to get the parts you need.
In my case the DATE var is:
Sat 29-04-2006
so doing this:
set YYYYMMDD=%date:~10,4%%date:~7,2%%date:~4,2%
will set a new var called YYYYMMDD
BTW, it's not usually a good idea to alter a built-in var, like DATE.
Moving right along, I guess the simplest way to change 'numeric' month to 'named' month is with a chunk of code like this:
#####
if %MM%==01 set MM=Jan
if %MM%==02 set MM=Feb
if %MM%==03 set MM=Mar
if %MM%==04 set MM=Apr
and so on
#####

My solution:

set __MONTH.01=Jan
set __MONTH.02=Feb
set __MONTH.03=Mar
set __MONTH.04=Apr
set __MONTH.05=May
set __MONTH.06=Jun
set __MONTH.07=Jul
set __MONTH.08=Aug
set __MONTH.09=Sep
set __MONTH.10=Oct
set __MONTH.11=Nov
set __MONTH.12=Dec

REM See also:
REM http://ings.ca/jim/2008/02/10/adding-timestamps-in-a-dos-batch-file/
set cur_yyyy=%date:~10,4%
set cur_mm=%date:~4,2%

for /f "tokens=2* delims=.= " %%a in ('set __MONTH.') do (
if %%a == %cur_mm% set cur_mmm=%%b
)

set monthfolder="%cur_yyyy%-%cur_mm% (%cur_mmm%)"
if not exist %monthfolder% mkdir %monthfolder%
batchfile  batchprogramming  dos  datetime  scripting  tipsandtricks  dammitbrain  sysadmin  batch  programming  reference  solution 
2 days ago by 20gnd
WGA Removal tool for XP Home (Retail)
There are two Windows Genuine Advantage components: KB892130 and KB905474

1) KB892130 - Windows Genuine Advantage Validation Tool - This is an ActiveX control that is a Required install to be able to use the Windows Update site as well as to download most files from the Microsoft Download Center. More info on KB892130: http://support.microsoft.com/kb/892130/en-us

2) KB905474 - Windows Genuine Advantage Notification - This is an application that is available from Windows Update, Microsoft Download Center as well as thru the Automatic Updates service. More info on KB905474: http://support.microsoft.com/kb/905474/en-us


I now believe you are referring to the Validation Tool (KB892130) and I was referring to Notification (KB905474).

Windows Genuine Advantage Validation Tool (KB892130): The Validation Tool (KB892130) does not have an install screen (as most ActiveX controls do not). The Validation Tool (KB892130) is a Required install to use the Windows Update site (as is the "WUEebControl Class" (wuweb.dll) ActiveX control, that also installs without a install screen or a EULA). The First time the user goes to the Windows Update site, On the page after the "Checking for Updates (with the green moving bar) the user is presented a screen that displays the below information:
wga  windows  annoyance  sysadmin  activation  installation 
13 days ago by 20gnd
Langa Letter: How To Save An Hour (Or More) On XP Installs
Prepatch your XP Setup CD once, and never have to install SP2 again. Fred Langa walks you through a 16-step process.
slipstream  installation  windows  winxp  servicepack  sysadmin  tipsandtricks  systemrecovery 
13 days ago by 20gnd
Langa Letter: XP's Little-Known 'Rebuild' Command
There's an easy fix for "Missing HAL.DLL," "Invalid Boot.Ini," and several other fatal startup errors, Fred Langa says.

* Boot from your XP Setup CD and enter the Recovery Console
* Run "Attrib -H -R -S" on the C:Boot.ini file
* Delete the C:Boot.ini file
* Run "Bootcfg /Rebuild"
* Run Fixboot
recoveryconsole  disasterrecovery  windows  systemrecovery  sysadmin  installation  tipsandtricks 
13 days ago by 20gnd
Delete files by date/age
A solution to removing files older than a specified date without using FORE/FORFILES.EXE.
windows  solution  batchprogramming  programming  scripting  sysadmin 
14 days ago by 20gnd
routing - Share the same subnet between Internal network and VPN Clients - Server Fault
The Real Answer: change the subnets so they're not the same (e.g., make the internal company LAN a class A that home network devices will never use)
routing  networking  subnet  vpn  pptp  sysadmin  remoteaccess 
20 days ago by 20gnd
Changes in RRAS require IPSEC Services Restart??? - Virtual Dr Forums-Computer Tech Support
net stop RemoteAccess
net stop PolicyAgent
net start PolicyAgent ------ Very important that IPSEC restarts before RRAS
net start RemoteAccess
vpn  windows  sysadmin  rras  services  tipsandtricks  remoteaccess  networking  pptp  l2tp 
20 days ago by 20gnd
How to configure an L2TP/IPsec server behind a NAT-T device in Windows Vista and in Windows Server 2008
How to configure an L2TP/IPsec server behind a NAT-T device in Windows Vista and in Windows Server 2008
windows  sysadmin  nat-t  nat  l2tp  ipset  networking  vpn  vista  server2008 
4 weeks ago by 20gnd
PPTP Connection, where is the log file stored when "Enable Logging" is selected?
This is an old question, but since it was never answered satisfactorily, here's a real answer.

The logs for the built-in VPN Client are viewable via Computer Management.

Go to Start > Right click "Computer", Choose "Manage".

Click "Event Viewer", Click "Windows Logs", Click "Application"

In the right-hand pane, look for entries from Source "RasClient".
vpn  windows  pptp  errorlog  troubleshooting  networking  solution  sysadmin 
5 weeks ago by 20gnd
avgidseh.sys *SOLVED* AVG crash PC blue screen on reboot
I thought I had this problem, but it actually turned out to be some good old-fashioned NTFS filesystem corruption that was causing a STOP 0x00000024 BSOD.
windows  sysadmin  troubleshooting  bsod  antivirus  avg 
5 weeks ago by 20gnd
Disable auto-restart after BSOD from RC - TechSpot Forums
Actually, you can disable this from the F8 screen during boot-up of XP and later.
windows  sortofsolution  sysadmin  bsod  tipsandtricks 
5 weeks ago by 20gnd
« earlier      

related tags

127.0.0.1  accountdelegation  acf  acfanimalsredesign2011  acl  activation  activedirectory  ad  addon  addressbook  adoptions  advice  advocacy  ampp  android  annoyance  annoyances  antispyware  antivirus  apache  apc  app  appdata  applicationdata  apt  apt-cacher  apt-cacher-ng  apt-get  apt-pinning  aptforwindows  apt_preferences  archive  arppoisoning  article  asaservice  askshadowman  audio  auditing  authentication  authorized_keys  autohotkey  automatedinstallation  automation  autostart  avahi  avast  avg  backbackup  backup  backupandrecovery  backups  badblocks  badidea  bandwidthmonitoring  baremetalrecovery  bartpe  bash  batch  batchfile  batchprogr  batchprogramming  batchuploader  bcd  bcdedit  bind  blocklist  blog  blogs  boot  bootable  bootablecd  bootdisk  bootloader  bootmanager  bootrec.exe  bootsector  broadband  bruteforce  bsod  bug  bundle  by:20gnd  cache  calendar  cat  cdburning  cdrecord  cert  certificateauthority  chm  chmhelp  chrome  chrootjail  clamav  cleanup  cli  clonevm  cloudcomputing  cmd.exe  cms  cobalt  code  collaboration  collection  colorxterm  column  comdlg32  commandline  commandprompt  communication  comparison  comparisonchart  concise  config  configfile  confused  conifg  console  consumer  copyright  cpan  cpanel  cracking  cron  crossplatform  cryptography  cups  customdebs  Customization  cwrsync  cygwin  dammitbrain  database  dataconversion  dataintegrity  datarecovery  datawiping  date  datemanipulation  datetime  dba  dd  ddns  ddrescue  deadprojects  debian  debianinstaller  debugging  deployment  designinspiration  desktopcustomization  devel  dhcp  diagnosis  diff  directaccess  directorycomparison  disasterrecovery  discussion  disk  diskcloning  diskimaging  diskmanagement  diskutil  distro  dns  dnschanger  dnsmasq  dnsserver  Documentation  dos  dotforward  downloads  driveimagexml  driveletters  drivers  drobo  dropbox  dualboot  dumpsec  duplicatefilefinder  duplicati  duplicity  dvd  eap  eap-mschapv2  easybcd  email  emailaliases  emailheaders  encryption  error  errorcodes  errorlog  esmtp  essential  exchange  exim  exploit  ext2  ext3  ext4  extension  eyecandy  faq  FaveUtils  favorites  fdisk  feedreader  filecomparison  fileextensions  filemanagement  filemanagment  filesharingprotocols  filesystem  filesystempermissions  filesystems  filtering  fink  firefox  firewall  flatfiledatabase  folklore  FontFreak  fordummies  forefiles.exe  forensic  forensics  forlater  for_acf  freenx  freesoftware  freestuff  freeware  from:twitter  fsutil  fuckina  fuckingvista  funfunfun  funny  fuser  gallery  gconf  Geek  gentoo  genuineadvantage  ghost  ghostalternatives  git  globaladdressbook  globaladdresslist  globalextensioninstall  gmail  gmailimaptimestampproblem  gnome  gnu  gnuparallel  godaddy  google  googleapps  googlechrome  googlegroups  googlesync  gpg  gpl  gpo  gre  grouppolicy  groupware  growisofs  grub  grub2  gtk  gui  guide  hack  hacker  hacking  hacks  hal  handy  harddisk  harddiskdrive  harddiskdrives  harddrive  hardlink  hardware  hax0r  heavywizardry  help  helpful  hfs  hiresconsole  homefolder  homenetwork  hostfile  hosting  hosts  hotfix  hotkeys  howto  HowTos  hp  hprecovery  html  html5  htmlhelp  humor  iesux  ihavethisproblem  iis  imap  importexport  init  initscript  inotify  installation  installer  integratedauthentication  interesting  internetexploder  intranet  intravet  ios  iphone  ipsec  ipset  iptables  IRC  iso  isostick  itsabouttime  itsupport  java  johntheripper  junction  KDE  keepass  kerberos  keychain  keymanagement  keysigning  kioskcomputer  kms  knoppix  l2tp  labcomputers  lamp  ldap  ldif  libpam_mount  library  licensemanagement  licensing  likeaptget  linkchecker  linode  linux  LinuxFrustrations  LinuxKillerApps  LinuxSecurity  list  lists  livecd  liveusb  lockdown  lockedfiles  logfile  logfiles  logging  loginscript  logrotate  lsof  ltsp  lvm  mac  mail  mailconversion  maildeliveryagent  maildir  mailfiltering  mailinglist  mailinglistmanager  mailinglistmanagers  mailinglists  mailman  mailserver  mailtransferagent  mailuseragent  mak  malware  management  mandatoryprofiles  mandatoryuserprofiles  manual  manuals  math  maybesolution  maybesolutions  mbr  mdadm  mdns  mediawiki  messaging  microsoft  microsoftt  migration  mkisofs  mlm  monitoring  mozilla  mozillaextensionbundles  mschap  mschapv2  msi  multiboot  multitail  multiuser  mutt  MuttAndSpamAssassinTricks  mxrecord  mysql  mystuff  N800  nagios  nas  nat  nat-t  nautilus  netbook  netsend  nettime  network  networkfilesharing  networking  networkmonitoring  networksecurity  news  nirsoft  nmap  nokia  nonfree  nosolution  nt4  ntbackup  ntfs  ntfsresize  ntlm  ntp  officeinternetconnectivity  offline  oneliner  oneliners  onlinefilesharing  OnlineRetailers  onlinestorage  opendns  openldap  opensource  openssl  OpenStandards  openvpn  optimization  orthodoxfilemanagers  osx  osxserver  outlook  ownca  owncloud  packagemanagement  pagefile  pam  parallel  parallelprocessing  paranoia  parity  passphrase  password  passwordless  passwordrecovery  patch  pdc  pdf  peap  pentesting  performance  perl  permission  permissions  phishing  photography  php  phpSysInfo  picasa  placesbar  plugin  plusaddressing  policy  pop  PortableApps  postfix  postgresql  postmaster  powershell  pptp  preseed  printer  printing  prism  privacy  processexplorer  procmail  productivity  programing  programming  projects  projectstowatch  publickey  puppet  pushinstall  putty  python  pywikipedia  qos  qt  questions  quickbooks  quickpar  quickreference  raid  raid5  rcs  rdc  rdiff-backup  rdp  readreceipts  readynas  RealLife  recovery  recoveryconsole  RecoveryTools  redhat  reference  refresh  regedit  registry  reinstall  remoteaccess  remoteadmin  remoteadministration  remoteassistance  remotedesktop  remoteexecution  removable  renamelist  repair  reparsepoint  replyto  repository  rescuecd  researchpublication  resourcekit  retrocomputing  roadrunner  roamingprofile  roamingprofiles  root  rootkit  roundcube  router  routing  rras  rsnapshot  rss  rsync  ruby  sam  samba  samplecode  samples  sasl  sbs  sbs2003  schedule  scheduling  screen  screencast  screensharing  screenshots  screenshottour  script  scripting  scripts  sdk  search  searchandindex  searchengine  securedeletion  secureerase  security  sed  server  server2003  server2008  service  servicepack  serviceproviders  services  setacl.exe  setupguide  sfc.exe  shadowcopy  share  sharecontacts  sharedaddressbook  sharedmailboxes  shell  shellenhancement  ShellGeek  shellprogramming  shellscripting  shouldhavebeenbuiltin  shouldvebeenbuiltin  sites  slackware  slipstream  smart  smarthost  smartmontools  smb  smtp  sniffing  software  softwaredeployment  SoftwareFreedom  softwareinstallation  softwareraid  solution  sortofsolution  sourcecodecontrol  spam  spamsucks  spanningmultipledvdbackups  spf  srvany  ssh  sshtunnelling  ssl  sso  startupscripts  stoperror  storage  straightup  strongswan  stupidbullshit  subinacl  subnet  sux  switch  symlink  symlinks  synback  synchronization  sysadmin  sysinternals  systemimaging  systemmanagement  systemmonitoring  systemrecovery  systemsmanagement  sysvinit  t1  techsupport  tehhumor  templates  terminal  terminalservices  tested  testing  testthis  textediting  thewaythingswere  thewindowsway  thisaffectsme  thunderbird  tightvnc  time  timeanddate  timeserver  timestamp  timesynchronization  tipsandricks  tipsandtricks  tipsantricks  tls  todo  tomato  tomcat  troubleshooting  tunnel  tunneling  turnkeylinux  tutorial  tweaks  twentygrand  ubuntu  ugh  undelete  undobutton  unix  unixhasthisbuiltin  unixtools  untrusted  update  updates  upload  ups  upstart  urlhandler  uselessuseofcat  usenet  userhelp  userprofile  utility  vbscript  vcard  vdi  versioncontrol  via:ifttt  video  viewer  viewpoint  vim  virtualbox  virtualization  virtualizationandemulation  vista  visualbasic  vnc  volumeactivation  vpn  vss  vulnerability  w32time  w32tm  watchafolder  WatchList  watchthisspace  web  webapp  webapps  WebCulture  webdevel  weblog  webmail  webmaster  webrunner  webservice  website  weird  wga  whither  whywindowssux  wifi  wiki  win7  win32  winbatch  winbind  windows  windows7  windowsauth  windowsdomain  windowsgenuineadvantage  windowshelp  windowsnt  windowsonly  windowssucks  windowssux  windowsucks  windowsupdate  windowsxp  wine  winhlp32  winmerge  winpe  winxp  wireless  wishlist  wizardlevel  wmic  wordpress  work  workcentre  workswithwine  wpa  x11  x86_64  x509  xampp  xauth  xdg  xerox  xexit  xmlrpc  xp  xtermcolors  yarrr  zeus 

Copy this bookmark:



description:


tags: