@@ -51,18 +51,25 @@ $date = Get-Date
51
51
$Virtual = (Get-WmiObject win32_systemenclosure - Property Manufacturer)
52
52
$CPU = (Get-WmiObject win32_processor - Property Manufacturer)
53
53
# ##Images at top
54
- $a = " <link rel='stylesheet' type='text/css' href='$resourcedir /WEB/theme.css'>"
55
- $a = $a + " <img src ='$resourcedir /WEB/$logo ' alt='logo'>"
56
- if ($Virtual.Manufacturer -eq " No Enclosure" ){
57
- $a = $a + " <img src ='$resourcdir /WEB/VMWare.png' alt='vmware'>"
58
- }
59
- Elseif ($CPU.Manufacturer -eq " GenuineIntel" ) {
60
- $a = $a + " <img src='$Resourcedir /WEB/PhysicalIntel.png' alt='intel'>"
54
+ if ($sendemail -ne $true ){
55
+ $a = " <link rel='stylesheet' type='text/css' href='$resourcedir /WEB/theme.css'>"
56
+
57
+
58
+ $a = $a + " <img src ='$resourcedir /WEB/$logo ' alt='logo'>"
59
+ if ($Virtual.Manufacturer -eq " No Enclosure" ){
60
+ $a = $a + " <img src ='$resourcdir /WEB/VMWare.png' alt='vmware'>"
61
+ }
62
+ Elseif ($CPU.Manufacturer -eq " GenuineIntel" ) {
63
+ $a = $a + " <img src='$Resourcedir /WEB/PhysicalIntel.png' alt='intel'>"
64
+ }
65
+ Else {
66
+ $a = $a + " <img src='$resourcedir /WEB/PhysicalAMD.png' alt='AMD'>"
67
+ }
61
68
}
62
69
Else {
63
- $a = $a + " <img src=' $ resourcedir/ WEB/PhysicalAMD.png' alt='AMD'> "
64
- }
65
-
70
+ $css = Get-Content " $filepath \ $ resourcedir\ WEB\theme.css "
71
+ $a = " <style> $css </style> "
72
+ }
66
73
# ### Setting up header and description
67
74
ConvertTo-Html - Head $a - Title " Hardware Information for $name " > " $filepath \$name .html"
68
75
ConvertTo-Html - Body " <br><br><br><h1>$name </h1>" >> " $filepath \$name .html"
0 commit comments