Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. $scriptPath = $script:MyInvocation.MyCommand.Path
  2. $CD = Split-Path $scriptpath #Get the current directory of the script that is located
  3. $RefreshTypeto='1' #This is to convert the membership schedule ,1 is to remove the schedule.
  4. $date = (get-date -f dd-MM-yyyy-hhmmss) #Get the current date and time when script runs
  5. $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