Saturday, August 25, 2012

Office365 Hints

"How do I change the default domain?"
Click your Company name in the upper left.

"How do I stop a domain from handling email through office365? I'm getting NDR's!"
Make sure the domain is changed from "Hosted" to "Shared".

"How do I change the UserPrincipalName on an Active Directory Sync environment?
Set-MSOLUserPrincipalName -UserPrincipalName -NewUserPrincipalName

"How do I change the UserPrincipalName (email domain) in an Active Directory Sync environment?
In the on-premises Active Directory Users and Computers you can change the UPN suffix for those synced users.

"I changed my password/username for the global administrator of Office365, and now sync doesn't work."
Official response: Run Dirsync Config again.
"cheating" response: edit the credentials within miisclient for TargetWeb Services.

"How do I force a sync?"
Easiest: DirSyncConfigShell.psc1, Start-OnlineCoexistenceSync.

I *know* people are saying, "I don't recommend ILM/MIISCLIENT.EXE" and they're right to ward novices off, because you really can break your sync/delete data if you're not paying attention. But on the other hand, if you look at what miisclient.exe *does*, you're going to be able to see a lot more troubleshooting options that  may help advanced users take better control over what's synced, including syncing certain OUs, forcing a full sync (this can be dangerous, as it can mass delete lots of users, but maybe that might be what you want in a fresh install, especially if you synced your entire domain and only want certain OUs to be synced.)

miisclient is important to know for troubleshooting, and if you know what you're doing, it can be used to great benefit or it can cause great grief.

Disclaimer: I can't help you and fully disclaim all responsibility (Don't blame me) if you break something with miisclient, and Microsoft may not necessarily support your tinkering, either. Document any changes with screenshots before and after. IMO, it's no scarier a tool than ADSIEdit or regedit. Use with appropriate caution.

Insert Windows 2003 SP2 disk

Situation: You're providing remote support and installing a new role in an old environment (Windows 2003) ... well, this is over the Internet, and you may have that SP2 ISO locally, getting someone to install it or transfer it or download it may be a bit longer than you need.

If you have the ISO, you can try to mount/share through your rdp client, or you can (for Windows 2003) wait for the app to ask for the files you need and upload them one at a time.

Hey, but the ISO has the thing as a single .exe! There's no folder structure!
It's true. But you can use, for instance, 7-Zip to extract  the .exe to a folder locally, then continue with the install remotely, where it will ask for the files it needs, then you can upload just those files in an accessible location. Sure, it's probably better to download and extract on the remote server. But if you only need a couple of MB of files and you've already got the SP2 locally, why not take a look at this as an option?

Friday, August 17, 2012

VIM join every other line

I've received a long list of changed passwords for Office365 and they are delivered via email in the format:
User Name: xxxx
Temporary Password: xxxx

in HTML.

It's not very useful, but I could copy this list into vim. Now, how do I combine the username and password into a single row?
250 times Jj is kinda bad. what else can I do?

Yeah, that's about it.
I suppose I could substitute all spaces for commas
:%s/ /,/

Nice, but now I don't really need User Name:, and Temporary Password:,
:%s/User Name:,//
:%s/Temporary Password:,//

Is there a trailing comma? Let's get rid of it

I should be able to save this as a .csv now!

Thursday, August 9, 2012

Searching excluding sites

Imagine that you're a prolific poster to a forum that's regularly indexed by a popular search engine and you'd like to find out if you're mentioned outside of that forum on other popular websites, but with respect to the content of the original forum.

You'd search, generally, for
yourname widget

and get a list of posts on that forum, likely. But you know about *those*. Where else?

search for
yourname widget -site:forumsite.domain.tld

note the prepended (-) which says, "Don't return results from that domain."

Friday, August 3, 2012

What if a company used its workstations to store data redundantly?

Oh, you know those small companies with a shared folder? Not exactly what I'm talking about.

So, let's see... large multinational company with several thousand deployed computers running 4GB RAM and 1TB hard drive apiece and the money is spent on the centralized management of servers to hold the data?

OK, you got me. ... But what if it were possible to leverage all the machines for encrypted, distributed data storage and processing power? It's not just data on your servers, it's data on your network.

What if you didn't really need a server?

But how would you back up?

Same way as normal, probably.

The key is that the data is redundantly distributed, a kind of hybrid of both RAID and torrent, but the workstations don't have to hold *all* the data apiece, just enough of the data to help complete the request if they're a part of the network, with the centralized repository being the key. Of interest, perhaps, is that if the server dies, the data should be aggregately recoverable from the workstations. In theory, if the server dies, the data is still accessible from the workstations, and likely the server's downtime would be unnoticed by the users.

I'm sure someone has thought of this, but if not, something I'm thinking about.

What if, further, the "server" floated CPU between the machines? I mean that the server is a virtual machine in the workstation cloud.

Blog Archive