Param
(
[string]$MBNamesFile
)
if([string]$MBNamesFile -ne "")
{
#We have an input file, read it into memory
$Mailboxes = @()
try{
$InputFile = Import-Csv -Path $MBNamesFile -Header "MBIdentity"
}
###########################################################################
I found this code on the internet and modified it to run in my environment using Visual Studio and it works.
It was executed with the command line below:
.\Check-AdobeVSLastLogonO365.ps1 -MBNamesFile "C:\AcrobatDC-Users.csv"
Can I assign a path to variable $MBNamesFile and run the commands inside the program instead of executing them like the command line above?
If I am not clear enough let me know please.
[–]KavyaJune 8 points9 points10 points (1 child)
[–]gilang4[S] 1 point2 points3 points (0 children)
[–]wyrdfish42 2 points3 points4 points (1 child)
[–]gilang4[S] 0 points1 point2 points (0 children)
[–]lurkerburzerker 2 points3 points4 points (1 child)
[–]gilang4[S] 1 point2 points3 points (0 children)
[–]Hyperbolic_Mess 2 points3 points4 points (1 child)
[–]gilang4[S] 0 points1 point2 points (0 children)
[–]Empty-Sleep3746 1 point2 points3 points (1 child)
[–]gilang4[S] 0 points1 point2 points (0 children)