We had a recent issue with a new Blackberry Enterprise server with the Following Error showing in the Event Viwer

SRP connection down, ignore sending packets

First thing to test is the SRP Connection using blackberrys tool : BBSRPtest.exe. This is now found in the install files from Blackberry Setup ( so don’t remove! )

Running this proved the following error:

Registry key HKEY_LOCAL_MACHINE\Software\Research In Motion\BlackBerryRouter is
missing, trying HKEY_LOCAL_MACHINE\Software\Research In Motion\BlackBerry Enterp
rise Server\Dispatcher
Registry key HKEY_LOCAL_MACHINE\Software\Research In Motion\BlackBerry Enterpris
e Server\Dispatcher is missing

 

The new version of this software needs variables in the command line

 E.g. BBSRPtest.exe -host au.srp.blackberry.com 3101 ( or your BB server from below )

https://www.blackberry.com/SRPAddressLookup/

VN:F [1.9.22_1171]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

usbpowerexceededrAfter rolling out Citrix Receiver Version 4 on some new IBM machines ( M Series ) it down graded the milli amp value of the generica USB hub from the standard 500mA to 100mA

There is a registry value to force this back up to 100mA which is located in

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Hardware ID of USB Hub\Paramters

( Find the Hardware ID of the USB hub in hardware ID’s )

“ForcePortPower” Dword : 500

Unplug and replug in device

However this did not work. The issue seems to be with the CitrixReciever.exe installing USB drivers causing the issue on some machine which are not needed in XenApp ( only Xen Desktop )

To install CitrixReciever without the USB Drivers you can run with the following command :

CitrixReceiver.exe /includeSSON ADDLOCAL=ICA_Client,ReceiverInside,SSON,AM,SELFSERVICE,DesktopViewer,Flash

 

 

VN:F [1.9.22_1171]
Rating: 9.5/10 (2 votes cast)
VN:F [1.9.22_1171]
Rating: +2 (from 2 votes)

When trying to produce the list below , it exported the results fine in the PowerShell Window , however when I tried to export to CSV I got this value

System.Collections.ObjectModel.Collection’1[Micorosoft.Exchange.Management.MapiTasks.FolderAccessRight]

Looking at a user who also had this error below I replcated AccessRights with

@{Name=’AccessRights’;Expression={[string]::join(“;“, ($_.AccessRights))}}

Make sure it only has one square braket though!

Reference : http://www.experts-exchange.com/Programming/Languages/Scripting/Powershell/Q_27099740.html

 

VN:F [1.9.22_1171]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Modified from the tracked back URL , this goes through all mailbox’s on the Exchange server and export’s their Mailbox Access Perimissions to CSV Files inside C:\Export\ and also any extra folder permissions that have been assigned to any other folders :

(Blank Folder name means mailbox access! )

 

$Mailboxes = Get-Mailbox -ResultSize Unlimited
 
ForEach ($Mailbox in $Mailboxes) {
 
$MBXFolders = @() 
$MBXFoldersCorr = New-Object System.Collections.ArrayList 
$Permissions = @() 
$MBX_tocheck = "$Mailbox" $MBXFolders = Get-MailboxFolderStatistics 
$MBX_tocheck | select folderpath
 
$Permissions += Get-MailboxPermission -Identity "$Mailbox" | where {$_.user.tostring() -ne "NT AUTHORITY\SELF" -and $_.IsInherited -eq $false} |
 
Select User,@{Name='AccessRights';Expression={[string]::join(', ', $_.AccessRights)}}
 
foreach ($item in $MBXFolders) {  $temp = $item.FolderPath  $temp = $Temp.Replace("/","\")  $MBXFoldersCorr.Add($temp) | out-null } foreach ($item in $MBXFoldersCorr) { Try {  $MailboxFolder = $MBX_tocheck + ":" + $item  $Permissions += $(Get-MailboxFolderPermission $MailboxFolder -ErrorAction Stop | Select-Object FolderName,User,AccessRights | where {
 
($_.AccessRights -notcontains “None”)})  } Catch {
 
 Continue  } }
 
 $Permissions | Select FolderName,User,@{Name='AccessRights';Expression={[string]::join(";", ($_.AccessRights))}}  | export-csv -path "C:\Export\
 
$MBX_tocheck.csv"
 
}

 

Get list of Full Access Mailbox permissions 

Get-Mailbox | Get-MailboxPermission | where { ($_.AccessRights -eq "FullAccess") -and ($_.IsInherited -eq $false) -and -not ($_.User -like "NT AUTHORITY\SELF") } | ft @{Name="Identity";expression={($_.Identity -split "/")[-1]}}, User -AutoSize

For Office 365

$Mailboxes = Get-Mailbox -ResultSize Unlimited
 
ForEach ($Mailbox in $Mailboxes) {
 
Get-MailboxFolderPermission -identity $Mailbox.name | Where AccessRights -ne "None" |FL
 
}

Get all current Mailbox Forwards

Get-mailbox -ResultSize unlimited | select DisplayName,ForwardingAddress | where {$_.ForwardingAddress -ne $Null}

A cool feature to make this better , would be to email this report out to each user so they can see the permissions on their mailbox and alter themselves or speak to the helpdesk!

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Recently I had a word document which when being merged would display random images on random pages in the Footer. I used Office 2010 to remove all the Footer and Header however it still came up with them.

I then used the find and replace function to search for ^g ( Graphics ) pictures however these images wearn’t inline so it didn’t fine any.

Thanks to the below trackback I was able to run the below Macro to remove all images from the Document , Inline and Out!

Sub demo()

Dim oShp As Shape

Dim oIShp As InlineShape

For Each oShp In ActiveDocument.Shapes

oShp.Delete

Next

