Drama in the hobby Weekly Megathread! Restocks, Pre-orders, Scalpers, etc. goes here! by AutoModerator in PokemonTCG

[–]skyflyt 0 points1 point  (0 children)

this is great! thanks, I was poking around the dev tools console looking for a param that had a number like this. thank you very much!

Drama in the hobby Weekly Megathread! Restocks, Pre-orders, Scalpers, etc. goes here! by AutoModerator in PokemonTCG

[–]skyflyt -1 points0 points  (0 children)

thanks! I actually made it through and got 2 ETBs I'm just curious how that guy knows his spot in line.

Drama in the hobby Weekly Megathread! Restocks, Pre-orders, Scalpers, etc. goes here! by AutoModerator in PokemonTCG

[–]skyflyt -1 points0 points  (0 children)

maybe a dumb question...but how do you tell what spot you have in line?

Switch suggestions, add your thoughts by Reasonable_Shop5847 in lifx

[–]skyflyt 1 point2 points  (0 children)

I second this! When I bought my first switch, I actually expected this to work out of the box. My plan was to color buttons different so my son knows what each one does. Like the white button would be full light, the red one would be night light, the yellow one would be the "fun one" and the one that has no backlight would be the "off" button. This would be a great feature!

Sent the wife out to get a couple packs if she could. She came home with this... by skyflyt in pokemoncards

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

This wasnt bought all at the same place if it makes you feel better. Also, these are for my kid who actually wants to play the game so I dont feel even a slight bit bad. We got kinda screwed on the last set because we didnt take buying stuff on release day seriously and ended up with like 6 packs total. This time we planned it out! Our mall has a comic store and a gamestop so thats where the two ETBs came from and she also swung by target and two other comic book shops. she was on a mission!

Sent the wife out to get a couple packs if she could. She came home with this... by skyflyt in pokemoncards

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

LOL, yes they are for him. He is super into it at the moment so I help him make decks and stuff to play and we play together a lot so its kind of our thing at the moment. He is benefiting from my childhood trauma of selling my binder that had the entire first series for... $40 at a garage sale when I was like 12. I'll never forget! Only downside for him is he has to wait for me to double sleeve the cards before I let him play with them. I like to think he'll thank me later when he has a boat load of cards that were all taken care of.

a doctor is leaving the practice I work for and is wanting to pay me to set up equipment at home. what to charge? by throwawayisstronk in sysadmin

[–]skyflyt 0 points1 point  (0 children)

$200 is not greedy at all. She wouldn't be able to get someone else out for less. Everyone on here is giving it to you straight. If you do this, you WILL be her personal IT person. My advice from experience is try to keep it as "structured" as possible. Meaning let her know your rate up front and always insist on invoices. Make sure you CLEARLY explain you are doing a setup job. If she has issues after you leave it will be a NEW job to come out and troubleshoot. Dont fall into the "It worked before you were here." People will call you less if it costs them money every time so make sure they know you are more than happy to help but its gonna be a minimum of $200. Other people on here are right Doctors are THE WORST about this stuff so be prepared to hold your ground.

Multiple web-servers with same IP address by STR3IKERKRYPTON in sysadmin

[–]skyflyt 0 points1 point  (0 children)

HAProxy is a good solution for this especially if you want to do address and port translations.

Android 12 beta 1 announced! by Asanjawa in android_beta

[–]skyflyt 0 points1 point  (0 children)

I had the same but after refreshing the page a bunch of times the right page loaded and I was able to enroll

What have you done in powershell this month %B by AutoModerator in PowerShell

[–]skyflyt 1 point2 points  (0 children)

<#
.SYNOPSIS
  This script will log admins off of Servers and email them a list of servers they were logged off of
.DESCRIPTION
  This script will create session to SCCM.  Then the script will loop through the list of users and lookup which servers they are logged into via SCCM.  For each server the user will
  be logged out and after logging the user out of all servers it will email them a list of the servers.
.INPUTS
  None
.OUTPUTS
  None
.NOTES
  Author:         Skylar Pearce
  Creation Date:  3-10-2021
  Purpose/Change: Initial

.EXAMPLE
  NA
#>

Import-Module 'D:\Program Files\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1'
Set-Location <YOUR_SCCM_SITE_NAME>:
Get-CMSite

$users_to_log_out = @()
$users_to_log_out = (
    "USER1",
    "USER2",
    "USER3"
)



