Skip to content

Instantly share code, notes, and snippets.

####################################
#Set the PowerShell Execution Policy
Set-ExecutionPolicy Unrestricted -Force
#=======================================================================
# creating Log-File
#=======================================================================
$Date = "{0:yyyyMMdd-hh.mm.dd}" -f (get-date)
$scriptname = "startoobe-test.ps1"
$Logpath = "C:\windows\Logs\VEKA_Provisioning"
Set-ExecutionPolicy Unrestricted -Force
#=======================================================================
# creating Log-File
#=======================================================================
$Date = "{0:yyyyMMdd-hh.mm.dd}" -f (get-date)
$scriptname = "set-language_test.ps1"
$Logpath = "C:\windows\Logs\VEKA_Provisioning\"
if (Get-ChildItem "$Logpath*.log" -Recurse -Filter "*$scriptname*")
{$Log_File = (Get-ChildItem "$Logpath*.log" -Recurse -Filter "*$scriptname*")}
#$Transcript = "$((Get-Date).ToString('yyyy-MM-dd-HHmmss'))-cleanup.log"
#$joinpath = "c:\windows\temp\Autopilot\$Transcript"
#Start-Transcript -Path $joinpath -ErrorAction Ignore | Out-Null
#=======================================================================
# creating Log-File
#=======================================================================
$Date = "{0:yyyyMMdd-hh.mm.dd}" -f (get-date)
$scriptname = "cleanup.ps1"
Set-ExecutionPolicy Unrestricted -Force
#=======================================================================
# creating Log-File
#=======================================================================
$Date = "{0:yyyyMMdd-hh.mm.dd}" -f (get-date)
$scriptname = "set-language.ps1"
$Logpath = "C:\windows\Logs\VEKA_Provisioning\"
if (Get-ChildItem "$Logpath*.log" -Recurse -Filter "*$scriptname*")
{$Log_File = (Get-ChildItem "$Logpath*.log" -Recurse -Filter "*$scriptname*")}
####################################
#Set the PowerShell Execution Policy
Set-ExecutionPolicy Unrestricted -Force
#=======================================================================
# creating Log-File
#=======================================================================
$Date = "{0:yyyyMMdd-hh.mm.dd}" -f (get-date)
$scriptname = "startoobe.ps1"
$Logpath = "C:\windows\Logs\VEKA_Provisioning"
#$Transcript = "$((Get-Date).ToString('yyyy-MM-dd-HHmmss'))-cleanup.log"
#$joinpath = "c:\windows\temp\Autopilot\$Transcript"
#Start-Transcript -Path $joinpath -ErrorAction Ignore | Out-Null
#=======================================================================
# creating Log-File
#=======================================================================
$Date = "{0:yyyyMMdd-hh.mm.dd}" -f (get-date)
$scriptname = "cleanup.ps1"