For Each oIShp In ActiveDocument.InlineShapes

oIShp.Delete

Next

End Sub

Can be added via , Tools , Macro, Macro’s. Add the following code and click the play button and if it asks run demo!

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Recently I rolled out an updated to Update the styles inside Word for Normal.dot. The update only updated the styles and did not change the autotext etc. After the update we wanted to check on a terminal server who had not been updated.

Open powershell and run the follinwg command

Get-ChildItem E:\RoamingProfilePath -Recurse | Where-Object {$_.LastWriteTime -lt “2012-06-23 00:00:00” -and $_.Name -eq “filename.dot“} | Export-Csc “C:\file.csv”

The excel sheet can be pruned for users via their profile path using the excel function

=SUBSTITUTE(SUBSTITUTE(B3,”E:\RoamingProfilePath“,””,1),”\AppData\Roaming\Microsoft\Templates”,””,1)

 

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

6281.ofc365_5F00_h_5F00_rgb_5F00_79A65196[1]Step 1. Ensure that your Operating System and Software are up to date.

  1. Ensure that the software and system you are running meet the minimum requirements for the service by consulting the Software Requirements located here.
  2. Run Windows Update to ensure that your software has the latest patches and feature updates.
  3. Open this link and install all the updates listed there for Outlook 2010: http://community.office365.com/en-us/wikis/manage/562.aspx

  4.  

     If that does not improve the situation, you can try installing this hotfix: http://support.microsoft.com/kb/2516474

Step 2. Repairing your profile may resolve your connection issue.


How do I repair my Outlook 2007 profile?

1.     In Outlook 2007, on the Tools menu, click Account Settings.

2.     In the Account Settings dialog box, on the E-mail tab, select your account, and then click Repair. Follow any prompts from the repair wizard.

3.     When the repair is done, restart Outlook 2007.

How do I repair my Outlook 2010 or Outlook 2013 profile?

1.     In Outlook 2010 (or Outlook 2013), on the File tab, click the arrow next to Account Settings, and then click Account Settings.

2.     In the Account Settings dialog box, on the E-mail tab, select your account, and then click Repair. Follow any prompts from the repair wizard.

3.     When the repair is done, restart Outlook 2010.

Step 3. Verifying Connectivity and Autodiscover settings.

If you have repaired your Outlook profile and are still experiencing issues, please follow the directions in this link to verify Autodiscover DNS settings and run the Remote Connectivity Analyzer.

If you are having trouble running the Remote Connectivity Analyzer, please respond to this email or call support for assistance, and use this Service Request when asked if this is a new or existing issue.

Step 4. Continuing Connectivity Problems

If you have completed the steps above, but are still experiencing connectivity issues with Microsoft Outlook, please reply to this email to receive further contact from a support agent, or contact support via the phone. If your case has already archived, you can re-activate it through the Microsoft Online Portal, respond to the case in email, or call in for assistance.

To find a phone number for your country or region, sign in to Office 365. On the Admin Overview page, on the left pane, under Support, click Overview. You can use this Service Request when asked if this is a new or existing issue.

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

windows-vista-chkdsk-screenshot-09[1]After installing the following Windows Update : KB2823324 , the computer reboots and will do a CHKDSK on startup. Microsoft have removed this update however it has still been installed on machines

You will need to remove this Windows Update via the Add and Remove Programs , reboot the computer then run the following command :

chkntfs /x c:

 

 

VN:F [1.9.22_1171]
Rating: 8.0/10 (1 vote cast)
VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)

J8699ARecently a HP 5406 Switch randomly crashed in the middle of a working day. A reboot fixed this however , we wanted to update the firmware from V12.16 to the latest version  K.15.09.0012, ROM K.15.28

The link to the latest firmware is here :

https://h10145.www1.hp.com/Downloads/SoftwareReleases.aspx?ProductNumber=J8697A&lang=en&cc=us&prodSeriesId=1827663

After backing up all the config, We downloaded the K.15.09.0012 firmware to start with. These switches have Primary and Secondary firmwares which allows some fault tollerence when it comes to an upgrade. If the Primary firmware fails it will switch to secondary so you can reflash

Upon trying to upload the K.15.09.0012, ROM K.15.28 via the web interface , it error-ed on Internet Explorer and Firefox with no immediate error. The next method we tried was a Telnet Firmware Upgrade , a bit more long winded.

We setup a TFPT server to be able to download the

Just download this free TFTP Server tool and setup defaults and copy the firmware to C;\TFPT ( or your default location )

Next we telneted into the Switch , and used the Command Menu to bring up the Switch Menu

We then went to Download OS , entered the TFTP IP of the PC with the file and the file name , and it brought back

Aborted, File Error

OK so the switch is bouncing back the file , probably because it’s referencing something with the current version ( The web interface should of been nice and told us this! )

After checking the ReadMe for the 15 upgrade , we found the following :

(BootROM K.12.12 – K.12.14)  Update and reload into software version K.13.58 or K.13.68

So we updated to K.13.68 (for BootROM updates only) via telnet which worked , and then updated to K.15.09.0012, ROM K.15.28

VN:F [1.9.22_1171]
Rating: 9.0/10 (6 votes cast)
VN:F [1.9.22_1171]
Rating: +2 (from 4 votes)

A customer wanted to show visitors when the last modification to the whole wordpress site was on the home page. There’s a function in WordPress which give you the function to the current post or page which is :

the_modified_time('F j, Y');

However to find out the whole site, you need to do the current MySQL Query :

$last_site_update = $wpdb->get_var( "SELECT post_modified FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_modified DESC LIMIT 1" );

Then you can formulate it with PHP’s Date Function e.g. : echo date(‘F j, Y’, strtotime($last_site_update));

 

 

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)