Navigation

6/07/2017

IP printing script - Windows





Want to run BAT file to install IP printer on laptop:


CLS
@ECHO off

SET varIP=192.168.0.200
SET varDriver=HP Color LaserJet CP2020 Series PCL 6
SET varDriverFolder=\\Server\\Software\\Hardware\\Drivers\\Printers\\HP CP2025DN\\
SET varDriverFile=\\Server\\Software\\Hardware\\Drivers\\Printers\\HP CP2025DN\\hppcp610.inf
SET varName=Reception
SET varLocation=Reception

REM "Deleting TCP/IP port"
REM CSCRIPT /nologo %windir%\system32\prnport.vbs -d -r IP_%varIP%

REM "Creating TCP/IP port"
CSCRIPT /nologo %windir%\system32\prnport.vbs -a -r IP_%varIP% -o raw -n 9100 -h %varIP%

CLS
REM "Installation message"
@ECHO.
@ECHO The %varLocation% printer is currently being installed.
@ECHO.
@ECHO Please do not close this window.
@ECHO.
@ECHO Once the installation is complete this Setup window will exit.
@ECHO.

REM "Driver installation"
CSCRIPT /nologo %windir%\system32\prndrvr.vbs -a -m "%varDriver%" -h "%varDriverFolder%" -i "%varDriverFile%"  
CLS

REM "Printer deletion"
@ECHO.
@ECHO Completing installation.
CSCRIPT /nologo %windir%\system32\prnmngr.vbs -d -p "%varName%" 
CLS

REM "Printer installation"
@ECHO.
@ECHO Completing installation.
CSCRIPT /nologo %windir%\system32\prnmngr.vbs -a -p "%varName%" -m "%varDriver%" -r "IP_%varIP%"
CLS

REM "Location configuration"
@ECHO.
@ECHO Completing installation.
CSCRIPT /nologo %windir%\system32\prncnfg.vbs -t -p "%varName%" -l "%varLocation%"
CLS
 
 
 
 
https://community.spiceworks.com/ 

6/01/2017

Word: goto page number




Word allows you to move the insertion point to any page in your document by using the Go To command. To take advantage of this feature, follow these steps:
  1. Choose the Go To option from the Edit menu, or simply press F5. Word displays the Go To tab of the Find and Replace dialog box. (See Figure 1.)
  2. Figure 1. The Go To tab of the Find and Replace dialog box.
  3. On the left side of the dialog box, make sure that you indicate you want to go to a page (this should be the default choice).
  4. Enter the page number to which you want to move.
  5. Click on Go To, or press Enter.


word.tips.net

5/18/2017

IIS: restoring IUSR_computername


On IIS with ASP, got the following error:  Active Server Pages error 'ASP 0115'

Looked like permissions issue with following accounts:  IUSR_computername and IWAM_computername

To recreate these accounts, did these steps:

Click Start, and then click Run.
  1. Type regedit, and then click OK.
  2. Locate the following registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp
  3. Right-click InetStp, point to
    New, and then click DWORD Value.
  4. Type
    DisableUserAccountRestore. Do not change the default value.
  5. Quit Registry Editor.
  6. Click Start, and then click Run.
  7. Type cmd, and then click OK.
  8. At the command prompt, type iisreset, and then press ENTER

support.microsoft.com

5/16/2017

auto login for Putty telnet

We use Putty software to telnet into a linux server, to setup autologin, create BAT file with following commands:


@echo off
putty -load "host" -l username -pw password


From stackoverflow.com

Also take a look at Putty tips & tricks

4/25/2017

HP Officejet 8600 scanner with horizontal lines

HP Officejet 8600 was giving horizontal, colored lines on scanning (printing was fine)

Need to re-calibrate by un-plugging with power on, and waiting 30 seconds before plugging back in:





4/07/2017

video chat software: Appear in

My library has started using  Appear in for video chatting, it as apps for phones, and easy webpage interface:  https://appear.in/

  • No registration or downloads
    Guests won’t have to register to join. Just send them the room link to join in the browser.
  • Group video conversations
    You can have video conversations with up to 8 people at once.
  • Simple screensharing
    Want to share your screen to present something? Of course you can!



3/21/2017

globally remove hyperlinks in Word document

Need to remove all the hyperlinks in a Word doc:

How do I remove a hyperlink without losing the display text or image?

To remove a single hyperlink without losing the display text or image, right-click the hyperlink, and then click Remove Hyperlink.

To remove all hyperlinks in a document, press CTRL+A to select the entire document and then press CTRL+SHIFT+F9.

Note: Performing this operation converts all fields, not just hyperlinks, to plain text.


https://support.microsoft.com/en-us/help/291182/frequently-asked-questions-about-hyperlinks-in-word

3/14/2017

Turn off hyperlink creation in Word



To turn off automatic hyperlinks, follow these steps,:
  • In Microsoft Office Word 2010and 2013, follow these steps:  
    1. On the File menu, click Options.
    2. Click Proofing, and then click AutoCorrect Options.
    3. On the AutoFormat as you type tab and on the AutoFormat tab, click to clear the Internet and network paths with hyperlinks check box, and then click OK.
    4. Click OK to close the Word Options dialog box.


https://support.microsoft.com/en-us/help/291182/frequently-asked-questions-about-hyperlinks-in-word

3/06/2017

Using iMac as monitor for external computer

To use an iMac just as a monitor for another computer:


If you have an iMac made in mid-2011 or later, then one thing you can do with it is to use it as an external monitor. Similar to Target Disk mode, where one Mac's internal hard drives can be mounted as external drives via FireWire or Thunderbolt to another system,

