Computer info template/example (quick and dirty)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#WMI

$cred = get-credential

$computers = "test-www11", "test-www12"

$data = foreach ($computer in $computers) {
Get-WmiObject win32_operatingsystem -Credential $cred -ComputerName $computer |
Select-Object @{n="Name";e={$_.pscomputername}},
@{n="OS";e={$_.caption}},
@{n="Installed";e={$_.converttodatetime($_.installdate)}},
@{n="Uptime";e={(get-date) - $_.converttodatetime($_.Lastbootuptime)}},
OSarchitecture,
@{n="PS Version";e={(Invoke-Command -ComputerName $computer -credential $cred {$PSVersionTable.PSVersion.ToString()})}}

}

$data | Format-Table

#CIM

$computers = Invoke-Command -ComputerName mon-dc11 -Credential $cred {(Get-ADComputer -filter 'name -like "MON-*"' | where enabled -eq $true).name}

New-CimSession -ComputerName $computers -Credential $cred
$CS = Get-CimSession

$data = foreach ($computer in $computers) {
Get-CimInstance win32_operatingsystem -CimSession $cs|
Select-Object @{n="Name";e={$_.pscomputername}},
@{n="OS";e={$_.caption}},
@{n="Installed";e={$_.installdate}},
@{n="Uptime";e={(get-date)-$_.Lastbootuptime}},
OSarchitecture,
@{n="PS Version";e={(Invoke-Command -ComputerName $computer -credential $cred {$PSVersionTable.PSVersion.ToString()})}}

}

$data | Format-Table

Connect to Office 365 Powershell

1
2
3
$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "https://outlook.office365.com/powershell-liveid/" -Credential $cred -Authentication Basic -AllowRedirection

Import-PSSession $session

White font with Chrome 63.0.3239.8 in CRM

On the CRM server

  1. Open C:\Program Files\Microsoft Dynamics CRM\CRMWeb\_static\css\1033\notesv2.css.aspx  and search for #0000.
  2. Change this to #000000 and save the file
  3. Run iisreset

On the client

  1. Go to the site that is showing white font and press SHIFT+F5

HP: Error codes

CAPS LOCK/NUM LOCK LED
LEDs blink 1 time – CPU not functional
LEDs blink 2 times – BIOS corruption failure
LEDs blink 3 times – Module error not functional
LEDs blink 4 times – Graphics controller not functional
LEDs blink 5 times – General system board failure
LEDs blink 6 times – BIOS authentication failure

Source : Blink codes on this page