Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Check if computers are up and running in a certain OU
easternnl
Jul 24th, 2015
1,080
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
PowerShell
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
Get
-
ADComputer
-
filter
*
-
searchbase
"OU=Servers,OU=Testlab,DC=testlab,DC=local"
|
%
{
if
(
(
Test
-
Connection
$_
.name
-count
1
-quiet
)
-eq
$false
)
{
write-host
$_
.name
}
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Easiest method for beginners
CSS | 14 min ago | 0.99 KB
Money comes easy nowadays
CSS | 14 min ago | 0.99 KB
BTC SWAP GLITCH
CSS | 15 min ago | 0.99 KB
Changelly Hacked
CSS | 15 min ago | 0.99 KB
Exploit Documentation
CSS | 15 min ago | 0.99 KB
Exploit found by AI
CSS | 15 min ago | 0.99 KB
Custom em_printables_pdf_get_invoice_number f...
8 hours ago | 0.24 KB
Exploit Documentation
CSS | 10 hours ago | 0.99 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!