Scripts

Archive for Scripts

Cisco Router 3G 4G Modem Firmware upgrade

Initiate a modem firmware upgrade using the microcode reload command. Ex :
Router# microcode reload cellular 0
lte modem-provision flash:<directory>?
Router# microcode reload cellular 0 0 modem-provision flash: TELSTRA_MC7304_05.05.58.00
Reload microcode? [confirm]
Log status of firmware download in router flash?[confirm]
Firmware download status will be logged in usbflash0:fwlogfile
Microcode Reload Process launched for hwic slot=0; hw type=0x721
Router#
*****************************************************
The interface will be Shut Down for Firmware Upgrade
This will terminate any active data connections.
*****************************************************
Sending cmd=ifconfig eth0 20.20.20.2 up to Linux
*****************************************************
Modem will be upgraded!
Upgrade process will take up to 15 minutes. During
this time the modem will be unusable.
Please do not remove power or reload the router during
the upgrade process.
*****************************************************
*Mar 17 10:02:50.971 PST: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up
*Mar 17 10:02:51.971 PST: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed
state to up
*Mar 17 10:02:52.959 PST: %LINK-5-CHANGED: Interface Cellular0/0/0, changed state to administratively down
*Mar 17 10:02:52.959 PST: %LINK-5-CHANGED: Interface Cellular0/0/1, changed state to administratively down
*Mar 17 10:02:52.959 PST: %LINK-5-CHANGED: Interface Cellular0/0/3, changed state to administratively down
Sending F/W[MC7304_1102029_9903299_05.05.58.00_00_TELSTRA_005.010_000.spk] to the card [34841143bytes]:
Firmware file: MC7304_1102029_9903299_05.05.58.00_00_TELSTRA_005.010_000.spk sent to the card
The current modem F/W App Version: SWI9X15C_05.05.58.00 r27038 carmd-fwbuild1 2015/03/04 21:30:23
The current modem F/W Boot Version: SWI9X15C_05.05.58.00 r27038 carmd-fwbuild1 2015/03/04 18:38:46
The current modem Carrier String: 1
The current modem Device ID: MC7304
The current modem Package Identifier: 1102029_9903299_MC7304_05.05.53.00_00_Cisco_005.009_000
The current modem SKU ID: 1102029
Firmware Upgrade is in Progress…
*Mar 17 10:03:33.683 PST: %CELLWAN-2-MODEM_DOWN: Modem in HWIC slot 0/0 is DOWN
*Mar 17 10:04:06.443 PST: %CELLWAN-2-MODEM_DOWN: Modem in HWIC slot 0/0 is DOWN
F/W Upgrade: Firmware Upgrade has Completed Successfully
*Mar 17 10:06:10.243 PST: %CELLWAN-2-MODEM_UP: Modem in HWIC slot 0/0 is now UP
*Mar 17 10:07:00.443 PST: %CELLWAN-2-MODEM_RADIO: Cellular0/0/0 Modem radio has been turned on
After the firmware upgrade is complete, reload the router. Some modem types require multiple firmware upgrades,
please complete all the firmware upgrades before reloading the router.
HIDDEN COMAND(I got this command from TAC engineer:
Router#conf t
Router#service internal
Router#Test cellular 0 modem-power-cycle

I hope that i will help someone.

Posted in: Blog, Scripts

Leave a Comment (0) →

Xerox Service Mode

Press and hold the 0 key for 10 seconds then simultaneously press START.
You will then be asked to enter a code. Type “6789” and Enter.

That will put you into UI Diagnostics. This will work for both machines and all Xerox machines that use the Connect Key Software.

Most will take you directly into the diagnostics screen. Some models you will be required to do the following after entering the code:

Press the Machine Status button.
Select the Tools Tab.
Scroll down to Maintenance / Diagnostics.

Posted in: Blog, Scripts

Leave a Comment (0) →

Webdav Asking for Password

  1. Click Start, type regedit in the Start Search box, and then press ENTER.
  2. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters
  3. On the Edit menu, point to New, and then click Multi-String Value.
  4. Type AuthForwardServerList, and then press ENTER.
  5. On the Edit menu, click Modify.
  6. In the Value data box, type the URL of the server that hosts the Web share, and then click OK.Note You can also type a list of URLs in the Value data box. For more information, see the “Sample URL list” section in this article.
  7. Exit Registry Editor.

Here are some sample URLS you might use for reference:

https://*.Contoso.com
http://*.dns.live.com
 *.microsoft.com
https://172.169.4.6

Posted in: Blog, Scripts

Leave a Comment (0) →

Exchange 2010 The mailbox dumpster size exceeds the target quota

Moving some customers mail boxes around i kept getting a error about dumpster size exceeding the target quota.I couldn’t find much info on it. But this seems to fix it.
1.) Give your account rights to open the mailbox.
2.) Go to control panel > mail > profiles > ask for a profile each time outlook opens
3.) Open Outlook > New profile > input appropriate info for mailbox and users alias > UNCHECK “cached exchange mode” > open the users mailbox once w/ Outlook, then close Outlook.
4.) Open MFCMapi (if Outlook is x64, then use x64 of MFCMapi)
5.) ok > Session > Logon and display store table
6.) Select the profile for the user you added.
7.) Double click “mailbox – user”
8.) Expand “Root Container” > right click on “Recoverable Items” and select > open contents table
9.) Give it a min to enumerate all items
10.) Select any unwanted items and right click “delete message”
11.) You can also expand recoverable items and then highlight purge or deletions and open the contents table for those as well.
12.) Then close windows until you get the original one and logoff.
Be careful with MFCMapi as it can cause serious damage to a mailbox.
Source https://social.technet.microsoft.com/Forums/exchange/en-US/0afd1d0e-7fe1-461f-a6f2-40908554852d/exchange-2010-purge-items-in-recover-deleted-items?forum=exchange2010

