Skip to content

Commit ed90d85

Browse files
committed
Intial commit of scripts
1 parent 1686f70 commit ed90d85

13 files changed

+1384
-1
lines changed

HTML Spec Sheets/SpecSheets.bat

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
echo off
2+
rem Batch HTML specsheet script Not at all nice, but does work VBS and PS scripts much better though
3+
echo Spec sheet script started. Writing to %userprofile%\desktop\SpecSheetFrom%computerName%.html
4+
echo Writing out CSS style info
5+
echo ^<htmL^> ^<title^>Spec Report From %ComputerName%^</title^>^<style type="text/css"^> >%userprofile%\desktop\SpecSheetFrom%computerName%.html
6+
echo body {>>%userprofile%\desktop\SpecSheetFrom%computerName%.html
7+
echo font-family: Segoe UI Light;>>%userprofile%\desktop\SpecSheetFrom%computerName%.html
8+
echo letter-spacing: 0.02em;>>%userprofile%\desktop\SpecSheetFrom%computerName%.html
9+
echo background-color: rgb(35, 73, 116);>>%userprofile%\desktop\SpecSheetFrom%computerName%.html
10+
echo color: white;>>%userprofile%\desktop\SpecSheetFrom%computerName%.html
11+
echo margin-left: 5.5em;>>%userprofile%\desktop\SpecSheetFrom%computerName%.html
12+
echo line-height: 1.7em;>>%userprofile%\desktop\SpecSheetFrom%computerName%.html
13+
echo }>>%userprofile%\desktop\SpecSheetFrom%computerName%.html
14+
echo ^</style^> ^<body^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
15+
echo ^<br^>^<h1 style="text-align:center;Color:#11EEF4"^>Specifications of %ComputerName% ^</h1^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
16+
17+
echo Getting genral PC information
18+
WmiC ComputerSystem get Manufacturer >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
19+
echo ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
20+
WmiC ComputerSystem get Model >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
21+
echo ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
22+
WmiC ComputerSystem get NumberOfProcessors >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
23+
echo ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
24+
WmiC ComputerSystem get PCSystemType >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
25+
echo ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
26+
WmiC ComputerSystem get SystemType >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
27+
echo ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
28+
WmiC ComputerSystem get TotalPhysicalMemory >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
29+
echo ^<br^> ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
30+
31+
echo Getting HDD information
32+
WmiC diskdrive get Manufacturer >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
33+
echo ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
34+
WmiC diskdrive get Model >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
35+
echo ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
36+
WmiC diskdrive get InterfaceType >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
37+
echo ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
38+
WmiC diskdrive get status >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
39+
echo ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
40+
WmiC diskdrive get size >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
41+
echo ^<br^> ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
42+
43+
echo Getting CPU info
44+
WmiC CPU get Name >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
45+
echo ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
46+
WmiC CPU get NumberOfCores >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
47+
echo ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
48+
WmiC CPU get NumberOfLogicalProcessors >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
49+
echo ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
50+
WmiC CPU get MaxClockSpeed >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
51+
echo ^<br^> ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
52+
53+
echo Getting memory info
54+
wmic memorychip get BankLabel >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
55+
echo ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
56+
wmic memorychip get DeviceLocator >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
57+
echo ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
58+
wmic memorychip get Speed >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
59+
echo ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
60+
wmic memorychip get Capacity >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
61+
echo ^<br^> ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
62+
63+
echo Getting video controller info
64+
wmic path cim_VideoController get name >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
65+
echo ^<br^> ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
66+
67+
echo Getting Unique ID info
68+
wmic CSproduct get IdentifyingNumber >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
69+
echo ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
70+
wmic CSproduct get SKUNumber >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
71+
echo ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
72+
wmic CSproduct get UUID >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
73+
echo ^<br^> ^<br^> >>%userprofile%\desktop\SpecSheetFrom%computerName%.html
74+
75+
echo Getting battery report
76+
powercfg.exe /batteryReport /output "%UserProfile%\desktop\Battery Report.html"
77+
78+
pause
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
2+
<#
3+
************** Overview **************
4+
5+
This script creates a HTML specsheet for the computer it is run on, and saves it on the current user's desktop.
6+
As part of this script PowerCfg will save a Battery Report on the desktop also.
7+
8+
************** Formatting Information ******************
9+
10+
HTML File Naming format: "Spec Report from User-PC (21st of May).htm" Vars used for that are $env:computername $date
11+
Battery Report naming format: "Battery Report from User-PC.html" Uses $env:computername only
12+
Text size: H2 for main header, H3 for sub-headings, H4 for normal test and H5 for the note
13+
Other Formatting: Font: Segoe UI Light, Spacing: 0.02em, Margin: 5.5em, line-height: 1.7em
14+
The battery report HTML file also introduces it's own formatting, though this is mostly fine now
15+
Colors: rgb(35, 73, 116) for background, white for normal text, and #11EEF4 for headings
16+
#>
17+
18+
#*************** Setting up Filename ******************
19+
20+
$Date = get-date
21+
$date = $date.ToLongDateString()
22+
$FileName = "Spec Report from $env:computername `($date`)"
23+
24+
#*************** Getting WMI Objects ******************
25+
26+
$1 = Get-WmiObject Win32_ComputerSystem | Select-Object -property Manufacturer,Model,NumberOfProcessors,PCSystemType,SystemType,@{Label="RAMSizeInBytes"; Expression={ForEach-Object {$_.TotalPhysicalMemory}}},@{Label="RAMSizeinGB"; Expression={ForEach-Object {$_ = $_.TotalPhysicalMemory / 1gb; if (($_ -like "*.4*") -or ($_ -like "*.5*") -or ($_ -like "*.6*")) {$_} else {$_ = [math]::round($_); $_}}}}
27+
$2 = get-disk | Select-Object Manufacturer,Model,BusType,HealthStatus,@{Label="HDDSizeInBytes"; Expression={ForEach-Object {$_.size}}},@{Label="Size in Gigabytes"; Expression={ForEach-Object {$_ = $_.size / 1000000000; [math]::round($_)}}}
28+
$3 = get-wmiobject Cim_PCvideoController | Select-Object -Property name -Unique
29+
$4 = Get-WmiObject Win32_Processor | Select-Object Name,NumberOfCores,@{Label="Threads"; Expression={$_.NumberOfLogicalProcessors}},@{Label="Clock Speed in ghz"; Expression={ForEach-Object {$_.MaxClockSpeed / 1000}}}
30+
$5 = Get-WmiObject Win32_PhysicalMemory | Select-Object BankLabel,DeviceLocator,@{Label="Speed in Mhz"; Expression={$_.Speed}},@{Label="Capacity in Bytes"; Expression={ForEach-Object {$_.Capacity}}},@{Label="Capacity in GB"; Expression={ForEach-Object {$_ = $_.Capacity / 1000000000; [math]::Truncate($_)}}}
31+
$6 = Get-WmiObject Win32_ComputerSystemproduct | Select-Object -property IdentifyingNumber,SKUNumber,UUID
32+
$7 = Get-WmiObject cim_battery
33+
34+
#*************** Adding Style Sheet and Header to HTML file ******************
35+
36+
"<!DOCTYPE html>
37+
`<html xmlns`=`"http://www.w3.org/1999/xhtml`" xmlns`:ms`=`"urn:schemas-microsoft-com:xslt`" xmlns`:bat`=`"http://schemas.microsoft.com/battery/2012`" xmlns:js=`"http://microsoft.com/kernel`"`>`<head`>`<meta http-equiv`=`"X-UA-Compatible`" content`=`"IE=edge`"`/`>`<meta name`=`"ReportUtcOffset`" content=`"+1:00`"`/`>
38+
`<title`>$FileName`<`/title`>`<style type`=`"text/css`"`>
39+
40+
body `{
41+
42+
font`-family`: Segoe UI Light`;
43+
44+
letter`-spacing`: 0.02em`;
45+
46+
background`-color`: rgb`(35, 73, 116`)`;
47+
48+
color`: white`;
49+
50+
margin`-left`: 5.5em`;
51+
52+
line-height`: 1.7em`;
53+
54+
`}
55+
`<`/style`> `<body`>" > "$env:userprofile\desktop\$FileName.htm"
56+
57+
#*************** Writing general overveiw info to HTML file ******************
58+
$1 | convertto-html -as list -fragment -precontent "`<h1 style`=`"text-align:center`"`>Specifications`
59+
of $env:computername`</h1`>`<h3 style`=`"font-style:bold;Color:`#11EEF4`"`>General Overview`</h3`>`</p`>`
60+
`<h4>" -postcontent '</h4>' >>"$env:userprofile\desktop\$FileName.htm"
61+
"<h5>Note: If the second digit of the bytes number is 4 or 5,<br>double check the memory size,
62+
as the GB figure may<br>have been rounded incorrectly</h5>" >>"$env:userprofile\desktop\$FileName.htm"
63+
64+
#*************** Writing disk info to HTML file ******************
65+
$2 | convertto-html -as list -fragment -precontent '<p><h3 style="font-style:bold;Color:#11EEF4">Disk `
66+
Information</h3></p><h4>' -postcontent '</h4>' >>"$env:userprofile\desktop\$FileName.htm"
67+
68+
#*************** Writing Video controller info to HTML file ******************
69+
$3 | convertto-html -as list -fragment -precontent '<p><h3 style="font-style:bold;Color:#11EEF4">Video
70+
Chipset Information</h3></p><h4>' -postcontent '</h4>' >>"$env:userprofile\desktop\$FileName.htm"
71+
72+
#*************** Writing CPU info to HTML file ******************
73+
$4 | convertto-html -as list -fragment -precontent '<p><h3 style="font-style:bold;Color:#11EEF4">CPU
74+
Information</h3></p><h4>' -postcontent '</h4>' >>"$env:userprofile\desktop\$FileName.htm"
75+
76+
#*************** Writing Memory Configuration info to HTML file ******************
77+
$5 | convertto-html -as list -fragment -precontent '<p><h3 style="font-style:bold;Color:#11EEF4">Memory
78+
Configuration</h3></p><h4>' -postcontent '</h4>' >>"$env:userprofile\desktop\$FileName.htm"
79+
80+
#*************** Writing Unique IDs info to HTML file ******************
81+
$6 | convertto-html -as list -fragment -precontent '<p><h3 style="font-style:bold;Color:#11EEF4">Unique
82+
Ids</h3></p><h4>' -postcontent '</h4>' >>"$env:userprofile\desktop\$FileName.htm"
83+
84+
#*************** Testing whether the computer has a battery installed ******************
85+
if ( $7 -ne $null ) {
86+
#**** Reducing the properties to the ones we want ******
87+
$7 = $7 | Select-Object -property BatteryStatus,Caption,Chemistry,status
88+
89+
#**** Invoking PowerCfg to get battery report ******
90+
Powercfg /batteryreport /output "$env:userprofile\desktop\Battery Report from $env:computername.html"
91+
92+
#**** Getting the content of the HTML file that created ******
93+
$Battery = get-content "$env:userprofile\desktop\Battery Report from $env:computername.html"
94+
95+
#**** Replaces some lines from the file for styling *****
96+
$Battery[10] = 'background-color:rgb(35, 73, 116);'
97+
#$Battery[12] = 'color:rgb(25, 131, 158);'
98+
$Battery[25] = 'text-align:center;'
99+
$Battery[112] = 'background-color:rgb(35, 73, 116);'
100+
$Battery[114] = 'color:white;'
101+
102+
#*****Writing Battery info to HTML file ******
103+
$7 | convertto-html -as list -Fragment -precontent '<p><h3 style="font-style:bold;Color:#11EEF4">Battery Info</h3></p><h4>' -postcontent '</h4>' >>"$env:userprofile\desktop\$FileName.htm"
104+
105+
} else {$battery = '<p> <h4>No battery Present </h4></p>' }
106+
107+
#*************** Finishing the html file ******************
108+
$Battery >> "$env:userprofile\desktop\$FileName.htm"
109+
'</body> </html>' >> "$env:userprofile\desktop\$FileName.htm"
110+
111+
# Could use to copy to WDS server after running. Never got it working
112+
#****************** Tries to copy to server ****************
113+
#copy-item "$env:userprofile\desktop\$FileName.htm" "\\WDS-Server\specs\$FileName.htm"
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
2+
<#
3+
************** Overview **************
4+
5+
This one's just a bit of fun. Same as it's counterparts but speaks what it's doing.This script
6+
creates a HTML specsheet for the computer it is run on, and saves it on the current user's
7+
desktop. As part of this script PowerCfg will save a Battery Report on the desktop also.
8+
9+
************** Formatting Information ******************
10+
11+
HTML File Naming format: "Spec Report from User-PC (21st of May).htm" Vars used for that are $env:computername $date
12+
Battery Report naming format: "Battery Report from User-PC.html" Uses $env:computername only
13+
Text size: H2 for main header, H3 for sub-headings, H4 for normal test and H5 for the note
14+
Other Formatting: Font: Segoe UI Light, Spacing: 0.02em, Margin: 5.5em, line-height: 1.7em
15+
The battery report HTML file also introduces it's own formatting, though this is mostly fine now
16+
Colors: rgb(35, 73, 116) for background, white for normal text, and #11EEF4 for headings
17+
#>
18+
19+
#*************** Intial Speech ******************
20+
21+
add-type -assemblyname system.speech
22+
$Speak = New-Object System.Speech.Synthesis.SpeechSynthesizer
23+
$speak.Speak("Windows Install completed on $env:computername. Now generating specsheet")
24+
25+
#*************** Setting up Filename ******************
26+
27+
$Date = get-date
28+
$date = $date.ToLongDateString()
29+
$FileName = "Spec Report from $env:computername `($date`)"
30+
31+
#*************** Getting WMI Objects ******************
32+
33+
$1 = Get-WmiObject Win32_ComputerSystem | Select-Object -property Manufacturer,Model,NumberOfProcessors,PCSystemType,SystemType,@{Label="RAMSizeInBytes"; Expression={ForEach-Object {$_.TotalPhysicalMemory}}},@{Label="RAMSizeinGB"; Expression={ForEach-Object {$_ = $_.TotalPhysicalMemory / 1gb; if (($_ -like "*.4*") -or ($_ -like "*.5*") -or ($_ -like "*.6*")) {$_} else {$_ = [math]::round($_); $_}}}}
34+
$2 = get-disk | Select-Object Manufacturer,Model,BusType,HealthStatus,@{Label="HDDSizeInBytes"; Expression={ForEach-Object {$_.size}}},@{Label="Size in Gigabytes"; Expression={ForEach-Object {$_ = $_.size / 1000000000; [math]::round($_)}}}
35+
$3 = get-wmiobject Cim_PCvideoController | Select-Object -Property name -Unique
36+
$4 = Get-WmiObject Win32_Processor | Select-Object Name,NumberOfCores,@{Label="Threads"; Expression={$_.NumberOfLogicalProcessors}},@{Label="Clock Speed in ghz"; Expression={ForEach-Object {$_.MaxClockSpeed / 1000}}}
37+
$5 = Get-WmiObject Win32_PhysicalMemory | Select-Object BankLabel,DeviceLocator,@{Label="Speed in Mhz"; Expression={$_.Speed}},@{Label="Capacity in Bytes"; Expression={ForEach-Object {$_.Capacity}}},@{Label="Capacity in GB"; Expression={ForEach-Object {$_ = $_.Capacity / 1000000000; [math]::Truncate($_)}}}
38+
$6 = Get-WmiObject Win32_ComputerSystemproduct | Select-Object -property IdentifyingNumber,SKUNumber,UUID
39+
$7 = Get-WmiObject cim_battery
40+
41+
#*************** Adding Style Sheet and Header to HTML file ******************
42+
43+
"<!DOCTYPE html>
44+
`<html xmlns`=`"http://www.w3.org/1999/xhtml`" xmlns`:ms`=`"urn:schemas-microsoft-com:xslt`" xmlns`:bat`=`"http://schemas.microsoft.com/battery/2012`" xmlns:js=`"http://microsoft.com/kernel`"`>`<head`>`<meta http-equiv`=`"X-UA-Compatible`" content`=`"IE=edge`"`/`>`<meta name`=`"ReportUtcOffset`" content=`"+1:00`"`/`>
45+
`<title`>$FileName`<`/title`>`<style type`=`"text/css`"`>
46+
47+
body `{
48+
49+
font`-family`: Segoe UI Light`;
50+
51+
letter`-spacing`: 0.02em`;
52+
53+
background`-color`: rgb`(35, 73, 116`)`;
54+
55+
color`: white`;
56+
57+
margin`-left`: 5.5em`;
58+
59+
line-height`: 1.7em`;
60+
61+
`}
62+
`<`/style`> `<body`>" > "$env:userprofile\desktop\$FileName.htm"
63+
64+
#*************** Writing general overveiw info to HTML file ******************
65+
$1 | convertto-html -as list -fragment -precontent "`<h1 style`=`"text-align:center`"`>Specifications`
66+
of $env:computername`</h1`>`<h3 style`=`"font-style:bold;Color:`#11EEF4`"`>General Overview`</h3`>`</p`>`
67+
`<h4>" -postcontent '</h4>' >>"$env:userprofile\desktop\$FileName.htm"
68+
"<h5>Note: If the second digit of the bytes number is 4 or 5,<br>double check the memory size,
69+
as the GB figure may<br>have been rounded incorrectly</h5>" >>"$env:userprofile\desktop\$FileName.htm"
70+
71+
#*************** Writing disk info to HTML file ******************
72+
$2 | convertto-html -as list -fragment -precontent '<p><h3 style="font-style:bold;Color:#11EEF4">Disk `
73+
Information</h3></p><h4>' -postcontent '</h4>' >>"$env:userprofile\desktop\$FileName.htm"
74+
75+
#*************** Writing Video controller info to HTML file ******************
76+
$3 | convertto-html -as list -fragment -precontent '<p><h3 style="font-style:bold;Color:#11EEF4">Video
77+
Chipset Information</h3></p><h4>' -postcontent '</h4>' >>"$env:userprofile\desktop\$FileName.htm"
78+
79+
#*************** Writing CPU info to HTML file ******************
80+
$4 | convertto-html -as list -fragment -precontent '<p><h3 style="font-style:bold;Color:#11EEF4">CPU
81+
Information</h3></p><h4>' -postcontent '</h4>' >>"$env:userprofile\desktop\$FileName.htm"
82+
83+
#*************** Writing Memory Configuration info to HTML file ******************
84+
$5 | convertto-html -as list -fragment -precontent '<p><h3 style="font-style:bold;Color:#11EEF4">Memory
85+
Configuration</h3></p><h4>' -postcontent '</h4>' >>"$env:userprofile\desktop\$FileName.htm"
86+
87+
#*************** Writing Unique IDs info to HTML file ******************
88+
$6 | convertto-html -as list -fragment -precontent '<p><h3 style="font-style:bold;Color:#11EEF4">Unique
89+
Ids</h3></p><h4>' -postcontent '</h4>' >>"$env:userprofile\desktop\$FileName.htm"
90+
91+
#*************** Testing whether the computer has a battery installed ******************
92+
if ( $7 -ne $null ) {
93+
#**** Reducing the properties to the ones we want ******
94+
$7 = $7 | Select-Object -property BatteryStatus,Caption,Chemistry,status
95+
96+
#**** Invoking PowerCfg to get battery report ******
97+
Powercfg /batteryreport /output "$env:userprofile\desktop\Battery Report from $env:computername.html"
98+
99+
#**** Getting the content of the HTML file that created ******
100+
$Battery = get-content "$env:userprofile\desktop\Battery Report from $env:computername.html"
101+
102+
#**** Replaces some lines from the file for styling *****
103+
$Battery[10] = 'background-color:rgb(35, 73, 116);'
104+
#$Battery[12] = 'color:rgb(25, 131, 158);'
105+
$Battery[25] = 'text-align:center;'
106+
$Battery[112] = 'background-color:rgb(35, 73, 116);'
107+
$Battery[114] = 'color:white;'
108+
109+
#*****Writing Battery info to HTML file ******
110+
$7 | convertto-html -as list -Fragment -precontent '<p><h3 style="font-style:bold;Color:#11EEF4">Battery Info</h3></p><h4>' -postcontent '</h4>' >>"$env:userprofile\desktop\$FileName.htm"
111+
112+
} else {$battery = '<p> <h4>No battery Present </h4></p>' }
113+
114+
#*************** Finishing the html file ******************
115+
$Battery >> "$env:userprofile\desktop\$FileName.htm"
116+
'</body> </html>' >> "$env:userprofile\desktop\$FileName.htm"
117+
118+
#*************** Setting the vars up for speech ******************
119+
$Manufacturer = $1.Manufacturer
120+
$Model = $1.Model
121+
$CPU = $4 | Select-Object -ExpandProperty name
122+
$RAM = $1.RAMSizeinGB
123+
if ($CPU -like "*i3*") {$CPU = "an i3"}
124+
if ($CPU -like "*i5*") {$CPU = "an i5"; $value = "I'm worth quite a lot of money aren't I?"}
125+
if ($CPU -like "*i7*") {$CPU = "an i7"; $value = "I'm worth lots and lots of money!" }
126+
if ($CPU -like "*Pentium*") {$CPU = "a Pentium"}
127+
if ($CPU -like "*Celeron*") {$CPU = "a Celeron"}
128+
if ($CPU -like "*xeon*") {$CPU = "a Xeon"; $value = "I'm a Workstation but I'd like to be a server."}
129+
if ($CPU -like "*Intel*") {$CPU = "an Intel"}
130+
if ($CPU -like "*AMD*") {$CPU = "an AMD"}
131+
132+
#****************** Second Speech ****************
133+
$speak.Speak("I, a $Manufacturer $Model have successfully generated a spec sheet. By the way, I have $CPU CPU and $RAM gigabytes of RAM. $value")
134+
135+
# Could use to copy to server never worked
136+
#****************** Tries to copy to server ****************
137+
#copy-item "$env:userprofile\desktop\$FileName.htm" "\\WDS-Server\specs\$FileName.htm"

0 commit comments

Comments
 (0)