Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
6 votes
0 answers
141 views

Advanced Logging Function

Way more blood, sweat, and tears have went into this then I would care to admit, but this has been a function I have been using in some shape or form for quite a while and it has taught me alot. It ...
Nick W.'s user avatar
  • 226
4 votes
1 answer
1k views

Getting a list of all computer objects in each AD domain

So I wrote this script and although it does work I can't help but think that it can be more efficient with all the repetitive code. Can anyone offer any suggestions on making it fewer lines and ...
JoeRod's user avatar
  • 141
4 votes
1 answer
160 views

Reading event logs of several computers

This is my first PowerShell script. It reads the event logs of several computers in the local network and lists error/warning messages written to them in the last 24 hours, if any. I'll appreciate ...
kodkod's user avatar
  • 441
4 votes
1 answer
225 views

Powershell - Simplified Logging

Today I have dealt with logging in PowerShell as well as with the different streams and the pipeline. Unfortunately, none of these solutions really met my needs. My requirements are: I need to ...
kami's user avatar
  • 41
3 votes
0 answers
93 views

Restart a service and check its status

I have written this script to stop and start a specific service and check if it was able to load and unload applications tasks correctly, by checking a status in application log. Also it writes a log ...
SRP's user avatar
  • 31
2 votes
2 answers
162 views

Pulling data from a CSV and populate AD

I've been piecing this together little by little for a little over a week. I'm curious if there's a cleaner way to accomplish what this is doing. Basically, it's pulling data from a CSV, creating ...
RKillcrazy's user avatar
0 votes
1 answer
657 views

Powershell GetKeystate with outfile

I got a keylogger Powershell script to protocol my input, since I'm quite paranoid if someone uses my PC. However, some letters (I have an anti-ghosting keyboard) are swallowed if I type them in fast....
0x45's user avatar
  • 101