Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
SEKCobra
Feb 28, 2011

Hi
:saddowns: Don't look at my site :saddowns:

Bob Morales posted:

We have PC's that do not have Trusted Platform Module (TPM)

This means we either have to use a USB drive or PIN to boot Bitlocker enabled computers? Should we just stick with Symantec disk encryption at this point?

This is where you take a stand and tell management that devices without TPM will no longer be able to be supported. Considering what kind of devices exist at this point that don't have a TPM, they are probably shitboxes anyway.
I made TPM a specification for Drive Encryption early on and it never hurt me.

Adbot
ADBOT LOVES YOU

skipdogg
Nov 29, 2004
Resident SRT-4 Expert

LOL You're talking to Bob, that won't fly where he works.

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

I don't think anything we've bought recently is missing TPM, but this is probably our biggest chunk of devices. Lenovo Thinkcentre M73, which know that I think about it, is what we have bought recently because the training room PC's were just refreshed in the last 6 months or so.

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

Awaiting the incoming package from Amazon with 120 of the cheapest 4GB USB drives they could find

klosterdev
Oct 10, 2006

Na na na na na na na na Batman!
Daisy chain a bunch of powered USB hubs and Raid 0 those mofos

Caf
May 21, 2004

I'm King James! The Lion King!

Bob Morales posted:

We have PC's that do not have Trusted Platform Module (TPM)

This means we either have to use a USB drive or PIN to boot Bitlocker enabled computers? Should we just stick with Symantec disk encryption at this point?

I've never used Symantec disk encryption but if it will automatically unlock without a TPM then I would stick with that for these TPM-less devices until they can be replaced. Needing to either enter a PIN or remember to connect a USB disk every reboot would suck. Never mind needing to write your own process to archive the keys or stand up MBAM servers to handle it.

When we did our big Windows 7 upgrade over a decade ago we also included a BitLocker implementation but we had a couple offices which were unable to procure devices with TPMs. Those locations got to stick with EFS until we could get them the proper hardware.

Nitr0
Aug 17, 2005

IT'S FREE REAL ESTATE
Best pc inventory / patch management / software deployment / upgrade software out there these days? ~200 ish devices.

Will want to integrate it into some workflow software of some kind, self serving software installs, HelpDesk, that sort of thing.

Still sccm?

Nitr0 fucked around with this message at 10:52 on Apr 8, 2021

SEKCobra
Feb 28, 2011

Hi
:saddowns: Don't look at my site :saddowns:
Someone help me out here, I have two domains with a forest trust between them. For arguments sake, lets call them example.com and sample.net.
I also have three locations:

DC
Has a domain controller for example.com and sample.net

HQ
Also has DCs for both domains

Local
Only has a DC in example.com. Has no direct connection to any sample.net DCs.

My thinking is, that I should be able to log into "example.com" computers at location "local" by using an account from sample.net. I thought this would be handed over to a DC that has a trust connection.
But right now, I am just receiving event 5719 AKA domain not available. Do I have to give the example.com DC in "Local" access to a DC of sample.net?

i am a moron
Nov 12, 2020

"I think if there’s one thing we can all agree on it’s that Penn State and Michigan both suck and are garbage and it’s hilarious Michigan fans are freaking out thinking this is their natty window when they can’t even beat a B12 team in the playoffs lmao"
Do you have DHCP providing both search suffixes at each location and do all the DCs have the ability to communicate to the other forests DCs? I’ve always wound up adding each domains name servers to all the DCs in both forests - I’ve also never maintained multiple forests just established trusts for domain consolidation in M&A’s so not sure what best practice is

SEKCobra
Feb 28, 2011

Hi
:saddowns: Don't look at my site :saddowns:
I explicitly don't want the DC in "Local" to have direct communications with the other AD, unless it's a hard requirement.

i am a moron
Nov 12, 2020

"I think if there’s one thing we can all agree on it’s that Penn State and Michigan both suck and are garbage and it’s hilarious Michigan fans are freaking out thinking this is their natty window when they can’t even beat a B12 team in the playoffs lmao"
Pretty sure you’d need to be using conditional forwarding to ensure the DCs in sample.net will resolve example.net requests coming from local.

Thanks Ants
May 21, 2004

