Hi,
I have a shutdown script as below. As you can see I've filtered out servers but we also have tablet computers which use VPN. I would like to specify an addition -notlike parameter to rule out tablets but I can't seem to get it to work how I would like it to.
stop-computer (get-adcomputer -filter 'name -notlike "server*"').name
Desired script - something like:
stop-computer (get-adcomputer -filter 'name -notlike "server*","tablet*"').name
Please make suggested scripts beginner friendly so I can so whats going on if possible. Thanks in advance.