Option to run application only when on Domain Authenticated network
Today: Application will execute as soon as the client have an Internet-connection. Sometimes our scripts or actions are depending on the Active Directory network. An example is when we activate BitLocker and have a policy to store the RecoveryPassword in Active Directory, we need the computer to have a connection to the Domain Controllers.
Solution: A option per application to only run when on Domain Authenticated network.
Powershell logic to tell is a computer is on the Active Directory network:
If ((Get-NetConnectionProfile).NetworkCategory -contains "DomainAuthenticated")
{
"Run..."
}
Else
{
"Dont run..."
}
4
Please sign in to leave a comment.
Comments
0 comments