PoshCode Archive  Check-in [0b434e7aac]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Ok, i guess i have too much code for the paste bin, please can someone remove this !
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:0b434e7aaccc1402c420a02e95877030b24cc6d0086b52a668f893a5b3ac58b2
User & Date: alanrenouf 2018-06-10 14:15:15
Context
2018-06-10
14:15
0:BAG check-in: b17ca159bb user: Matthew Graeber tags: trunk
14:15
Ok, i guess i have too much code for the paste bin, please can someone remove this ! check-in: 0b434e7aac user: alanrenouf tags: trunk
14:15
Returns the priority mail server (SMTP) to send email directly to the SMTP server of a particular domain/email address. Uses NetCmdlets (get-dns). check-in: b16f19aa8d user: Lance Robinson tags: trunk
Changes

Changes to Audit-Script.ps1.

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
...
890
891
892
893
894
895
896
897
898
# encoding: utf-8
# api: powershell
# title: Audit Script
# description: Audit script by Alan Renouf, Usage: Audit.ps1 ‘path’ path needs to be in single quotes.  The file needs to be a plain text list of computers to be audited one on each line.  Output will be a htm file for each server with detailed system information. Any comments please contact me.
# version: 1.0
# type: script
# author: alanrenouf
# license: CC0
# x-poshcode-id: 639
# x-archived: 2016-09-07T06:33:13
# x-published: 2009-10-15T15:34:00
#
#
#####################################################

#    Audit script by Alan Renouf - Virtu-Al         #

#    Blog: http://teckinfo.blogspot.com/            #

#                                                   #

#    Usage: Audit.ps1 'path'                        #

#                                                   #

#    The file needs to be a plain text list of      #

#    computers to be audited one on each line       #

#                                                   #

#####################################################

param( [string] $auditlist)


if ($auditlist -eq ""){
	Write-Host "No list specified, using Localhost"
................................................................................
			Write-Output "	 					<td width='10%'>" $objEvent.SourceName "</font></td>"| out-file -Append -encoding ASCII -filepath $Filename
			Write-Output "	 					<td width='15%'>" $dtmEventDate "</font></td>"| out-file -Append -encoding ASCII -filepath $Filename
			Write-Output "	 					<td width='10%'>" $objEvent.LogFile "</font></td>"| out-file -Append -encoding ASCII -filepath $Filename
			Write-Output "	 					<td width='55%'>" $objEvent.Message "</font></td>"| out-file -Append -encoding ASCII -filepath $Filename
			Write-Output "  					</tr>"| out-file -Append -encoding ASCII -filepath $Filename
		}
		Write-Output "				</TABLE>"| out-file -Append -encoding ASCII -filepath $Filename
		Write-Output "			</DIV>"| out-file -Append -encoding ASCII -filepath $Filename
		Write-Output "		</DI



|




|
|
<



>

>

>

>

>

>

>

>

>







 







|
<
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
...
898
899
900
901
902
903
904
905

# encoding: utf-8
# api: powershell
# title: Audit Script
# description: Ok, i guess i have too much code for the paste bin, please can someone remove this !
# version: 1.0
# type: script
# author: alanrenouf
# license: CC0
# x-poshcode-id: 641
# x-archived: 2008-10-17T08:21:35

#
#
#####################################################
#
#    Audit script by Alan Renouf - Virtu-Al         #
#
#    Blog: http://teckinfo.blogspot.com/            #
#
#                                                   #
#
#    Usage: Audit.ps1 'path'                        #
#
#                                                   #
#
#    The file needs to be a plain text list of      #
#
#    computers to be audited one on each line       #
#
#                                                   #
#
#####################################################

param( [string] $auditlist)


if ($auditlist -eq ""){
	Write-Host "No list specified, using Localhost"
................................................................................
			Write-Output "	 					<td width='10%'>" $objEvent.SourceName "</font></td>"| out-file -Append -encoding ASCII -filepath $Filename
			Write-Output "	 					<td width='15%'>" $dtmEventDate "</font></td>"| out-file -Append -encoding ASCII -filepath $Filename
			Write-Output "	 					<td width='10%'>" $objEvent.LogFile "</font></td>"| out-file -Append -encoding ASCII -filepath $Filename
			Write-Output "	 					<td width='55%'>" $objEvent.Message "</font></td>"| out-file -Append -encoding ASCII -filepath $Filename
			Write-Output "  					</tr>"| out-file -Append -encoding ASCII -filepath $Filename
		}
		Write-Output "				</TABLE>"| out-file -Append -encoding ASCII -filepath $Filename
		Write-Output "			</DIV>"| out-file -Append -encoding ASCII -filepath $Filen