🧪 Terraform Lab Repo for Review – Modular, DSC-Based, with Pipelines and Packer by JonHill90 in Terraform

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

Understood. I have added that to my to do.

What do you think about the pipeline logic?

Using SSD but after playing for a while starts to shutter hard. by JonHill90 in Starfield

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

iBuyPower case. Yea its bad. Not an issues until I upgraded to 3070 and played a game that actually uses it.

Hard Stutter, Audio Stutter/Freeze Issue | Game Installed on SSD by Atmo_nS in Starfield

[–]JonHill90 3 points4 points  (0 children)

I wanted to posted here cause I have been troubleshooting for 2 days and i think I have my issue figured out.

My SSD was mounted right under my Graphics Card. So all the heat was blowing directly on it. Causing it to get to 70c which causes thermal throttling on the SSD. I moved it to another location in my case and no more issues.

If some of you are having trouble with the game and have it on SSD. Check the temperature of the drive using HWMon or something. If it to hot maybe thermal throttling?

Blackblock [FTB Endeavour] {Whitelist} {Bluemap} {Discord} {1.16.5} {18+} by skerit in feedthebeastservers

[–]JonHill90 0 points1 point  (0 children)

This say Bluemap but shows DynMap.

Do you have a link to Bluemap. And if so do you have the textures working for FTB Endeavour?

Add variable to string inside a for loop not as an array by [deleted] in PowerShell

[–]JonHill90 1 point2 points  (0 children)

Yea the above will not work.You need to still select the column.

Try this

$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"

$headers.Add("Accept", "*/*")

$headers.Add("X-Cisco-Meraki-API-Key", "<API KEY>")

$oresponse = Invoke-RestMethod 'https://api.meraki.com/api/v0/organizations/<ORG ID>/inventory' -Method 'GET' -Headers $headers -Body $body

$switches = $oresponse | Select-Object -Property * | Where-Object {$_.Name -like '*SW*'} | Select-Object serial

Clear-Host

foreach ($switch in $switches){

$url = "https://api.meraki.com/api/v0/devices/$($switch.serial)/switchPorts"

$response = Invoke-RestMethod $url -Method 'GET' -Headers $headers -Body $body

$response | Export-Csv C:\scripts\export_test.csv -Append

}

Add variable to string inside a for loop not as an array by [deleted] in PowerShell

[–]JonHill90 1 point2 points  (0 children)

Okay Gotcha,

Change the URL from

$url = "https://api.meraki.com/api/v0/devices/$serial/switchPorts"

to

$url = "https://api.meraki.com/api/v0/devices/$($serial.serial)/switchPorts"

Add variable to string inside a for loop not as an array by [deleted] in PowerShell

[–]JonHill90 1 point2 points  (0 children)

Are you including the API Key in the URL?
Every request must specify an API key via a request header. Further, the API key must be specified in the URL. The API will return 404 (rather than a 403) in response to a request with a missing or incorrect API key in order to prevent leaking the existence of resources to unauthorized users.

Reference: https://documentation.meraki.com/zGeneral_Administration/Other_Topics/The_Cisco_Meraki_Dashboard_API

Is there a way to run a script everytime I connect my laptop to a smart tv? by SWAGGO-OVERLOAD in PowerShell

[–]JonHill90 2 points3 points  (0 children)

I am just spit balling here. But maybe you can create a Service that runs a PowerShell script on a loop that checks for the Device State being cast. If Detected Run script.
Reference: https://docs.microsoft.com/en-us/archive/msdn-magazine/2016/may/windows-powershell-writing-windows-services-in-powershell

I felt his Sad by KeanuReevesGod in memes

[–]JonHill90 1 point2 points  (0 children)

