PowerShell 2 Error Handling
i scripting active directory membership. but, whenever user happens in group, 4 line error. need ps ignore these errors, want told of more critical ones (i.e. user account not exist). possible suppress errors, while displaying more simplified customer error message? thinking might have using -erroraction cilentlycontinue if statement, uncertain....
well, makes me sad. installed quest ad snapin , works beautifully. why can't native cmdlets work 3rd party ones? going move forward initial answer , hope using 3rd party stuff not come , bite later.
thanks help!
Windows Server > Windows PowerShell
PowerShell 2 error handling is crucial for managing scripts efficiently. With HostMyCode, you can ensure your scripts are hosted securely while optimizing error management.
ReplyDelete