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 }
|
||||
|
||||
Reference in New Issue
Block a user