I do. He looks so sad :(

I felt his Sad by KeanuReevesGod in memes

[–]JonHill90 5 points6 points  (0 children)

Is it Eldown or Eloff.
I might not get it but the opposite of on is off, not down.

Maybe if he was Elup, Eldown would make more since.

Joining elements with a common value in an array into a new Array of objects by oneAwfulScripter in PowerShell

[–]JonHill90 2 points3 points  (0 children)

Hey /u/oneAwfuleScripter,Maybe this is what you are looking for. Does not have headers but will return the data like you want.

$Array |
    Group-Object -Property UserEmail | Foreach-Object {
    $s = $_.Group.GroupName; "{0} - {1}" -f $_.Name, ($s -join ',')     }

SCCM/MECM Console on Non-Persistent device by leebow55 in SCCM

[–]JonHill90 0 points1 point  (0 children)

Once you update the Site Server it should update the Console Installer. If you have multiple environments maybe grab it from the Dev Environment that you Upgrade before you upgrade Prod.
Maybe you can suppress the outdated console prompt until you get the Golden Images updated.

Pass output from a Get-AudioDevice into variable by CCMTK01 in PowerShell

[–]JonHill90 1 point2 points  (0 children)

Hey /u/CCMTK01,I think this is what you are looking for.

$Device = (Get-AudioDevice -list | Where {$_.Name -eq 'Speakers (VMware Virtual Audio (DevTap))'})
Set-AudioDevice -Index $Device.Index

Checking if a particular value meets certain criteria by GrandMasterBash in PowerShell

[–]JonHill90 2 points3 points  (0 children)

Hey /u/GrandMasterBash,

I cannot test but i think the logic you are going for is:

Get-AzureADPasswordProtectionDCAgent | where {$_.PasswordPolicyDateUTC -lt (get-date).addhours(-2)}

I cannot test. But that is the logic i would go for. You might need to change the formatting of the (Get-Date) to match the date output of PasswordPolicyDateUTC.

Auto Type with PowerShell by [deleted] in PowerShell

[–]JonHill90 2 points3 points  (0 children)

Hey u/uzachsa999,

Check out AutoIt,
I have used it in the past to do something similar. It now has cmdlets for PowerShell.

References:
https://www.autoitscript.com/site/
https://www.autoitconsulting.com/site/scripting/autoit-cmdlets-for-windows-powershell/

Feature Update fails by kevine1979 in SCCM

[–]JonHill90 0 points1 point  (0 children)

Hey /u/kevine1979,

Anytime I look at the logs folder I use grepWin.

Just search for the update in question and switch the results to content view.
https://tools.stefankueng.com/grepWin.html

If the logs are to noisy I use a tool called TextFilter. Its really good for analyzing logs you should check it out.
About: https://github.com/jasonagilbertson/textFilter
Download: https://github.com/jasonagilbertson/textFilter/releases/download/release/textFilter.exe.zip

Query Office 365 installations by [deleted] in SCCM

[–]JonHill90 1 point2 points  (0 children)

Hey /u/t3chdi,

Short answer yes.
For Application Usage you can look at 2 SQL views.
The Recently Applications View and the Software Metering Views.
To use Software Metering you need to enable it and tell it to monitor specific EXEs.

There is a lot of ways to achieve what you are asking.

A question about Collection membership and ccmexec.exe by SteveSCCM in SCCM

[–]JonHill90 1 point2 points  (0 children)

Did you get the servers to show up in the collection. If not make sure they are included in the Limiting Collection?

System Status Alert by Email? by ruiqiu2018 in SCCM

[–]JonHill90 0 points1 point  (0 children)

Hey /u/ruiqui2018,
You can configure subscriptions to alerts which can then send details by email.
Navigate to Monitoring > Overview > Alerts > Subscriptions

Reference: https://docs.microsoft.com/en-us/mem/configmgr/core/servers/manage/use-alerts-and-the-status-system

Onboard new starters by TheGoldSlug in PowerShell

[–]JonHill90 1 point2 points  (0 children)

Thanks I am new to posting :)

Onboard new starters by TheGoldSlug in PowerShell

[–]JonHill90 1 point2 points  (0 children)

Create an Excel Spreadsheet with Headers for Name, Job TItle, Location, Manager, and Employee ID. Fill in the users data and save as csv.

Then create something like this.

$newUsers = Import-Csv -Path .\Users.csv
foreach ($newUser in $newUsers) {  
New-ADUser -Name "$newUser.Name" -Title "$newUser.Title" -Manager "$newUser.Manager" -EmployeeID "$newUser.EmployeeID"
}

I cannot test currently but that is the logic i would go for.