#essereFerrari


Yeah domain trust just means you can access resources in other domains without needing an account in them, they won't solve client to domain controller communication issues.

skipdogg
Nov 29, 2004
Resident SRT-4 Expert

https://blogs.msmvps.com/acefekay/2016/11/02/active-directory-trusts/

Almost everything you'll ever want to know about forest trusts. Scroll down to the section on Kerberos authentication Sequence between Domains in a Forest

https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2003/cc787646(v=ws.10)?redirectedfrom=MSDN

I've always allowed access to the other forest via DNS and at a minimum to the PDCe of the other domain.

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

Is there a way in Windows 10, to delay the actual locking of the screen when you start the screen saver, like you can on a Mac?

Screen saver comes on at 1 minute....but it's not locked until 5 minutes?

I tried powering the screen off at 1 minute but it triggers the lock screen.

klosterdev
Oct 10, 2006

Na na na na na na na na Batman!
I think there's a legacy GPO for screensavers specifically but I've never tried using it

ptier
Jul 2, 2007

Back off man, I'm a scientist.
Pillbug
So, this may be more of a Microsoft 365 question, and if there is an appropriate thread for that, please kick me there, I didn't see anything in my searching:


Due to regulatory requirements, I have to disable accounts that have been inactive for 90 days. I am not going to split hairs on "what does that * mean * anyways?!". I agree. Especially when dealing with all the fields in AD that seem like they should be used for that and definitely * should not * be used for that. The local network version of the solution has worked fine since inception, it is:

code:
 Search-ADAccount -UsersOnly -AccountInactive -TimeSpan 90.00:00:00 -searchscope subtree -searchbase "OU=needful,dc=awesome,dc=local"
This works, as well as it can, its giving me rough, which is all I need.

BUT, wrinkle time. Since March 2020 a large contingent has been working remotely. They are not VPNing in, because they just email and teams their day away and never hit the local DC. Then I start to google about how to programmatically get those logs or entries from Microsoft 365 Azure AD. I get a lot of:

"you have to get the report manually from O365"
there is a way to pull a list of last login to mailbox BUT it is also updated by lots of background processes

finally hit on a feature in the Graph API for signInActivity, BUT its in BETA

Using the graph scenario just to see what I can get, I was able to check my local list of inactive users against Azure AD Signin activity. Which has worked well. The rub comes that whenever I roll in and try to run that process again, I get 403's on the API call. If I pull back to just email address and name, it works fine. I have to go in and grant permissions to the app registration in Azure (even though it is already granted) and then it will start working again. I am getting a new token each run of my script, AND I have other app registrations that don't use the beta graph and its fine. I guess this is one of those "Don't use beta in prod, and this is how we enforce it, or side effect" but, damnit, this is dumb. Usually any kind of regulation requires this, why the hell is there not just a "Do thing, get data on this specific thing that most orgs needs to do." Also we really don't have people to put on this, so its just frustrating.

If there is something else I can use or programmatically do for this, I would be forever in your debt.

wolrah
May 8, 2006
what?

Bob Morales posted:

Is there a way in Windows 10, to delay the actual locking of the screen when you start the screen saver, like you can on a Mac?

Screen saver comes on at 1 minute....but it's not locked until 5 minutes?

I tried powering the screen off at 1 minute but it triggers the lock screen.

According to https://winaero.com/screen-saver-pa...your%20Desktop. it's in the registry at

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\ScreenSaverGracePeriod

If it doesn't exist it's supposed to be a DWORD containing the grace period in seconds.

Thanks Ants
May 21, 2004

#essereFerrari


ptier posted:

So, this may be more of a Microsoft 365 question, and if there is an appropriate thread for that, please kick me there, I didn't see anything in my searching:


Due to regulatory requirements, I have to disable accounts that have been inactive for 90 days. I am not going to split hairs on "what does that * mean * anyways?!". I agree. Especially when dealing with all the fields in AD that seem like they should be used for that and definitely * should not * be used for that. The local network version of the solution has worked fine since inception, it is:

code:
 Search-ADAccount -UsersOnly -AccountInactive -TimeSpan 90.00:00:00 -searchscope subtree -searchbase "OU=needful,dc=awesome,dc=local"
