Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scriptPath = $script:MyInvocation.MyCommand.Path
- $CD = Split-Path $scriptpath #Get the current directory of the script that is located
- $RefreshTypeto='1' #This is to convert the membership schedule ,1 is to remove the schedule.
- $date = (get-date -f dd-MM-yyyy-hhmmss) #Get the current date and time when script runs
- $collectionsfound="$CD\collections with direct rules-"+$date+".csv" #This is our output file to pipe all collections with direct based rules for our reference later.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement