usbeef

u/usbeef


r/PowerShell•

I know this is a common topic but I am unable to use any of the common methods to delete dormant user profiles. I am looking for a script that will delete dormant user profiles along with the profilelist entry in the registry. The profilelist deletion isn't essential but it would be nice. Something in our environment (probably the AV) is modifying all of the typical attributes that are used to determine if a profile is dormant so the group policy, CIM/WMI, and delprof won't work. The NTUser.dat file timestamp is also being modified on very old profile folders. The script would need to check a timestamp on a folder within the profile that is normally modified every day when a profile is in us

212

r/askswitzerland•

The troop tag found in my Swiss 1911 rifle which contains a name, phone number, and address matches the name, phone number, and address in the online Swiss phone book. Is the data in the swiss phone book up to date? Crazy to think this person still lives in the same old apartment with the same phone number all these years. I suppose it is possible this person is still alive as the 1911 was still being issued during WWII at least.

79

r/PowerShell•

I am trying to get the following script to only query objects that have a job title. Is that possible?

Get-ADUser -filter * -properties * | select @{Name="Username";Expression={$.EmailAddress}},@{Name="First name";Expression={$.Givenname}},@{Name="Last name";Expression={$.Surname}},@{Name="E-mail";Expression={$.Mail}},@{Name="Job Title";Expression={$.Title}},@{Name="Direct Manager";Expression={(get-aduser -property emailaddress $.manager).emailaddress}} | export-csv "C:\export.csv" -NoTypeInformation

58

r/exchangeserver•

What I am trying to do is move an email address from one shared mailbox to another shared mailbox in Exchange Hybrid. I have moved the email address in Exchange 2013 from one mailbox to another but the change doesn't sync to Office 365. The email address I deleted still shows up under the original mailbox in the cloud. I can add an email address to the mailbox I am trying to take from and the addition appears after a sync.

It seems that the original email address assigned to the mailbox on the cloud can't be removed despite the changes on-prem.

45

r/Office365•

My goal is to prevent files from being downloaded to unmanaged devices in SharePoint and OneDrive for internal users. But I still want users to be able to share files with external parties using OneDrive which we will then monitor with alerts.

I can create a conditional access policy and set the SharePoint policy for unmanaged devices to "Allow limited, web access only" which accomplishes what we want to do internally but it prevents external parties from downloading shared files. If I set the SharePoint setting to "Allow full access to desktop, mobile apps, and the web" it opens everything back up to be downloaded from anywhere.

Is there any way to accomplish what I am trying to do?

17

r/AZURE•

My goal is to prevent files from being downloaded to unmanaged devices in SharePoint and OneDrive for internal users. But I still want users to be able to share files with external parties using OneDrive which we will then monitor with alerts.

I can create a conditional access policy and set the SharePoint policy for unmanaged devices to "Allow limited, web access only" which accomplishes what we want to do internally but it prevents external parties from downloading shared files. If I set the SharePoint setting to "Allow full access to desktop, mobile apps, and the web" it opens everything back up to be downloaded from anywhere.

Is there any way to accomplish what I am trying to do?

10

r/Roofing•

This question comes from someone below average in the DIY department. I ordered 6x 36in steel roofing panels, 3 panels for each side of the roof. Accounting for an overhang on all sides my measurement for both sides of the roof came to 48"L and 83"W

My question is how do I handle the overlap?

  • Put 2 panels together like normal and then cut a smaller piece for the remaining portion on the end?

  • Install two panels on each side with the right overhang and then just throw the third panel in the middle without cutting anything so it overlaps both of the side panels?

  • Cut the side pieces smaller and overlap a full panel in the middle?

  • Cut a smaller piece for the middle and put the two f

21

r/PowerShell•

I am trying to figure out the proper syntax to replace a server name that exists in a registry string value while ignoring the rest of the data in the value. I have found a lot on changing the entire value but can't figure out how to replace only part of it. In this case the server name.

For example

Path: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Printers\MyPrinters

String Value (REG_SZ): Printers

Data: Printer~\\OldServerName\IT-Printer

I am trying to replace \\OldServerName with \\NewServerName but leave the rest of the data in place.

To replace the entire existing value I can do the below but I don't know how to find text within the existing string value and replace it with differe

24


r/exchangeserver•

I have an existing Exchange 2010 environment where the internal virtual directories and the AutoDiscoverServiceInternalUrl setting are set to the FQDN of the Exchange server.

When I introduced the new Exchange 2013 server (yes I know) to the environment I set all the internal and external virtual directories as well as AutoDiscoverServiceInternalUrl to mail.company.com.

I then migrated a test mailbox and changed the DNS record for mail.company.com on the host file on the computer I was using so that AutoDiscover would be looking at the new server. After the migration was complete and I reset the MSExchangeAutodiscoverAppPool and restarted Outlook everything was working fine. I then changed

613

r/exchangeserver•

Yesterday I noticed that the retention time for deleted items was set to 9999 on all of our databases. Yeah I know...it wasn't me. I found this after investigating why our database volume was 5 times larger than the actual size of our mailboxes combined. I reduced this time to 30 days on all 4 databases. Now our logs and databases are growing rapidly as a result and I don't know if there is any end in sight. Would setting it back to 9999 stop the growth or just make it worse? I don't think there is any way to know how much space consumption I am looking at here if I just let it go and keep increasing the size of the volumes.

112

You've reached the end of this feed.