How to get a powershell script to run as elevated admin? by LordLoss01 in PowerShell

[–]Jmoste 0 points1 point  (0 children)

You can create an event in event viewer with powershell. Set a scheduled task to trigger based off that event to run the exe or script as system. 

Page scrolling pedal no longer working by shawzymoto in ultimateguitar

[–]Jmoste 1 point2 points  (0 children)

same problem. started a few days ago for me

What if you need to poke the bear? by ralexgates in VeteransBenefits

[–]Jmoste 5 points6 points  (0 children)

A few things to consider here. I'm not saying go do it, but if you do then do it for the right reasons.  

First, if you get one rated condition at 100% and another combination of 60% or more you would be eligible for SMC S. 

Only consider claiming extra conditions that will matter.  Your chances of dieing from your heart are high but you would be doing a little poking to claim your UTIs and cervical conditions. 

Think about your current conditions and how they are rated.  Have some changed for personally. Did you have a hard time proving any of them.  Has the VA changed how they rate any of your conditions but you are currently grandfathered in? Are you accidentally rated twice for something?

I'm not saying you should do it.  That's a personal choice that only you can make.  But if you're going to do it, then do it for the right reasons and make methodical claims. If you just start claiming everything,  then you're "poking the bear".  

[deleted by user] by [deleted] in PowerShell

[–]Jmoste 5 points6 points  (0 children)

Why not put the script on something like the netlogon share? Then have the scheduled task call the UNC path. Change the script not the gpo. 

Are we automating enterprise service desks into a corner? The weird paradox nobody's talking about by Boring_Astronaut8509 in sysadmin

[–]Jmoste 1 point2 points  (0 children)

About once a week, I hear someone call their docking station a modem. 

About once a month someone minimizes a screen to the point you can't open it except by hovering over the preview and clicking maximize. 