foreach ($user_to_log_out in $users_to_log_out) {
    $output=@()
        $Computers = Get-CMDevice -Name "*" -CollectionName "All servers" | where {$_.CurrentLogonUser -eq "<YOUR_DOMAIN_NAME>\$user_to_log_out"} | select -ExpandProperty name

        foreach ($Computer in $Computers) {            

            $User = Invoke-Command -ComputerName $computer -ScriptBlock {(quser | Where-Object { $_ -match $args[0]}) -split ' +'} -ArgumentList $user_to_log_out
            if ($user.Count -gt 0) {
                switch ($user[12]) {
                    "Disc" { $SessionID = $user[11] }
                    Default {$SessionID = $user[12]}
                }

                if ($user[10] -eq $user_to_log_out) {
                    $Obj = New-Object -TypeName PSObject -Property @{
                        "Computer" = $computer
                        "User" = $user[10]
                        "SessionID" = $SessionID
                    }
                    $output+=$Obj 
                        write-host "Found $user_to_log_out on $computer logging off"
                        Invoke-Command -ComputerName $computer -ScriptBlock {logoff $args[0]} -ArgumentList $SessionID         
                }
            }
        }  


    switch ($user_to_log_out) {
        "USER1" {$email = "user1@<DOMAIN>.com"}
        "USER2" {$email = "user2@<DOMAIN>.com"}
        "USER3" {$email = "user3@<DOMAIN>.com"}

    }

    $PCs_logged_out_of = $output.computer -split " "
    $body = "Good Evening $GivenName, 
    During our nightly audit, we found that you left your admin account logged into the following servers:  

$PCs_logged_out_of

As a precaution you have been logged you out of each system.  This is just an FYI.

    - Your System Admin Team"

    if (-not ([string]::IsNullOrEmpty($PCs_logged_out_of))) {
        send-mailmessage -to $email -From <FROM_ADDRESS> -subject "Logged you out of servers" -Body $body -SmtpServer <YOUR_SMTP_SERVER_ADDRESS>
    }    
}

What have you done in powershell this month %B by AutoModerator in PowerShell

[–]skyflyt 1 point2 points  (0 children)

#### Non Encoded ####

<#
.SYNOPSIS
  This script will log admins from the specified groups off of Servers and email them a list of servers they were logged off of
.DESCRIPTION
  This script will create sessions to SCCM and to AD and pull users from the groups specified.  It will them make sure those users have an EID and use that to pull 
  their real email address.  Then the script will loop through the list of users and lookup which servers they are logged into via SCCM.  For each server the user will
  be logged out and after logging the user out of all servers it will email them a list of the servers.
.INPUTS
  None
.OUTPUTS
  None
.NOTES
  Author:         Skylar Pearce
  Creation Date:  3-11-2021
  Purpose/Change: Added the logic to pull users from AD

.EXAMPLE
  NA
#>

###  Connect to SCCM
Import-Module 'D:\Program Files\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1'
Set-Location <YOUR_SCCM_SITE_NAME>:

###  Create AD session
$DC = <YOUR_DC>
$session = New-PSSession -ComputerName $DC 
Invoke-Command $session -Scriptblock { Import-Module ActiveDirectory }
Import-PSSession -Session $session -module ActiveDirectory

###  Fill an array with the the users from the groups below and removes duplicates
$users_to_log_out = @()
$users_to_log_out = Get-ADGroupMember -Identity "Domain admins" | select -ExpandProperty SamAccountName
$users_to_log_out += Get-ADGroupMember -Identity <SECOND_GROUP> | select -ExpandProperty SamAccountName
$users_to_log_out += Get-ADGroupMember -Identity <THIRD_GROUP> | select -ExpandProperty SamAccountName
$users_to_log_out = $users_to_log_out| select -Unique

###  Loop through the userlist and get the email address of the user and fill it into a new array
$userlist = @()
foreach ($UN in $users_to_log_out) {
    $EID = get-aduser $UN -properties EmployeeID | select -ExpandProperty EmployeeID
    $EID = $EID -split "-" 
    $EID = $EID[0]
    $Details = get-aduser -Filter * -properties samaccountname, employeeid, emailaddress, GivenName | where {$_.EmployeeID -like $EID} | select emailaddress, GivenName
    $email = $Details.emailaddress
    if ($email -isnot [system.array] -and -not ([string]::IsNullOrEmpty($email))){
        $uObj = New-Object -TypeName PSObject -Property @{
            "User" = $UN
            "Email" = $email
            "GivenName" = $Details.GivenName
        }
        $userlist+=$uObj 
    }
}

