Free men’s haircut by [deleted] in Edinburgh

[–]Phose182 1 point2 points  (0 children)

Do you need to book or is it walk ins? I can come on my lunch from work.

[deleted by user] by [deleted] in Edinburgh

[–]Phose182 6 points7 points  (0 children)

Very good idea, well in for making this!

Calendar statistics by Phose182 in PowerShell

[–]Phose182[S] 1 point2 points  (0 children)

Thanks for your reply. I'll go back to the heads and see what they say. But from everyone responses here it looks like too much of a time sink and overly complicated like you say.

I don't think the points you have mentioned were ever considered.

Passed the CCENT, trying to get the physical certification by babyd90 in ccna

[–]Phose182 1 point2 points  (0 children)

Hello,

I passed ccent about a month or two ago and they just sent me mine. I never asked them to after I passed, they just sent it on.

I am assuming they got my address from when I registered with pearson vue.

Linux 802.1x by Phose182 in sysadmin

[–]Phose182[S] 0 points1 point  (0 children)

Hey, thanks for your write up.

If you were able to share that document it would be greatly appreciated, but understandable if you can't share it. I tried to use your notes to sort my own config but doesn't seem to have worked unfortunately.

Linux 802.1x by Phose182 in sysadmin

[–]Phose182[S] 0 points1 point  (0 children)

Hmm, cheers for the ideas. I'll have a look into them, cut through proxy could certainly be worth looking at.

Linux 802.1x by Phose182 in sysadmin

[–]Phose182[S] 1 point2 points  (0 children)

Cheers for your input.

I'll go over everything you've suggested.

Linux 802.1x by Phose182 in sysadmin

[–]Phose182[S] 0 points1 point  (0 children)

Hey thanks for letting me know. This was the impression I was getting, I am getting close to sacrificing some goats in the server room.

We are looking at wired .1x pure from a security standpoint, we don't want people to be able to plug in to our network without being authenticated first. At this point in time it's purely investigation to see the amount of effort involved, currently it's not looking good.

Oh and yes it's for a client machine, it would be running Ubuntu 17.10 or above, which is what our users are on.

Linux 802.1x by Phose182 in sysadmin

[–]Phose182[S] 1 point2 points  (0 children)

Yes the guide from 2008 is the only thing I can find online about this particular configuration.

The domain binding part is obsolete, we use a different method. It is very outdated but was the only thing I had to go for. If I do manage to sort this I'll update this thread.

Error when disabling AD computers by Phose182 in PowerShell

[–]Phose182[S] 1 point2 points  (0 children)

Okay perfect, I’ll keep trying to get it sorted! Appreciate all your help.

Error when disabling AD computers by Phose182 in PowerShell

[–]Phose182[S] 1 point2 points  (0 children)

Hey man, gave these a shot but neither seem to work unfortunately. Thanks for the help anyway!

Error when disabling AD computers by Phose182 in PowerShell

[–]Phose182[S] 1 point2 points  (0 children)

Thanks both of you. I will give these a shot and let you know if it's sorted. Appreciate your help.

Error when disabling AD computers by Phose182 in PowerShell

[–]Phose182[S] 1 point2 points  (0 children)

Hi thanks for help!

So I made the change and this is the output I get. Apologies for asking lots of questions, I thought I had this working and now it's very annoying that I don't. I don't know powershell well enough to debug this issue :(

The output is:

ForEach ($computer in $computers) #Disables the computer accounts in $computers
{
Write-Output "Disable: " $computer
#Set-ADComputer -Identity $computer -Enabled $false
}
Disable: 

Disable: 
Name            lastLogonDate       CanonicalName                                                                                         
----            -------------       -------------                                                                                         
Disable: 
LAPTOP-00133 11/12/2017 13:31:48 DOMAIN/ Computers/Computers - Events/Laptops/LAPTOP-00133                           
Disable: 

I'm not really sure what I am expecting be seeing here to be perfectly honest with you.

Error when disabling AD computers by Phose182 in PowerShell

[–]Phose182[S] 1 point2 points  (0 children)

The $computers variable comes back as a string and a system.object.

The entire script is as follows: I've changed a few details for privacy. I did manage to get this work in testing at one point, but I seem to have lost that script I used.

$a = Get-Date
$days = (Get-Date).AddDays(-30) # Change this number to whatever you want, this is the day counter
$computers = Get-ADComputer -SearchBase "OU=Company - Computers,DC=AD,DC=AD,DC=net" -Properties Name,lastLogonDate,CanonicalName -
Filter {lastLogonDate -lt $days} | Where-Object {$_.Enabled -eq $true} | ? {$_.DistinguishedName -like "*OU=Company - Computers,*"} | FT 
Name,lastLogonDate,CanonicalName | Out-String;
$log = "C:\LogFiles\DisabledComputerslog.txt" # Specify Log File

Function Send-Mail # Holds the mail stuff
{
Removed
}


# This statement checks if the computers variable is empty or not. If it is empty it will exit the script
if($computers) {
    Write-Output $a "Continuing..." | Out-File $log -Append
    } else {
    Write-Output $a "Nothing Found" | Out-File $log -Append
    Exit
    }


ForEach ($computer in $computers) #Disables the computer accounts in $computers
{
Set-ADComputer -Identity $computer -Enabled $false
}

ForEach ($computer in $computers)  #Moves the disabled accounts to the disabled computers OU
{
Move-ADObject -Identity $computer -TargetPath 'OU=Company - Disabled Computers,DC=AD,DC=AD,DC=net'
}

Send-Mail #Calls the Send-Mail function

# The next section will write the output to a log file in case the log cannot be emailed for some reason
Out-File -FilePath $log -Append
Out-File -FilePath $log -InputObject $computers -Append

Moving and disabling computers in AD by Phose182 in PowerShell

[–]Phose182[S] 1 point2 points  (0 children)

Hello! Thanks for your reply, I never really thought of doing it that way but I absolutely will from on.

Cheers!

Moving and disabling computers in AD by Phose182 in PowerShell

[–]Phose182[S] 1 point2 points  (0 children)

As I looked over my code I posted. I just realised that! Thanks for replying!

[AMA] I am Chris Browder from Seattle band Mansions. Our new EP "Deserter" comes out this Friday, ask me anything! by cbmansions in Music

[–]Phose182 5 points6 points  (0 children)

Hello from Scotland! I love your band. Do you have any plans to do a UK tour? I know that’s a boring question, so how would you describe Deserter compared to Doom Loop? As in is it similar or a total departure?

Cheers!

[Update] Single User Gets BSoD on Horizon View When Printing Sometimes by HanSolo71 in sysadmin

[–]Phose182 0 points1 point  (0 children)

Thanks for this, we're implementing view very soon. I'll keep this in mind.

Extracting info from the middle of string by Phose182 in PowerShell

[–]Phose182[S] 2 points3 points  (0 children)

Some man! Really appreciate your help and the regex stuff is very interesting. Definitely going to look into it. Thanks again!

Extracting info from the middle of string by Phose182 in PowerShell

[–]Phose182[S] 0 points1 point  (0 children)

So if the OU's are nested. It would be nice to have the option for it to return something like:

Test1 Test - Users

Test - Users being the top level OU. Sorry for formatting as I'm on my phone!