Target Display mode allows an iMac's display to be captured and used by a second Mac.

While Target Disk mode requires you to restart the Mac, Target Display mode can be invoked from within OS X.

To do this, first check the model of your iMac to ensure it was made in 2011 or later, and then simply press Command-F2. Note that on most Macs, the F-keys are assigned to a system function by default, so you will either have to revert this in the Keyboard system preferences, or hold the "Fn" key in addition to the Command key before tapping F2.
When you press this hotkey, the system will remain running, but the display will now be accessible through the Thunderbolt connection of the iMac.

Tip
  • If you have an aluminum Apple keyboard connected to your PC, you can toggle your iMac between displaying the video output of the PC and its own video output by pressing the "Command + F2" keys.

https://www.cnet.com/how-to/how-to-use-your-imac-as-a-monitor/

3/02/2017

Sierra console output

To get error messages from Sierra client, open the  iiirunner.lax   file in notepad, and edit the section below so that output goes to CONSOLE



#   LAX.STDOUT.REDIRECT
#   -------------------
#   leave blank for no output, "console" to send to a console window,
#   and any path to a file to save to the file 
 
lax.stdout.redirect=console

2/17/2017

javascript search box

Mark.js is a text highlighter written in JavaScript. It can be used to dynamically mark search terms or custom regular expressions and offers you built-in options like diacritics support, separate word search, custom synonyms, iframes support, custom filters, accuracy definition, custom element, custom class name and more.

https://markjs.io/     Examples

Here is a version that will allow you to jump to matching text   

1/23/2017

Windows 10 Search Bar

If the search bar on Taskbar has been hidden:


1. Right on the task bar and select Search,
2. Click on Show search bar.

12/19/2016

autologin Windows 7 on domain computer

From ITsupportguides


This will allow you to do auto login via a domain or local account.


  1. Open the registry editor (regedit)
  2. Navigiate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  3. Open the ‘AutoAdminLogon’ key and change it’s value to “1”
  4. MSWindows7-AutoLogonDomain2
  5. Open the ‘DefaultDomainName’ key and set the value to your domain name (or the computers name if using a local account)
  6. Open the ‘DefaultUserName’ key and set the value to the user name for the auto logon
  7. Create a new STRING (REG_SZ) value called ‘DefaultPassword’ and set the value to the user account password.

11/26/2016

External Drives and Apple OS

External NTFS drives will be read only on Apple OS, to get write access:


Launch a terminal (Applications > Utilities > Terminal)
Type the following command into the terminal to open the /etc/fstab for editing in the nano text editor:
sudo nano /etc/fstab
Add the following line to nano, replacing “NAME” with the label of your NTFS drive:
LABEL=NAME none ntfs rw,auto,nobrowse
Press Ctrl+O to save the file after you’re done, and then press Ctrl+X to close nano.






Seagate has software that will make their external hard drives read/write


11/18/2016

RAM tools: CPU Z and memtest86 freeware

To look at RAM and CPU details   http://www.cpuid.com/softwares/cpu-z.html

To test RAM for errors (older than Win 7)  memtext86    http://www.memtest86.com/

With Windows 7 and above, tool is included under Control Panel, Administrative tools:


 

11/04/2016

Connecting Android to Apple OS

To connect android smartphones to Apple laptop use tool from Android.com



  1. Download the app.
  2. Open androidfiletransfer.dmg.
  3. Drag Android File Transfer to Applications.
  4. Use the USB cable that came with your Android device and connect it to your Mac.
  5. Double click Android File Transfer.
  6. Browse the files and folders on your Android device and copy files up to 4GB.

10/27/2016

mailto links in Firefox

Q. When I click an email address link on a web page to send a new message on my PC, Firefox tries to open the separate mail program I never use, instead of switching to the Gmail page I have open in another tab and creating the new message there. Can I fix this?



A. Firefox looks for the computer’s default mail application when you click a “mailto” link on a webpage or email message. If you find the program is opening Windows Mail, Apple Mail, Outlook, Thunderbird or another stand-alone mail program instead of the mail service you use through your browser (like Gmail or Yahoo Mail), you just have to change a Firefox setting.
To change the default mail program Firefox opens, click the three-lined Menu button in the top-right corner of the browser window and select Options (Windows) or Preferences (Mac). On the left side of the next screen, click Applications. In the Content Type list in the middle of the screen, scroll down and select “mailto” and in the Actions drop-down menu next to it, choose Gmail. The next time you click an address to compose a note, Firefox should pop open a New Message form in your Gmail window.
Google Chrome has its own setting you can adjust. If your browser’s settings do not give you the option to choose a web mail service as your default mail program, a browser add-on might work. For example, the Google Toolbar extension for Microsoft’s Internet Explorer browser allows you to open “mailto” links with Gmail. A free extension for the Chrome browser called Mailto: for Gmail is another way to pop open a fresh Gmail message when you click an address link.


http://www.nytimes.com/2016/10/28/technology/personaltech/make-firefox-open-gmail-to-send-a-message.html

10/06/2016

Modifiying Ricoh Copier home screen

Need to remove copy function from a public Ricoh Aficio 301, here are steps:

  1. Start Web Image Monitor.
  2. For details, see "Using Web Image Monitor", Connecting the Machine/ System Settings.
  3. Log in to Web Image Monitor as an administrator.
  4. Point to [Device Management], and then click [Device Home Management].
  5. Click [Edit Icons].
  6. Drag the icon that you want to delete, and then drop it in the trash box on the left of the screen.
  7. Click [OK] three times.
 
 
From Ricoh