Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

PowerShell Script: How to query a current logon user in part of E.G AD group domain1\Group1 ?

$
0
0

Hi Scripts guys,

I am new to powershell . I would like to achieve the following :

1. to check e.g if current logon user is member of .e.g. to domain1\group1

if yes then execute another

a. do a subst of a: to d:

b. follow by executing the 2nd cmd e.g execute.ps1  

else exit and

proceed with execute.ps1

please advice how best to achieve this ? Thanks in advance for your help :)


Viewing all articles
Browse latest Browse all 15028

Trending Articles