-
Notifications
You must be signed in to change notification settings - Fork 146
Expand file tree
/
Copy pathSample_xWebSiteAlive_ExpectedContent.ps1
More file actions
52 lines (47 loc) · 1.13 KB
/
Sample_xWebSiteAlive_ExpectedContent.ps1
File metadata and controls
52 lines (47 loc) · 1.13 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Configuration Sample_xWebSiteAlive_ExpectedContent
{
Import-DscResource -Module xWebAdministration
xWebsite DefaultWebSite
{
Ensure = 'Present'
Name = 'Default Web Site'
State = 'Started'
}
xWebSiteAlive WebSiteAlive
{
WebSiteName = 'Default Web Site'
RelativeUrl = '/iisstart.htm'
ValidStatusCodes = @(200)
ExpectedContent = @'
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>IIS Windows Server</title>
<style type="text/css">
<!--
body {
color:#000000;
background-color:#0072C6;
margin:0;
}
#container {
margin-left:auto;
margin-right:auto;
text-align:center;
}
a img {
border:none;
}
-->
</style>
</head>
<body>
<div id="container">
<a href="http://go.microsoft.com/fwlink/?linkid=66138&clcid=0x409"><img src="iisstart.png" alt="IIS" width="960" height="600" /></a>
</div>
</body>
</html>
'@
}
}