u/mrrtys

9 post karma · 119 comment karma · joined Apr 2016

  1. 8points

    Schoten gehoord vannacht rond 04:25 bij Stadsring, iemand anders ook? (self.Amersfoort)

    10 comments

  2. 1points

    DualSense Controller Repair Website Issue - Seeking Assistance (self.playstation) [Tech Support]

    0 comments · source

  3. 3points

    DualSense Controller Repair Website Issue - Seeking Assistance (self.playstation) [:POST_Tech_Support: Support]

    6 comments

mrrtys

This works for me:

PS> Invoke-RestMethod -Headers $headers -Method Get -Uri "$baseUrl/tas/api/assetmgmt/assetLinks?sourceId=93e5bd1a-b899-4646-9323-e21cf1d1c221"

linkId : 5ed43ffc-b1dd-46ea-8ea3-3354dfcf6b2e
linkType : child
assetId : 15420080-cc9e-4a45-bb44-f41f2759a44e
assetIcon : @{id=unknown; name=Onbekend; url16=/icons/unknown/16; url32=/icons/unknown/32}
name : CON-000003
type : CLM_Contract
capabilityId : 8210022e-214e-4f07-ae54-6fa48fbd01ef
capabilityName : CLM_Leverancier-Contract
archived : False
archivedAsset : False
status : OPERATIONAL
summary : ***

linkId : fb8059a2-8f39-40ba-a170-4837e0e9cd23
linkType : child
assetId : 2233869e-d3ba-4086-8a30-fef838905e0c
assetIcon : @{id=unknown; name=Onbekend; url16=/icons/unknown/16; url32=/icons/unknown/32}
name : CON-000004
type : CLM_Contract
capabilityId : 8210022e-214e-4f07-ae54-6fa48fbd01ef
capabilityName : CLM_Leverancier-Contract
archived : False
archivedAsset : False
status : OPERATIONAL
summary : ***

linkId : c17b0812-b44b-4d62-880b-bc2436af0161
linkType : child
assetId : 386a49a9-fef3-4a06-9e2b-73f5e4bf1903
assetIcon : @{id=unknown; name=Onbekend; url16=/icons/unknown/16; url32=/icons/unknown/32}
name : CTP-000002
type : CLM_Contactpersoon
capabilityId : 5bc8f524-6a06-47c8-a327-2d6c97c353b4
capabilityName : CLM_Leverancier-Contactpersoon
archived : False
archivedAsset : False
status : OPERATIONAL
summary : ***
mrrtys

Natuurlijk is alles mogelijk, maar dit klonk anders. Mijn gevoel zegt me dat het echt schoten waren.

mrrtys

Ik woon op ongeveer 700 meter afstand. De schoten kunnen van ergens anders gekomen zijn, maar ik weet zeker dat ik een auto uit die richting met hoge snelheid over de Stadsring hoorde scheuren.

Heb jij de sirene wel gehoord? Ik lag te slapen met het raam open, maar werd meteen wakker en alert. In mijn gezin lijk ik altijd de enige te zijn die dit soort dingen hoort. Als ik mijn vriendin vraag: "Hoorde je dat?", dan zegt ze wel iets gehoord te hebben. Maar als ik niks had gezegd, had ze gewoon lekker doorgeslapen.

mrrtys

Thank you.

mrrtys

Thanks for you're reply.
But I tried 3 different browsers and also on different devices and internet connections.

mrrtys

I used another device and connection same problem.

mrrtys

Hi u/MrExpendable_,

I think this is exactly what you need:

https://learn.microsoft.com/en-us/graph/api/resources/authenticationmethods-usage-insights-overview?view=graph-rest-beta

​

I tested it with Microsoft Graph Explorer and it would output all users like this:

id                    : bb471fef-d74c-41c7-9fa5-79ec2e18d4f3
userPrincipalName     : [email protected]
userDisplayName       : John Doe
userType              : member
isAdmin               : False
isSsprRegistered      : True
isSsprEnabled         : True
isSsprCapable         : True
isMfaRegistered       : True
isMfaCapable          : True
isPasswordlessCapable : True
methodsRegistered     : {mobilePhone, microsoftAuthenticatorPush, softwareOneTimePasscode, windowsHelloForBusiness}
defaultMfaMethod      : microsoftAuthenticatorPush
mrrtys

Thanks, this is really nice 👍

mrrtys

Try robocopy and mirror it with an emtpy directory. I always delete folders that way when they give me a hard time.

mrrtys

I think you need Set-ADUser and then one of these "-Add, -Replace, -Remove"

-Add @{proxyAddresses="SMTP:[email protected]", "smtp:[email protected]"}
mrrtys
mrrtys
Where-Object {$_.Surname -ne $null -or $_.GivenName -ne $null -or $_.EmailAddress -ne $null -or $_.Name -notmatch 'svc|ops|adm'}

Change the $_.Name to another property name if needed.

Hope this helps?

mrrtys
mrrtys

Just sharing what I would do and have done in the past to automate onboarding.

You could start with something like this:

  1. Create user templates for every department/sub department.
  2. Make a query to list all the users in a specific department get all the MemberOf groups.
  3. Take all the groups that 100% of this department have and put them in the template.
mrrtys

Did you check after 15mins? Maybe AD need to sync.

mrrtys

Good question... I never use Ignore so had to look it up.
Ignore will not add the error to the automatic variable $Error, so yes that might be a better option actually.

Thanks for mentioning that.

mrrtys

I did not test this right now but I believe this should work:

$instance = Get-ADUser -Identity User1 # You can add -Server if necessary
$target = Get-ADUser -Identity User2 # You can add -Server if necessary

#You should not add -Server to any of these parameters
Get-ADPrincipalGroupMembership -Identity $instance | Add-ADGroupMember -Members $target

Edit: trying to fix it for u/Lee_Dailey

mrrtys

I can't see what is on line 1 char 67 and 81, can you post that line from your script?

mrrtys

You can use Import-Csv on a computer without excel, this is basically a text file.

And if you remove the parameter -AccessRights and add -Confirm you are good to go.

mrrtys
mrrtys

Have a look at this one:

Get-CimInstance -ClassName Win32_Service | select StartName

mrrtys

(Get-LocalUser user -ErrorAction SilentlyContinue) -as [bool]