halbaradkenafin
Members-
Posts
1,219 -
Joined
-
Last visited
Content Type
Forums
News
20th
EduGeek EDIT Conference
Blogs
Everything posted by halbaradkenafin
-
Decided to pick up the Skyrim DLCs as I've started playing again and never got them in any of the other sales. Pretty good deal on them if I buy the bundle for £22 or I can buy the "Legendary" edition of Skyrim for £12 but I don't get another copy of the main game, which doesn't bother me as I'm saving £10 on the price of the DLCs. Also picked up Fallout:NV for gf as she'd been trying to play my copy recently but Steam doesn't like that when the other person is also playing a game from their library.
-
I didn't reveal that the real secret is to google "computer no work" and it would magically tell you what's wrong.....damn. Do I have to hand in my IT Tech membership card and Tech Aura generator?
-
Isn't that how most of us do our jobs when it isn't something we've dealt with more than a few times?
-
Definitely this if the forest level is 2008 (r2?) or above. Better yet set it to a generic account which you have access to but isn't your own (so [email protected] or something) and that way it's easy to transfer over to someone else should you move on or hire someone else to help you.
-
I've been looking over one of those "Top 25 games on 3DS" lists and watching attached videos, I'm liking the look of Steamworld Dig (for a nice way to kill a few hours here and there) and Fire Emblem: Awakening (story and graphics look pretty good and an interesting combat system since I've never played a Fire Emblem game before).
-
Stop making me want to spend more money!
-
I didn't know there was a new one coming out. Guess I'll give this a try for a few weeks and see how I like it and possibly upgrade and put this one back on eBay when I'm done with it.
-
Tried Monster Hunter last night on gf's 3ds and it was pretty cool, controls are a little odd but I'm sure I'll adjust to them. Only problem is that the normal 3ds screen doesn't seem like it's big enough for a game like Monster Hunter but I'm not sure a 3ds xl screen would be either as it seems like the sort of game I'd play on a console connected to a TV. I'll see how it goes when I get more than 30 mins or so of playing it.
-
Majora's Mask was one I'd thought about, haven't actually played that yet and I enjoyed Ocarina of Time when I played it some years ago on the N64 (I just looked and that was a lot longer ago than I remember it being). I've heard good things about Bravely Default and I do enjoy some JRPGs so I'll have a look at that.
-
Just caved and bought a 3ds from eBay, going to play some of the spare games gf has before buying my own. Any recommendations? I'll likely pick up a pokemon game for time killing and give Monster Hunter a try (gf has this). Console comes with Smash Bros which should be good as I like the other ones.
-
Those are the best kinds of fleets, just derping around in whatever was in the hangar and fitting it with select all -> right click -> fit to ship.
-
Youtube could also be html5 related, try going to http://www.youtube.com/html5 and swapping to the other player (I think it defaults to html5 now but I've not seen it stay that way).
-
We've got 3 configurations for staff laptops (all the same base image but the post-imaging process changes), one for pure in-school use, one for home only use and one for use at both. We also provide easy access to RDS so many staff don't need much installed on their laptops and quite a few just don't bother with them and get by with their personal devices.
-
What if your core switch fails?
halbaradkenafin replied to Techie2000's topic in How do you do....it?
We've got 2 so that handles redundancy for us and we've got pretty good turnaround on our support from the guys who manage and support the networking infrastructure. We've probably got enough spare edge switches to lose maybe 6 or 7 of those too before we need to worry too much, mostly due to having had too many installed and some only having a few ports actually used in a 48 port switch. Cisco does that for it's switches (or did last time I looked), the HP full lifetime warranty would make me swap everything out if it wasn't going to be so expensive to replace all our gear. -
Might be waiting quite a while for that as they aren't doing Service Packs anymore (and haven't since W7).
-
This is the most important habit to get into when exploring. You either learn quickly or end up with a lot of practice of your probing skills (not so big a deal anymore since they simplified the system with formations but still useful). I haven't played in a few days due to other stuff going on and now I've got to try to split my time between Eve and Skyrim, not sure which will win out.
-
[Powershell] Does anyone have a script which .....
halbaradkenafin replied to halbaradkenafin's topic in Scripts
cmdletbinding() is pretty awesome when writing scripts, it's pretty good to be able to add Write-Verbose and put some useful text in for when you want to get more in-depth output from your scripts especially as it then applies the -verbose parameter to any cmdlets you run inside your script which will accept them. -
[bug/error] Editing Posts
halbaradkenafin replied to halbaradkenafin's topic in EduGeek.net Site Problems
Makes sense, I'll remember that for future (hopefully won't need it too often though). Thanks. -
I'd second the Hubsan X4, it's a pretty good little thing and cheap enough that you don't mind crashing it (and you will crash it alot), I'd pick up a pack of extra prop blades for when they inevitably snap as well.
-
There appears to be some limit on editing posts, I wanted to make a change to a script posted here but found the edit button wasn't available while it is available on my more recent posts. I'd guess the limit is how many previous posts you can change as the post I wanted to edit was from yesterday, so it probably isn't limited by time since the post. Is this happening to everyone or just some weird bug I've hit?
-
[Powershell] Does anyone have a script which .....
halbaradkenafin replied to halbaradkenafin's topic in Scripts
Apparently I can't edit this post but I've updated the code a little, made a "small" mistake when collating the event logs from each server and it turns out that I was actually adding the logs for each server onto the logs from the previous ones and then looping over the whole collection again, which in my case meant I was looping over the first DC logs 3 times, the second 2 times and the final DC 1 time. Unsurprisingly this was a little inefficient and I've corrected it now. -
The only way I can think this might work is if you've set up Outlook with Out of Office and set a rule in place which checks any emails from the helpdesk email address containing the words "Assigned to you" (or whatever it is the ticket email says if you've got it set up to do that) would then reply with #unassign or whatever you want to do. Obviously if you don't have it set up for sending emails when a ticket is assigned to you (I know it means a lot more emails to ignore/delete) then I'm not sure there is a way around it other than perhaps telling people to use Open Tickets view instead of My Tickets view and being sensible about resolving other peoples new tickets when they aren't in.
-
[Powershell] Does anyone have a script which .....
halbaradkenafin replied to halbaradkenafin's topic in Scripts
This is something I need to work on in my scripts but luckily Powershell is pretty good in terms of sensible naming of cmdlets and parameters so it's fairly readable. If the script writer has been good with variable names and coupled with good help comments at the start of the script then it can be almost like pseudo code in its readability. When learning how a new script does something I break it down as much as possible, "this block does x through using that cmdlet and this logicc" etc. If I don't understand why there is that result or logic test then I'll use the ISE to run individual lines of code and examine the output. I'd even go so far as to say that the ISE should be everyone's default Powershell environment, even for running cmdlets that you know exactly what they do as it gets you into the habit of using it and intellisense is awesome. -
[Powershell] Does anyone have a script which .....
halbaradkenafin replied to halbaradkenafin's topic in Scripts
That's the easy way to handle it (we've also got impero which logs all this as well) but I was mostly doing it for the experience of playing around with event logs and because someone asked for something like this, which I assumed meant they didn't have anything like the text files or other logging in place. -
[Powershell] Does anyone have a script which .....
halbaradkenafin replied to halbaradkenafin's topic in Scripts
I put together a script a while ago to find out which users had logged in to a PC by checking the Event Log, it worked reasonably well but I wasn't entirely happy with it. "Luckily" someone asked if I had a script for the same reason and I figured I'd update it and clean it up. So here it is for anyone to use, I've called it Get-LoginSuccess and that's what it's called in the examples but call it whatever you want really. The help does need a little updating for what the script does now but it's still reasonably accurate. It can query a single PC (must be switched on) and either look for all instances of a single user logging in or every user who logged in and when within a set time frame. It can also query your DCs for every computer a user has logged in to but this takes a while depending on number of DCs and number of clients/users as it trawls through the event logs, I ran it earlier and it took about 1.5 hours to report back based on 3 DCs and about 500 users and devices. You'll need the AD module available on the machine to query DCs as it uses Get-ADDomainController to find all them in the environment but can be reworked to a static list. Event logs on the DCs may not go back as far as you'd like so it's probably better to query a specific machine (or two or whatever) if you only need to check a few or over a long time period (more than a few days). <# .Synopsis Checks the event log of the domain controllers and report any successful login attempts for a particular user and which computers they logged in to. Needs to run as Administrator to access the log. .DESCRIPTION Checks the event log of the domain controllers and report any successful login attempts for a particular user and which computers they logged in to.Uses Get-WinEvent and filtering on ID 4624 between the dates provided. Then collates the Eventlogs into XML, which is searched for the username and that is stored along with the IP and computer name (from DNS lookup) and output to the user. This script can take quite a while to run due to the number of event log entries that are logged on each server, testing was showing times of 10+ minutes to query each server when looking at the results for just one day. Further investigation required to attempt to streamline the process to reduce this time. .EXAMPLE Get-LoginSuccess -Username "test.user" -StartDate "10/01/2015" -EndDate "11/01/2015" This will get all login successes by user test.user on the dates 10/01/2015 and 11/01/2015. If the second date is in the future then it will only get them from any days that have actually happened. .EXAMPLE Get-LoginSuccess -Username "test.user" This will get all login successes by user test.user for the current day. .EXAMPLE Get-LoginSuccess -ComputerName "test-computer" This will get all login successes by each user who logged into test-computer for the current day. .EXAMPLE Get-LoginSuccess -ComputerName "test-computer" -StartDate "10/01/2015" This will get all login successes by each user who logged into test-computer from the start date till today. .EXAMPLE Get-LoginSuccess -ComputerName "test-computer" -StartDate "10/01/2015" -EndDate "15/01/2015" This will get all login successes by each user who logged into test-computer from the start date till the specified end date. .EXAMPLE Get-LoginSuccess -ComputerName "test-computer" -Username "test.user" -StartDate "10/01/2015" -EndDate "15/01/2015" This will get all login successes by specified userlogging into test.computer from the start date till the specified end date. #> [cmdletbinding()] param ( [Parameter(Mandatory=$True,HelpMessage='Computer to check',ValueFromPipelineByPropertyName, position=0,ParameterSetName="Computer")] [Alias('Computer Name','Computer','Device','Device Name')] [string]$ComputerName = "wsh-b103-td2", [Parameter(Mandatory=$false,HelpMessage="Username to search for", ValueFromPipelineByPropertyName,Position=0,ParameterSetName='IndividualUser')] [Parameter(HelpMessage="Username to search for", ValueFromPipelineByPropertyName,Position=1,ParameterSetName='Computer')] [alias('user','name')] [string]$Username, [string]$StartDate = $(Get-Date -format dd/MM/yyyy), [string]$EndDate ) Process { if ($EndDate -eq '' -or $EndDate -eq $StartDate) { $EndDate = Get-Date -date ((Get-date $StartDate).AddDays(1)) -format dd/MM/yyyy } else { $EndDate = Get-Date -Date $EndDate -Format dd/MM/yyyy } if ($EndDate -lt $StartDate) { Write-error "End date ($EndDate) must be after start date ($StartDate). Please try again with the correct dates." Exit } $EventOutput =@() $EventLog = @() Switch ($PSCmdlet.ParameterSetName) { "IndividualUser" { $Controllers = Get-ADDomainController -filter * Foreach ($Controller in $Controllers) { Write-Verbose "Getting event data for $StartDate until $EndDate from $($Controller.Name)" $EventLog += Get-WinEvent -FilterHashTable @{logname='security';id=4624;StartTime=$StartDate;EndTime=$EndDate} -ComputerName "$($Controller.Name)" Foreach ($Event in $EventLog) { $SingleEventOutput = New-Object -TypeName PSObject -Property @{'Username'='';'Computer'='';'Date'="$($Event.TimeCreated)"} write-Verbose "Converting to XML" $EventLogXML = [xml]$Event.ToXML() Write-Verbose "Parsing XML and finding required entries" $ValidEntry = 0 foreach ($Property in $EventLogXML.Event.EventData.Data) { if ($Property.Name -eq "TargetUserName" -and $Property.'#text' -eq $Username) { $SingleEventOutput.Username = $Property.'#text' $ValidEntry++ } elseif ($Property.Name -eq "IpAddress" -and $Property.'#text' -notmatch "::ffff:" -and $Property.'#text' -notmatch "" -and $ValidEntry -eq 1) { Write-Verbose "Getting computer name from IP Address" $PCName = nslookup (($Property.'#text').substring(7)) $SingleEventOutput = (($PCName[3]).substring(9)) $ValidEntry++ } } if ($ValidEntry -eq 2) { $EventOutput += $SingleEventOutput } } } } "Computer" { Write-Verbose "Getting event data for $StartDate until $EndDate" $EventLog += Get-WinEvent -FilterHashTable @{logname='security';id=4624;StartTime=$StartDate;EndTime=$EndDate} -ComputerName $ComputerName Foreach ($Event in $EventLog) { $SingleEventOutput = New-Object -TypeName PSObject -Property @{'Username'='';'Computer'="$Computername";'Date'="$($Event.TimeCreated)"} write-Verbose "Converting to XML" $EventLogXML = [xml]$Event.ToXML() Write-Verbose "Parsing XML and finding required entries" $ValidEntry = 0 foreach ($Property in $EventLogXML.Event.EventData.Data) { if ($Username -ne '') { if ($Property.Name -eq "TargetUserName" -and $Property.'#text' -eq $Username) { $SingleEventOutput.Username = $Property.'#text' $ValidEntry++ } } else { if ($Property.Name -eq "TargetUserName" -and ($Property.'#text').Trim() -notmatch "$ComputerName" -and $Property.'#text' -ne "SYSTEM" -and $Property.'#text' -ne $env:USERNAME) { $SingleEventOutput.Username = ($Property.'#text').Trim() $ValidEntry++ } } } if ($ValidEntry -eq 1) { $EventOutput += $SingleEventOutput } } } } Write-Output $EventOutput }