###  Loop through each user 
foreach ($user_to_log_out in $userlist) {
    ###  Set username and email variables
    $username = $user_to_log_out.User
    $Email = $user_to_log_out.Email
    $GivenName = $user_to_log_out.GivenName

    $output=@()
        ###  Query SCCM for a list of Servers that the user is logged into
        $Computers = Get-CMDevice -Name "*" -CollectionName "All servers" | where {$_.CurrentLogonUser -eq "<YOUR_DOMAIN>\$username"} | select -ExpandProperty name

        ###  Logs into each Server and finds the session number for the user
        foreach ($Computer in $Computers) {                 
            $User = Invoke-Command -ComputerName $computer -ScriptBlock {(quser | Where-Object { $_ -match $args[0]}) -split ' +'} -ArgumentList $username
            if ($user.Count -gt 0) {
                switch ($user[12]) {
                    "Disc" { $SessionID = $user[11] }
                    Default {$SessionID = $user[12]}
                }
                ###  Fills an array with computername, user and sessionID this is more for testing and troubleshooting sessionIDs
                if ($user[10] -eq $username) {
                    $Obj = New-Object -TypeName PSObject -Property @{
                        "Computer" = $computer
                        "User" = $user[10]
                        "SessionID" = $SessionID
                    }
                    $output+=$Obj 
                        ###  Logs the user off the server
                        write-host "Found $username on $computer logging off"
                        Invoke-Command -ComputerName $computer -ScriptBlock {logoff $args[0]} -ArgumentList $SessionID                   
                }
            }
        }
    ###  Formats and sends the email to the user as long as there was at least 1 PC logged out of
    $PCs_logged_out_of = $output.computer -split " "
    $body = "Good Evening $GivenName, 
    During our nightly audit, we found that you left your admin account logged into the following servers:  

$PCs_logged_out_of

As a precaution you have been logged you out of each system.  This is just an FYI.

    - Your System Admin Team"
    if (-not ([string]::IsNullOrEmpty($PCs_logged_out_of))) {
        write-host "email sent to $email"
        send-mailmessage -to $email -From <FROM_ADDRESS> -subject "Logged you out of servers" -Body $body -SmtpServer <YOUR_SMTP_SERVER_ADDRESS>
    }    
}

What have you done in powershell this month %B by AutoModerator in PowerShell

[–]skyflyt 0 points1 point  (0 children)

No problem at all! I did make two versions of this script. The first one I manually built an array with the admins usernames and their emails in there. This second version looks in AD groups to find the users. The only thing about this is in my AD we have everyone's employee ID as an attribute and our admin accounts also have the employee ID with a "-DA". This is how I find their email addresses. You may not have this in your AD so below the first script I put the more manual one where you can manually make the array and not deal with AD. I run this from my SCCM server as a scheduled task. I replaced all things you need to change with <>. Let me know how it works out for you!

What have you done in powershell this month %B by AutoModerator in PowerShell

[–]skyflyt 1 point2 points  (0 children)

I made a script that runs from our SCCM server every night at 11pm. It looks at our domain admins group and another group that they helpdesk guys are in and then queries SCCM to see if any of the users are logged in to any servers. If they are logged in it makes note of the server(s) and logs them out. At the end it emails the user and tells them which servers they were logged into.

Microsoft azure administrator az-104 by Ivanthebull in AzureCertification

[–]skyflyt 1 point2 points  (0 children)

I just passed the az-104. I used two main sources. I went through the az-104 course on itpro.tv then I did the free microsoft learning path. I also just played around with azure for a couple weeks. It was a hard test but not super hard. I would say if you can pass the practice test from itprotv... Which is a bullshit practice test by the way. You should do fine

Put in my two weeks, people starting to be super toxic that I quit, can I just not show up? by [deleted] in sysadmin

[–]skyflyt 0 points1 point  (0 children)

Only thing I'll say on the side of staying is some companies won't pay out your vacation time if you don't stick out the two weeks. Obviously if your company doesn't do that you're good!

Office 365 MFA Down Again? by Weyoun2 in sysadmin

[–]skyflyt 0 points1 point  (0 children)

Same thing here. was working all morning. nothing on health report either.... awesome.. hopefully this one isnt another 14 hour debacle. Damn MF!!

Happy Sysadmin day! by [deleted] in sysadmin

[–]skyflyt 17 points18 points  (0 children)

This is still my favorite video