This works, as well as it can, its giving me rough, which is all I need.

BUT, wrinkle time. Since March 2020 a large contingent has been working remotely. They are not VPNing in, because they just email and teams their day away and never hit the local DC. Then I start to google about how to programmatically get those logs or entries from Microsoft 365 Azure AD. I get a lot of:

"you have to get the report manually from O365"
there is a way to pull a list of last login to mailbox BUT it is also updated by lots of background processes

finally hit on a feature in the Graph API for signInActivity, BUT its in BETA

Using the graph scenario just to see what I can get, I was able to check my local list of inactive users against Azure AD Signin activity. Which has worked well. The rub comes that whenever I roll in and try to run that process again, I get 403's on the API call. If I pull back to just email address and name, it works fine. I have to go in and grant permissions to the app registration in Azure (even though it is already granted) and then it will start working again. I am getting a new token each run of my script, AND I have other app registrations that don't use the beta graph and its fine. I guess this is one of those "Don't use beta in prod, and this is how we enforce it, or side effect" but, damnit, this is dumb. Usually any kind of regulation requires this, why the hell is there not just a "Do thing, get data on this specific thing that most orgs needs to do." Also we really don't have people to put on this, so its just frustrating.

If there is something else I can use or programmatically do for this, I would be forever in your debt.

This is a specific piece of documentation about your problem, and it references the Graph API call you are working with

https://docs.microsoft.com/en-us/azure/active-directory/reports-monitoring/howto-manage-inactive-user-accounts

The Graph Explorer is a good place to mess around with this stuff as well

https://developer.microsoft.com/en-us/graph/graph-explorer

Thanks Ants fucked around with this message at 21:15 on Apr 9, 2021

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

wolrah posted:

According to https://winaero.com/screen-saver-pa...your%20Desktop. it's in the registry at

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\ScreenSaverGracePeriod

If it doesn't exist it's supposed to be a DWORD containing the grace period in seconds.

Thanks, I’ll play around with that on monday

Potato Salad
Oct 23, 2014

nobody cares


Bob Morales posted:

I don't think anything we've bought recently is missing TPM, but this is probably our biggest chunk of devices. Lenovo Thinkcentre M73, which know that I think about it, is what we have bought recently because the training room PC's were just refreshed in the last 6 months or so.

do infineon or lenovo sell tpms for thinkcentres?

they're often like $5

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

Could 2021-04 cumulative update take any loving longer to install

GreenNight
Feb 19, 2006
Turning the light on the darkest places, you and I know we got to face this now. We got to face this now.

Yeah it’s a big one. Got all my exchange servers patched

snackcakes
May 7, 2005

A joint venture of Matsumura Fishworks and Tamaribuchi Heavy Manufacturing Concern

I'm looking for some guidance in Azure cost monitoring, if anyone's got experience with that.

I've been asked to monitor things that could lead to Azure running away with money. We don't host anything too fancy, mostly just Virtual Machines. Looking to get a handle on seeing things like Egress network traffic, and if any Standard SSDs (rare that we would use this) are going wild with IOPS

We use a CSP for our Azure subscription, so we have no way of actually seeing costs from within Azure. I think this is going to make my life a lot harder.

Any advice on what I might be able to do? I was looking at egress for network interfaces on VMs, but it doesn't seem like it will show me what I need to know. Price tiering looks like Egress to the internet is free up to 5 GB but all of the metrics are capping out in megabytes and I figure surely that can't be true.

i am a moron
Nov 12, 2020

"I think if there’s one thing we can all agree on it’s that Penn State and Michigan both suck and are garbage and it’s hilarious Michigan fans are freaking out thinking this is their natty window when they can’t even beat a B12 team in the playoffs lmao"
The CSP thing sucks. Ask if they have an API, you can roll your own monitoring or possibly plug a third party tool into it (no idea if this is real). I’ve dealt with lots of enterprise cost monitoring, my experience with smaller shops not on an EA using CSP has been a non starter really. You’re at their mercy. Whoever you’re working with might be reselling CSP from a big dawg (or is one like TechData or Insight) and they are the safest bets with API access. Get an EA if you can because IMO unless you’re getting great support the discounts wind up being a ripoff when you’re missing cost visibility.

