added new Output directory to root MSP directory
moved InstalledSoftware.csv to new Output directory and added date stamp to filename
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
## Specify output file to write data to
|
||||
$FILE = "${Env:UserProfile}\Desktop\InstalledSoftware.csv"
|
||||
$CurrentDateTime = Get-Date -Format "yyyyMMddHHmmssffff"
|
||||
$FILE = "${OutputDirectory}\${CurrentDateTime}_InstalledSoftware.csv"
|
||||
|
||||
## Clear content of output file
|
||||
If ( Test-Path $FILE ) { Clear-Content -Path $FILE -Force }
|
||||
|
||||
@@ -4,6 +4,7 @@ $MSPName = "Emberkom"
|
||||
## Setup the MSP management directories
|
||||
If ( Test-Path ${Env:ProgramData} ) {$RootDirectory = "${Env:ProgramData}\${MSPName}" } Else { $RootDirectory = "${Env:SystemDrive}\${MSPName}" }
|
||||
$ScriptsDirectory = "${RootDirectory}\Scripts"
|
||||
$OutputDirectory = "${RootDirectory}\Output"
|
||||
$ToolsDirectory = "${RootDirectory}\Tools"
|
||||
$LogsDirectory = "${RootDirectory}\Logs"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user