Saturday, 18 January 2014

Windows 7: Take File & Folder Ownership & Reset File & Folder Permissions

To take ownership of the folder at the top of the tree and all sub files and folders:

TAKEOWN /F "Folder Name" /R

/F specifies the filename or directory name pattern. Wildcard "*" can be used to specify the pattern.

/R instructs tool to operate on files in specified directory and all subdirectories.

To reset file and folder permissions back to the default inherited permissions:

ICACLS "Folder Name" /RESET /T /C /Q

/T indicates that this operation is performed on all matching files/directories below the directories specified in the name.

/C indicates that this operation will continue on all file errors. Error messages will still be displayed.

/Q indicates that icacls should suppress success messages.

Monday, 11 November 2013

Office 2010: Licensing Commands


Windows x64 / Office x86

View Client Machine ID:

cscript "C:\Program Files (x86)\Microsoft Office\Office14\OSPP.VBS" /dcmid

View licensing information:

cscript "C:\Program Files (x86)\Microsoft Office\Office14\OSPP.VBS" /dstatus

Apply product key:

cscript "C:\Program Files (x86)\Microsoft Office\Office14\OSPP.VBS" /inpkey:AAAA-BBBB-CCCCC-DDDDD-EEEEE


ReArm Office

Launch administrative command prompt and enter:

cd "C:\Program Files (x86)\Common Files\Microsoft Shared\OfficeSoftwareProtectionPlatform"

then enter:  ospprearm.exe

Wednesday, 28 August 2013

Netgear Print Server PS101: Determine IP Address

To determine the IP address of a Netgear Print Server PS101:

Connect via ethernet to a machine with Wireshark installed.
Launch Wireshark and the ARP requests should reveal the IP address and default gateway.
  
For example: Who has 192.168.x.x? Tell 192.168.x.x

Tuesday, 28 May 2013

Outlook 2010: Cannot Provide Form Scripting Support

"Microsoft Outlook cannot provide form scripting support. This feature is not available."

Error message is displayed in Outlook 2010 when installed on a Windows Server 2008 based Terminal Server.

To resolve it is necessary to install an additional component.

Launch regedit and browse to:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products
 
Locate the Microsoft Office ModifyPath string within the entry where the DisplayName is for the full product

DisplayName: Microsoft Office Standard 2010
Modify Path: MsiExec.exe /X{90140000-0012-0000-1000-0000000FF1CE}

Put the Terminal Server into Install Mode through the following command:

change user /install

Run the following command, using the correct ModifyPath string:

msiexec /i {90140000-0012-0000-1000-0000000FF1CE} ADDLOCAL=OutlookVBScript /qb
Put the Terminal Server into Execute mode through the following command:

change user /execute

Vodafone: Top Up, Find Balance & Find Mobile Number

 To find the balance of a device on Vodafone dial 2345 or:
* # 1 3 4 5 #

To find the mobile number of a device on Vodafone dial:
* # 1 0 0 #

To top up dial:
1 3 4 5

Tuesday, 16 April 2013

Exchange 2007: PowerShell - Query Mailbox Sizes

A useful Exchange PowerShell script to list mailbox sizes and databases, sorted by size.

Get-MailboxStatistics | sort-object Database, TotalItemSize -Descending | ft DisplayName, @{expression={$_.TotalItemSize.Value.ToMB()};label="TotalItemSize(MB)"}, Database -autosize

Exchange 2007: PowerShell - Query Mailbox Last Logon Time

A useful Exchange PowerShell script to list the last logon time for mailboxes, sorted by date.

Get-MailboxStatistics | Select-Object DisplayName, LastLogonTime | Sort LastLogonTime

VMware ESXi 4.1: Change Bash Prompt To Display Hostname

To change the bash prompt of an ESXi host to display the hostname

SSH to the host
change directory to /etc
vi profile and append the following two lines:

HOSTNAME=`hostname`

export PS1="`grep ${HOSTNAME} /etc/hosts | awk '{print $2}' |cut -d. -f1`> "

Sunday, 7 April 2013

VMware vSphere 4.1 Client: Installation Error - Microsoft Visual J# 2.0 Second Edition Installer Error Code 4121

Microsoft Visual J# 2.0 Second Edition installer returned error code '4121' error message is displayed when installing VMware vSphere Client 4.1 on Windows 8 x64.

To resolve, download and install Microsoft Visual J# 2.0 Redistributable Package – Second Edition (x64) first.

http://www.microsoft.com/en-us/download/confirmation.aspx?id=15468

Then run the vSphere Client installer with Windows 7 compatibility:

Wednesday, 3 April 2013

Avaya IP Office: Hide Outgoing Caller ID Per User

To hide the outgoing caller ID on a per user basis create a new short code within the users ShortCodes tab in IP Office Manager with the following settings:

Code: ?
Feature: Dial
Telephone Number: .W
Line Group ID: 0