Posted in: Blog, Scripts

Leave a Comment (0) →

Windows 10 Bootrec – the requested system device cannot be found

After cloning a SSD for a customer it wouldn’t boot after running the normal

Bootrec /fixmbr
Bootrec /fixboot
Bootrec /scanos
Bootrec /rebuildbcd
But the Bootrec /rebuildbcd wouldn’t work with a error  “The requested system device cannot be found”

after spending time looking in to this issue i found a  forum post that fixed it right up.

Firstly, boot from a UEFI Windows 8/10 recovery disk (CD/DVD/USB) – I found that the automated recovery process didn’t find the correct Windows partition, nor when I managed to add it to BCD settings would it make it reliably bootable e.g. using BCDEDIT I got it to find and launch the Windows partition but it refused to cold boot or would not “keep” the settings after a 2nd reboot or power off.

Go into the Advanced options and run the Command Prompt.

Enter diskpart to use the DiskPart tool to ensure you have all the right partitions and to identify your EFI partition – the key thing here is that your EFI partition is formatted as FAT32:

DISKPART> sel disk 0

Disk 0 is now the selected disk.

DISKPART> list vol

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0     E                       DVD-ROM         0 B  No Media
  Volume 1     C                NTFS   Partition    195 GB  Healthy    Boot
  Volume 2         WINRE        NTFS   Partition    400 MB  Healthy    Hidden
  Volume 3                      FAT32  Partition    260 MB  Healthy    System

Then assign a drive letter to the EFI partition:

DISKPART> sel vol 3

Volume 3 is the selected volume.

DISKPART> assign letter=b:

DiskPart successfully assigned the drive letter or mount point.

Exit DiskPart tool by entering exit and at the command prompt run the following:

cd /d b:\EFI\Microsoft\Boot\

bootrec /fixboot

Delete or rename the BCD file:

ren BCD BCD.bak

Use bcdboot.exe to recreate BCD store:

bcdboot c:\Windows /l en-gb /s b: /f ALL

The /f ALL parameter updates the BIOS settings including UEFI firmware/NVRAM, /l en-gb is to localise for UK/GB locale. The localisation defaults to US English, or use en-US.

Reboot and cross your fingers.

Source http://superuser.com/questions/460762/how-can-i-repair-the-windows-8-efi-bootloader

 

Posted in: Blog, Scripts

Leave a Comment (219) →
Page 1 of 4 1234