forked from brianfgonzalez/Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakeMDTLog.ps1
18 lines (13 loc) · 1.05 KB
/
MakeMDTLog.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$sTime = Get-Date -Format hh:mm:ss
$sDate = Get-Date -Format MM-dd-yyyy
# Create Global Variables
$oInvocation = (Get-Variable MyInvocation).Value
$sCurrentDirectory = Split-Path $oInvocation.MyCommand.Path
$sScriptNameExt = $oInvocation.MyCommand.Name
$sScriptName = $sScriptNameExt.Substring(0, $sScriptNameExt.Length - 4)
$sUpdate = "Copy of Folder was successful"
$sUpdateStringTest = ("<![LOG[" + $sUpdate + "]LOG]!><time=""" + $sTime + """ date=""" + $sDate + """ component=""" + $sScriptName + """ context="""" type=""1"" thread="""" file=""" + $sScriptName + """>")
Write-Host $sUpdateStringTest
Exit
#$sUpdateStringTest = @("<![LOG[" + $sUpdate + "><time=""" + $sTime + """ date=""" + $sDate + """ component=""" + $sScriptName + """ context="""" type=""2"" thread="""" file="Z-CopyContentToSystemDrive">)
# <![LOG[Copy Folder: D:\Deploy\Applications\Copy Content to SystemDrive\Support\* to C:\Users\SUPPORT]LOG]!><time="08:32:05.000+000" date="03-17-2014" component="Z-CopyContentToSystemDrive" context="" type="1" thread="" file="Z-CopyContentToSystemDrive">