#JORGE NAVARRO MANZANO Script Doc Windows Server 20XX, needs .net 2.0 and powershell 2.0(check version with get-host) (updated for w2016)
#https://es.linkedin.com/in/jorgenavarromanzano
#more scripts here https://github.com/jorgenavarromanzano
#it creates two files nodename.html (in html format) and nodename.txt (tikiwiki format http://tiki.org)
#lot of info, like hw, devices, services, programs, updates, env, app infos, nlb, cluster, iis, ad, dns, dhcp, etc etc.
#used functions of productkeys for windows and sql from JAKOB BINDSLET and Chrissy LeMaire
#only compatible with english/spanish windows servers(you can run it in other languages but some string filters wont work)

#Instructions:#run as an administrator user powershell and copy all code
#if you want the script to copy the .txt and .html files to the directory of your pc from where you connect by rdp to the servers, just change the next folder:
#(need rdp drive redirection enabled)
#example: $locationdir = "\\tsclient\C\users\che\desktop\"
$locationdir = "\\tsclient\C\users\che\desktop\"
if(test-path $locationdir){ set-location $locationdir}

#TODO: review sql volumen key node fjdsanro, runwithwindows voportalweb2, create index html

#INFO: #always #?optional only if exists
#Server Info
#ProductKeys
#Hardware
#Devices
#?Remote Console requires HP hponcfg utility installed and working
#Performance
#ENV
#Net
#ipconfig
#routes
#others
#?NLB
#?Cluster
#Shares-Mapped Drives
#ODBC
#?Roles-Features
#Programs
#Updates
#?IIS
#?Terminal Server/RDS
#?NPS
#?RAS
#Services
#Local Users/Groups
#?SQL Server -> user need to has access to SQL and pssnapin SqlServerCmdletSnapin100
#?DNS Server
#?DHCP Server
#?Printers
#?Active Directory
#DCS
#Sites
#Trusts
#Authorized DHCP Servers
#DCDIAG
#Tasks
#Review-Functions
#Server Description
#Service Check
#Notes