Skip to content

Commit a480372

Browse files
PsCustomObjectPsCustomObject
authored andcommitted
Renamed post file
1 parent 54c2340 commit a480372

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

_posts/2019-03-12-Check-If-Computer-Is-Connected-Domain-Network.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
title: "Check if computer is connected to Domain Network"
33
excerpt: "How to check if a computer is connected to the domain network"
44
categories:
5-
65
- PowerShell
76
- HowTo
87
tags:
98
- PowerShell
109
- Domain Network
1110
- Tips
11+
- How to check if computer is connected to domain
1212
---
1313

1414
## Remote or Domain Network?
@@ -46,10 +46,10 @@ Putting all together this can easily be turned into a script similar the followi
4646
```powershell
4747
try
4848
{
49-
# Check if computer is connected to domain network
50-
[void]::([System.DirectoryServices.ActiveDirectory.Domain]::GetComputerDomain())
51-
52-
Write-Host 'Domain Network'
49+
# Check if computer is connected to domain network
50+
[void]::([System.DirectoryServices.ActiveDirectory.Domain]::GetComputerDomain())
51+
52+
Write-Host 'Domain Network'
5353
}
5454
catch
5555
{
File renamed without changes.

0 commit comments

Comments
 (0)