For Azure cost monitoring generally the built in stuff is perfectly fine. Azure cost recommendations if spits out are suspect at best, but can serve as a starting point. The cost alerts etc. are all straightforward and they’re constantly improving the dashboard. But you won’t have that soooooo

Also before anyone recommends it to you, Sharegate Overcast is getting discontinued and it was the cheapest and one of the easiest third party tools to use. I’ve heard great things about apptio. If any of them or anything else can utilize a CSP API I would figure that out ASAP.

Edit: there’s some stuff out there about MCA’s and whatnot, I would talk to your account person before deciding I know wtf I’m talking about. I know the CSPs I’ve run into really don’t offer the MCAs or anything, so not sure if it’s something MS rolled out that failed or what. I know I had this CSP convo two weeks ago and our client said gently caress the whole thing and went PAYG lmao

i am a moron fucked around with this message at 01:25 on Apr 19, 2021

The Fool
Oct 16, 2003


i am a moron posted:

Also before anyone recommends it to you, Sharegate Overcast is getting discontinued and it was the cheapest and one of the easiest third party tools to use. I’ve heard great things about apptio. If any of them or anything else can utilize a CSP API I would figure that out ASAP.

This really pisses me off. It was a fantastic tool before sharegate bought it and jacked the price up

snackcakes
May 7, 2005

A joint venture of Matsumura Fishworks and Tamaribuchi Heavy Manufacturing Concern

Thanks for chiming in. Seems like my suspicions are confirmed. They're looking to do alerting through Azure but I'll get a support ticket in with our CSP (Pax8) and see if they've got any recommendations

Thanks Ants
May 21, 2004

#essereFerrari


CSP billing for Azure really only makes sense if the company reselling it is also providing you with some solution deployed in Azure and then charging you an agreed set cost each month for it. Reselling a variable rate service with no access to the Azure cost management tools is a recipe for pain, and like i am a moron said, it's not worth the very small saving once the CSP provider wants their margin.

i am a moron
Nov 12, 2020

"I think if there’s one thing we can all agree on it’s that Penn State and Michigan both suck and are garbage and it’s hilarious Michigan fans are freaking out thinking this is their natty window when they can’t even beat a B12 team in the playoffs lmao"
I’ve heard companies can provide such dashboards and access, but I’ve never actually seen it. I also might be getting that confused with the API stuff, it might be that CSPs get the API access and they have to build stuff on top of it. End customers might not get any API access. It’s a mess speaking as someone who’s worked for companies that kinda sorta dipped their toes into it. The CSP thing is sticky if you’re not on an EA too because I don’t think there’s any other way to get an invoice and lots of accounting departments don’t want to use credit cards.

Thanks Ants
May 21, 2004

#essereFerrari


You can ask MS to bill you for Azure as an invoice with 30 day terms, there doesn't seem to be a minimum spend either.

https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/pay-by-invoice

i am a moron
Nov 12, 2020

"I think if there’s one thing we can all agree on it’s that Penn State and Michigan both suck and are garbage and it’s hilarious Michigan fans are freaking out thinking this is their natty window when they can’t even beat a B12 team in the playoffs lmao"
You have to have an MCA, which I didn’t think is necessarily available to everyone but I could be wrong. If you can get an MCA in lieu of working through a CSP I’d highly recommend. There’s some info here:

https://www.microsoft.com/en-us/licensing/how-to-buy/microsoft-customer-agreement

I work with MS all the time and I’ve never once seen a sales rep recommend this from MS. But they only get involved on certain sized accounts to begin with, otherwise they’ll refer you to whoever they like in their partner ecosystem. It’s all EA’s or CSPs. But it says you get this agreement through an MS sales rep directly so I dunno. They’ve been moving to a lot of new licensing, partnering and purchasing programs but I’m not sure how much they’re doing to incentivize people to switch to them.

The Fool
Oct 16, 2003


I don’t know the specifics of how it was originally set up by my old job pre-paid a portion of the azure spend as part of our EA through our VAR and any overages we had we paid on our true-up bill.

i am a moron
Nov 12, 2020

