Wednesday, 18 June 2014

Office Web Access PreRequisites Install on Windows 2012 Powershell

If you are stuck like installing an old Office Web Access 2010 on a Windows 2012 and thinking how to install Prerequisites here is the powershell command:

Add-WindowsFeature Web-Server,Web-Mgmt-Tools,Web-Mgmt-Console,Web-WebServer,Web-Common-Http,Web-Default-Doc,Web-Static-Content,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,Web-Security,Web-Filtering,Web-Windows-Auth,Web-App-Dev,Web-Net-Ext45,Web-Asp-Net45,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Includes,InkandHandwritingServices

Thursday, 12 June 2014

New-SPManagedAccount PowerShell Access is Denied Cross-Domain Accounts

I guess you have see this error when you tried to add another domain's user to your farm's managed accounts.

New-SPManagedAccount : An error occurred while getting information about the user <username> at server <servername>: Access is denied.

You need to follow the instructions as follows to get round the issue:

1. You need to add the Remote domain user to the local admins of the server but before that you run this command Add-SPShellAdmin -UserName DOMAIN\UserName



2. Add the DOMAIN\UserName to the Local Administrators Group

3. Run PowerShell as different user (using this DOMAIN\UserName)


4. run $cred = Get-Credential


Enter the user and password you want to add in the managed account (DOMAIN\AnotherUserName) and press OK, now the credentials of the Remote user is saved in the $cred

5. run New-SPManagedAccount -Credential $cred

Press Enter and there you go, the Remote user from a different domain is now added to your Managed accounts.

You can check that in your Security ->  General Security -> Configure Managed Accounts in the SharePoint Central Administration