PowerShell – How to use && type statement

  command, powershell, windows

Using the command below, I am able to get the value of a group policy setting:

secedit.exe /export /cfg C:testsecedit.txt && type C:testsecedit.txt | findstr "SeEnableDelegationPrivilege"

I need to be able to use the same command on PowerShell and I am having issues converting the && statement to work on PowerShell. I tried using this format () -and (), however, that has not worked, does anyone know a way of getting the && statement to work on PS?

Source: Windows Questions

LEAVE A COMMENT