Can’t figure out the syntax for a script

Home Forums Scripting PowerShell Can’t figure out the syntax for a script

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    jason0923
    Member
    #166668

    I’m trying to run a script that adds users to a group if they are in a file but also removes them if they are no longer in that file so for example the forst part works fine

    ForEach ($User in $UserList)

    Then do what I need

    What I can’t figure out is how to say for each user not in list then run this

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.