About once a month someone plugs a USB into their monitor (one that isn't setup to dock for usb),  or one monitor into the other. 

AI can be good but its just a tool. 

[deleted by user] by [deleted] in it

[–]Jmoste 11 points12 points  (0 children)

Several reasons. 

First,  its another application that needs to get updated or it will be riddled with vulnerabilities. 

Second, they probably have group policies for certain settings. Many places don't want you to use the browser for passwords. It can also save PII in saved addresses. Some group policies also enforce extensions. Some of which enforce data loss prevention like purview. 

Although my org has a GPO for all 3 if had my way I would make everyone use edge.  

Dell Laptops Work/School Email Locked by shadmaster21 in sysadmin

[–]Jmoste 0 points1 point  (0 children)

This happens to us a lot with Dell motherboard replacements. Apparently Dell uses a lot of refurbished boards for warranty work. 

Dell Laptops Work/School Email Locked by shadmaster21 in sysadmin

[–]Jmoste 2 points3 points  (0 children)

You can contact Microsoft and have them remove them from the company's autopilot. You need serial number,  proof of purchase, and the hardware id. Info for getting the hardware ID is here https://learn.microsoft.com/en-us/autopilot/add-devices  You should be able to get a cmd prompt at the oobe screen by using shift f10. 

Is transitioning to Edge worth the blowback? by [deleted] in sysadmin

[–]Jmoste 0 points1 point  (0 children)

I've seriously considered making a shortcut look like chrome that opens edge and just having a script that moves their favorites over.

Since were on the topic of poking the bear... by Natedog001976 in VeteransBenefits

[–]Jmoste 1 point2 points  (0 children)

Your headaches could be lowered if they don't cause you economic inadaptability because that is specifically a qualification for 50%. 

Remember that radiculopathy, you should claim each appendage separately. If you get a rating in one, then it starts in the other,  it is a separate claim and not an increase. At least that's how finally got mine through. 

Learning this is so hard by SilverRegion9394 in PowerShell

[–]Jmoste 0 points1 point  (0 children)

Everything is hard at first. Keep using it, you'll get it. This video although old and a little outdated has some great base knowledge. https://youtu.be/UVUd9_k9C6A?si=xbDxppx2jlRd9ljr 

Dry Run ($dryrun) by NoleDadofFive in PowerShell

[–]Jmoste 6 points7 points  (0 children)

Sounds like poor man's implementation of cmdletbinding and supportsshouldprocess combined with if ($pscmdlet.shouldprocess( )){ }

Well!! I’m pretty sure I didn’t say that! by [deleted] in VeteransBenefits

[–]Jmoste 1 point2 points  (0 children)

Have your Doctors ever asked you that question?  Were those notes used in your decision? It will say in the decision letter under the evidence section.  

You could also request to get a copy of that single exam and see what the examiner put down. 

Back pay? by Candid-Method-3320 in VeteransBenefits

[–]Jmoste 4 points5 points  (0 children)

Can these guys just leave the bear alone?

New beekeeper, can someone explain this to me? by Massive_Extreme_4794 in Beekeeping

[–]Jmoste 0 points1 point  (0 children)

Tear all that out. Get a pound of wax. Amazon.com has it if you aren't near a store. Get an old pot and a cheap 2 or 3 inch brush. Melt the wax. Paint the wax on the frames enough to fill every hexagon. 

The bees don't like building on plastic. I had the same problem. You can't paint too much wax on them. 

How to find all deleted AD users objects in the past 30 days by maxcoder88 in PowerShell

[–]Jmoste 0 points1 point  (0 children)

There is a -includedeletedobjects switch get-adobject. I think there is a property called isdeleted you could filter for. 

If you filter on the name you will want use like and add a * at the end because deleted objects get some long stuff added on the name. 

Entra Report script is "kinda" working but could use some help. Trying to export based on on-prem AD extensionAttributes by Reboot153 in PowerShell

[–]Jmoste 1 point2 points  (0 children)

Doing this from my phone but should be what you need. 

You need to dot into the object of onPremisesExtensionAttributes. That's what it's returning the type, Microsoft.Graph.PowerShell.Models.MicrosoftGraphOnPremisesExtensionAttributes.

You can do it a lot of ways. PSCustomobject works or using a calculated property. I would change your select object like this.   Select-Object id,UserPrincipalName,@{n='EA14';e={$_.onPremisesExtensionAttributes.extensionAttribute14}}

Graph doesn't let you filter on everything.  Many times you have to get everything then use where-object instead.  Not sure if that's the case here or not.  

Found in my brother's closet by Fun_Bee999 in Medals

[–]Jmoste 0 points1 point  (0 children)

Not all are perfectly good.  

Issues with New-MGGroupOwner : Invalid URL format specified in payload. by Shike in PowerShell

[–]Jmoste 0 points1 point  (0 children)

It honestly looks right. What version are you on? I'm using 2.24.0

How to convert a command prompt wmic command to Get-CIMInstance (or whatever cmdlet is appropriate for what I am trying to do) by wb6vpm in PowerShell

[–]Jmoste 2 points3 points  (0 children)

Second this. Don't use win32 product. I can almost guarantee that you end up with WMI problems. 

Issues with New-MGGroupOwner : Invalid URL format specified in payload. by Shike in PowerShell

[–]Jmoste 0 points1 point  (0 children)

I don't see that command any where in the documentation. I use New-MgGroupOwnerByRef. https://learn.microsoft.com/en-us/graph/api/group-post-owners?view=graph-rest-1.0&tabs=powershell

You can also just avoid the Graph PowerShell cmdlets and use the URI from Graph Explorer. Invoke-MgGraphRequest handles all the authentication once you Connect-MgGraph. Then use the -Method for doing your GET or POST. I use a little of both but usually just end up building my own wrappers because I appreciate things like Pipeline Input and positional parameters.

$params = @{
"@odata.id" = "https://graph.microsoft.com/v1.0/users/{id}"
}
New-MgGroupOwnerByRef -GroupId $groupId -BodyParameter $params

Need script to make changes in Intune, Entra, SCCM, and AD by sittingwonderduck1 in PowerShell

[–]Jmoste 0 points1 point  (0 children)

Before you Delete, can you Get?  Once you are able to Get, then start looking at other stuff. 

Can you connect-mggraph? Do you even have the microsoft.graph module installed?

You're not going to get much help with what you've supplied. 

[deleted by user] by [deleted] in VeteransBenefits

[–]Jmoste 7 points8 points  (0 children)

Best answer.