Search The Web

Monday, February 18, 2013

AFP Virus Removal


For anyone dealing with an AFP virus which is going around – try this:
Download and burn this to a CD and/or onto a USB: http://www.malwarebytes.org/
If using a usb, ensure that the legacy USB mode is turned on in the BIOS to allow the system to read a USB –NOTE : USB 3 ports may not work with this.
Boot the machine into safe mode and then put the usb / cd in the drive and run the program
See if this fixes the issue
Apparently this is a pretty easy virus to get rid of, but one that’s causing headaches for a lot of AV companies.
Make sure you FORMAT ANY USB DRIVES after using in an infected machine 

Sunday, February 17, 2013

Windows 2008 Sever Core / Dos Networking Netsh Commands

Windows 2008 Sever Core / Dos Networking Netsh Commands

Some Common command line tools for Networking in Server 2008 and Dos:
  • to set IP in Dos / 2008 server core: netsh interface ipv4 set address name=2 source=static address= mask= gateway=
  • use netshell to verify the "name" of the interface: netsh interface ipv4 show interfaces
  • to set DNS server IP in server core: netsh interface ipv4 add dnsserver name=2 address= index=1
  • to name a server in server core: netsh renamecomputer %computername% /newname: /userd: /passwordd: /reboot:0  .  Note: the dd in passwordd is not a mistype, its the spelling that is used the reboot:0 will force the machine to reboot
  • to join a domain:
    netdom join %computername% /domain: /username: /passwordd /reboot:0

  • to disable firewall: netsh advfirewall set allprofiles state off

  • use ocsetup command to add / remove roles
  • to uninstall DNS: ocsetup DNS-Server-Core-Role /uninstall
  • to uninstall DHCP: ocsetup DHCPServercore /uninstall
  • to enable remote management so it can be be administered from remote computer:  
    1. WinRM quickconfig (on the remote comp)

Tuesday, February 12, 2013

Adding Network Printers via DOS and Batch File


Adding Network Printers via DOS and Batch File


pretty easy this one.

if the network printer is shared, the command you need is:

start \\servername\printershare

this can be used in batch files as well.

note: if you use the unc path, dos will probably complain in a batch file that the UNC was used and not a mapped dive letter. If you are having troubles with this then just use a net use command to map the drive first.