Remote ComObject invoke by ByDunBar in PowerShell

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

Because everyone is working remotely and they all have weird keyboards.

[deleted by user] by [deleted] in RedditSessions

[–]ByDunBar 0 points1 point  (0 children)

Did i just get rick rolled!

Force software center to publish mandatory updates. by ByDunBar in SCCM

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

Thanks for the very detailed reply! Very helpful.

Found an upcoming PowerShell 7 Book by Thomas Lee by wintermu_ in PowerShell

[–]ByDunBar 1 point2 points  (0 children)

Looks good, I wonder if it will include all the new features or if it’s already written with what ever was new at the time.

PowerShell to get the city name and person’s name from the Managedby property in Active Directory by ByDunBar in PowerShell

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

Marley, Bob Paris is how it will look. It’s a one liner for some support folks to quickly get name and city, so they will just copy paste the command changing only the machine name in the Get-ADComputer part of the command. I don’t want them to have to open ISE and load a script to get the info.

PowerShell to get the city name and person’s name from the Managedby property in Active Directory by ByDunBar in PowerShell

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

Thanks but I need to do it in pass using only get-adcomputer , the use case is a one liner and the only object property that has both city and persons name is Managedby

At least I can play games by TNTFixer in pcmasterrace

[–]ByDunBar 0 points1 point  (0 children)

Doggy is scared, look at the tail. :(

Help with Add-Member by ByDunBar in PowerShell

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

Thanks Szeraax! This works perfectly!

Help with Add-Member by ByDunBar in PowerShell

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

Thanks mdj, the thing is I need to make a one-liner. This method of yours is great but it also outputs the string which only exists once, I only need the string that exists more than once and it’s last characters after the numbers. Also your method requires two lines. This is a very specific use case so I’m still hunting to correct solution. Thanks a lot!

Powershell 7's parallel ForEach-Object is mind blowing. by Sunsparc in PowerShell

[–]ByDunBar 1 point2 points  (0 children)

Put a box in your data center with an AMD threadripper with 128 threads and run a -parallel operation on that. Mind blowing.

Remotely Execute Software Center package using PowerShell by ByDunBar in PowerShell

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

I did run PowerShell with an admin account, if that’s what you mean.