Wednesday, February 15, 2017

Office Web Application Server Prerequisites

Windows 2012 Prerequisites:

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


Windows 2008 R2 Prerequisites:
install .Net Framework 4.5, Windows Management Framework 3.0

Import-Module ServerManager
Add-WindowsFeature Web-Server,Web-WebServer,Web-Common-Http,Web-Static-Content,Web-App-Dev,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Includes,Web-Security,Web-Windows-Auth,Web-Filtering,Web-Stat-Compression,Web-Dyn-Compression,Web-Mgmt-Console,Ink-Handwriting,IH-Ink-Support

1.Run Office Webb apps Server installation file.
2.Generate Certificate on local PKI or use public Certificate.
(Certificate must have Friendly name)



Configure Office Web Apps Server

Rum PowerShell as administrator:

Import-Module OfficeWebApps

New-OfficeWebAppsFarm -InternalURL <href="https://<FQDN" title="https://<FQDN">https://<FQDN</a> OWAS Server> -ExternalURL <href="https://<URL" title="https://<URL">https://<URL</a> OWAS public name> –CertificateName “Certificate Friendly Name” -AllowHTTP

New-OfficeWebAppsHost "Domain Name" 


to Check Offece Web Server open this link :

 https://FQDN OWAS Server/hosting/discovery



Publish Office WebAPP TMG

Permission to read private key IIS Server

You need the permission to read private key for IIS Server.

   1.Go to this path:  C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys[File Name]

  1. Go to that path and open file properties
  2. Go to security tab
  3. Click on "Edit" then "Add"
  4. Add  users "Network Service" and "IIS_IUSRS" and give Full controll Permitions.
or add  IIS AppPool\[your application pool name]

Stop a hung service

If service is hung on stoping or starting :

open CMD as administrator

sc queryex "servicename"
taskkill /f /pid [PID] 




Source


Thursday, February 9, 2017

View logged on user on Remote computer

View logged on user on Remote computer.

Download PStools. Use PSexec utill. I have pstools on my C drive.

cd c:\
cd pstolls
psexec.exe \\"compname or ip" cmd.exe
query user