"I think if there’s one thing we can all agree on it’s that Penn State and Michigan both suck and are garbage and it’s hilarious Michigan fans are freaking out thinking this is their natty window when they can’t even beat a B12 team in the playoffs lmao"
I’m gonna :justpost: but all the EAs I’ve ever seen have a minimum spend negotiated into them for Azure services. There’s a variety of different payment options I’m assuming the VARS all work off of:

https://www.microsoft.com/en-us/Licensing/how-to-buy/financing

emdash
Oct 19, 2003

and?
This may be a dumb question or in the wrong place, in which case apologies in advance.

Is there a way to get IIS to do request/input decompression, akin to mod_deflate "SetInputFilter DEFLATE" for Apache? This seems entirely separate from the Dynamic/Static Compression settings, based on all research I've done already.

Thanks Ants
May 21, 2004

#essereFerrari


I'm not aware of having an MCA in place, I just know that a company I do side work for spends about £350 each month in Azure and gets invoiced by MS for it. Maybe they are locked in now because the change was done a few years ago.

i am a moron
Nov 12, 2020

"I think if there’s one thing we can all agree on it’s that Penn State and Michigan both suck and are garbage and it’s hilarious Michigan fans are freaking out thinking this is their natty window when they can’t even beat a B12 team in the playoffs lmao"
The MCA looks like a standard agreement you can sign up with through the website so... lol at any folks I’ve worked with using CSP for invoices

snackcakes
May 7, 2005

A joint venture of Matsumura Fishworks and Tamaribuchi Heavy Manufacturing Concern

I spoke to my CSP (I have no option of moving away from them, we're an MSP and use them to resell licensing) and it turns out something called "Azure Plan" is becoming available for CSPs and will give us access to Azure Cost Management again. Until then I'm just going to have to wait.

Hughmoris
Apr 21, 2007
Let's go to the abyss!
Trying to find the right thread for this:

In powershell or CMD, is there a command to get more info from a network printer if "nslookup <ipaddress>" doesn't return what I need?

When the user goes to Devices & Printers, they see a friendly name for the network printer. I need to be able to find that same friendly name given an IP address. I'm stumped.

Thanks Ants
May 21, 2004

#essereFerrari


You need to do a Get-Printer and then take the PortName variable from the printer and send it into Get-PrinterPort, PrinterHostAddress has the IP or DNS name of the printer.

Edit: Oh, you want to work backwards and see what printers are using a port. I think you'd have to do

code:
Get-PrinterPort | Where-Object {$_.PrinterHostAddress -eq '1.2.3.4'}
To get you the port name, and then put this into

code:
Get-Printer | Where-Object {$_.PortName -eq 'portname'}

Thanks Ants fucked around with this message at 21:33 on Apr 23, 2021

nielsm
Jun 1, 2009



PowerShell has a PrintManagement module since Windows 8, I believe.

Assuming the printer is installed on the machine, I think you can use the Get-Printer command and then filter by PortName. Perhaps you need to first use Get-PrinterPort to find the appropriate port name.

Adbot
ADBOT LOVES YOU

Hughmoris
Apr 21, 2007
Let's go to the abyss!

Thanks Ants posted:

You need to do a Get-Printer and then take the PortName variable from the printer and send it into Get-PrinterPort, PrinterHostAddress has the IP or DNS name of the printer.

Edit: Oh, you want to work backwards and see what printers are using a port. I think you'd have to do

code:
Get-PrinterPort | Where-Object {$_.PrinterHostAddress -eq '1.2.3.4'}
To get you the port name, and then put this into

code:
Get-Printer | Where-Object {$_.PortName -eq 'portname'}

No dice. I don't receive any output from either of those commands.

nielsm, this is unfortunately a user on the network that I'm trying to assist.

What if I know the name of the network printer? Can I work back and get the ip address?

*I realize these are broad questions lacking details. This is a people/process problem but now I'm stubborn and want to figure it out. I think our IT team has a print/server and queue set up. When I do Get-Printer on my own device, on the VPN, I receive a printer name of: \\somepath\Printer_01_X . Printer_01_X is the name I'd like to find on the network if I have the IP address. The next best solution is if a user tells me their network printer name is Printer_01_X, I'd like to find the IP address of it in CMD or Powershell.

Hughmoris fucked around with this message at 21:56 on Apr 23, 2021

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply