Jump to content
  • entries
    60
  • comments
    63
  • views
    774

Entries in this blog

A script that finds accounts with no password allowed and changes the flag

#Looks for user accounts with no password allowed and changes it #timestamp function filter timestamp {"$(get-date -Format G): $_"} #get script name $scriptname = $MyInvocation.MyCommand.Name #output file $log = ".\$($scriptname).csv" #test for log file if (!(test-path $log)) { New-Item -Path $log | Out-Null} else { clear-content -path $log -Force } ##================================================ get-aduser -filter * -properties * | select-object samaccountname,useraccountcontrol

browolf

browolf

Msys2 certificate errors

If you get these types of error running pacman update     error: failed retrieving file 'mingw32.db' from repo.msys2.org : SSL certificate problem: self signed certificate in certificate chain   one way to fix it is to replace ca-bundle.crt with the self-signed certificate.   This works for us going through netsweeper.

browolf

browolf

Msys2 certificate errors

If you get these types of error running pacman update   error: failed retrieving file 'mingw32.db' from repo.msys2.org : SSL certificate problem: self signed certificate in certificate chain   one way to fix it is to replace ca-bundle.crt with the self-signed certificate.   This works for us running through netsweeper.

browolf

browolf

When your teachers create their own class teams

How to add the pupils to existing empty teams with powershell         req: a sims report with the columns classcode, admission number, admission number in the office field of 365 accounts, class code in the team name of the format #:classcode#     #get useraccounts, drop in file get-msoluser -all | where-object {$_.office} | Select-Object Userprincipalname,office | export-csv -path msoluser.csv -NoTypeInformation #add useraccounts to lookup table write-output "Adding pupils to lookup" $xpu

browolf

browolf

Office 365 Powershell commands

Not being overly familiar with powershell I keep this list to remeber how to do stuff and help do new stuff.   I reproduce the list to help anyone else looking for the right command Connect to Office365     Connect-MsolService     connect to exchange online     $UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri [url]https://outlook.office365.com/powershell-liveid/[/url] -Credential $UserCredential -Authentication Basic -All

browolf

browolf

Ninite with group policy

https://brashear.me/blog/2015/01/23/deploy-application-updates-with-ninite-with-a-cache-on-your-lan/   It's taken me 3 hours to figure out that the scheduled task command   powershell -ExecutionPolicy Bypass -file .....   No longer works as intended. Although it allows the powershell script and by extension ninite pro to run, something is getting blocked. If I run the ninite command on the command line it works fine. If I run the powershell command on the command line, the script runs

browolf

browolf

When virtualization does you over worse than the old system ever could

So it was always my impression that one of the benefits of virtualization was less disasters and easier recovery. And practically the only way to loose a virtual server would be either accidently broke windows or the SAN broke. In any other circumstance the VM could be recovered from the SAN. We have a backup NAS for the most important VMs as a means for fast recovery in case of accidental breakage. Important Vms like print server or Domain controller. Other things It wouldn't be disaster to h

browolf

browolf

Add members to an Office 365 distribution group with powershell.

There's 2 ways to connect to office365 through powershell.   MSOL Exchange online.   You can add members to a security group using MSOL but you have to use EOL for distribution groups or mail-enabled security groups.   At this juncture I only know how to get user data using msol.   (we use -like @ domain because pupils have a different subdomain)     #connect MSOL connect-msolservice get-msoluser -all | where-object {$_.userprincipalname -like "domain"} | export-csv -path "d:\staffe

browolf

browolf

Cryptonight News

Word is that Haven Protocol (XHV) is a decent CPU/GPU currency to mine at the moment. Cryptoknight.cc reports it's profit as around $2.60 KH/$/Day but you have to remember Haven uses cryptonight-heavy which means 1KH is 2-3 times as much power as normal cryptonight coins e.g Monero.   Also worth a look is a Brazillian cryptonight coin called Niobio, although I haven't managed to find a remote daemon link for it as the wallet itself had a problem downloading the blockchain. But you can sell i

browolf

browolf

Selling computing power.

What I need is a company that comes to school and says.   We want to rent some of your computing power to do "work", you'll get a percentage of the value of the "work". Due to the market the value of the "work" changes but you'll always get more than you would spend in electricity. All you have to do is install our client on your computers. We'll send you a monthly report of how much "work" your computers performed, the cost of the electricity and how much we'll pay you for the work. It

browolf

browolf

Avoid these

If you get any emails like this, sent to our general school email, delete them because Narconon is a subsidiary of the church of Scientology and you don't want to get involved with those charlatans.   info: https://tonyortega.org/2016/10/09/exclusive-recent-deaths-of-scientology-rehab-staffers-points-to-ongoing-problem/   [ATTACH=CONFIG]47290[/ATTACH]

browolf

browolf

Here's a strange thing

My email is [email protected]   Occasionally I get mail addressed to [email protected] i.e. no dot   As it happens, gmail accounts with dots in also have an alias of no dot. So [email protected] is a legit alias of my email.   So the strange thing is the mail i get to the alias is someone else's mail.   My email is def not compromised and I have 2 factor authentication.   The mails I get are typically signup mails where the signup mail is

browolf

browolf

PC Build July 2017

Every month I ponder whether I should make myself a new computer; since I've had this one for 5 years. I think I can put it off till Fallout 5 is released. The last time I replaced my PC it was so that Final Fantasy xiv would work. I still plan what I would buy if I were to do it. My Budget is usually around £800 but I got some extra in lieu from a long service award. My ideal pc has decent quality components, best performance, quiet as possible. Also I'm "attached" to certain brands.

browolf

browolf

PC Build July 2017

Every month I ponder whether I should make myself a new computer; since I've had this one for 5 years. I think I can put it off till Fallout 5 is released. The last time I replaced my PC it was so that Final Fantasy xiv would work. I still plan what I would buy if I were to do it. My Budget is usually around £800 but I got some extra in lieu from a long service award. My ideal pc has decent quality components, best performance, quiet as possible. Also I'm "attached" to certain brands.

browolf

browolf

Win 10 Office 2013/2016

I just discovered you can't install Office 2013 or 2016 32bit on Win 10 version 1703 64bit. I suppose it makes sense to keep all the bits the same. Still it would have been better if there was an actual error message rather than the installer just exiting.   the main error seems to be related to ExcelMUI.MSI.     Of course the 64bit version of either works just fine...

browolf

browolf

Script for auto changing control assessment passwords

Barely anyone outside these circles can understand the frustration one has from windows when   Spent 5 hours writing the perfect script for changing the control assessment passwords. It chooses a random word out of 1600 changes the passwords using dsmod writes them to files on the staff drive emails them to relevant teachers using blat.   It took 5 hours because I don't code in vbscript often so practically every line had errors. Only 34 lines... Also originally I was going to have th

browolf

browolf

Looking for more money?

If you 're thinking you could do with more income, might I suggest taking up "Dropshipping". It's a method of selling online whereby one holds no stock. Ebay call it "Product sourcing" and describe it thus: "Sellers using a product sourcing service never handle the item—instead it is sent directly from a warehouse to the buyer." The "warehouse" is usually an online wholesaler or other retailer.   The good thing about Dropshipping is that it takes little to no money getting stated, and later

browolf

browolf

Seasonal computer error.

My home computer, which is 3-4 years old, every year has a weird error between the months of November and May.   It stalls on boot with CPU Fan error. Wait 30-60 seconds, reboot, and it works. Today it started happening again.   I know that the cpu fan is powered on an auxiliary fan power point and not the labelled cpu fan point. It didn't seem to be a problem when I first built the computer (probably because it wasn't between Nov and May at the time)   It has been suggested that it's a tem

browolf

browolf

Outlook 2016

I fully expected outlook 2016 to automatically pick up my office 365 group memberships.   But it doesn't.   It finds the ITSupport group in "search people". I subscribed even though I'm a member.   Still nothing in groups section under mailbox :-(   this is a disaster as I told the deputy head that outlook 2016 would solve all our groups problems. The main one being people want to stay in OWA where the groups are, and not use outlook 2013.   It's not going to go down well if I have to tel

browolf

browolf

Interesting Videos #1 Published on Apr 30, 2015

Jon Ronson, author of books like "the men who stare at goats" and "the psychopath test" talks about his new book "So you've been publicly shamed". It's about the stories of the people who have been massively publicly shamed online.   Jon Ronson has a lot of stories... and a wonderful way of describing them and events that have occurred to him or people he met. Funnily enough I've never read his books but I like listening to him talk about stuff.       If you like that; definitely check

browolf

browolf

My New Favorite Album

is actually 2 albums. They are "Hybrid" and "Mechanics of Emotion" by Elsiane.   If you like Zero 7 or perhaps björk, I think you'd like this too.   The singer, a peruvian woman has an incredible voice that it's hard to believe isn't being post-produced in some way. This video from a russian radio station illustrates its live quality (they didn't believe it either)     this is the produced version is at

browolf

browolf

It's not "Gambling" if you can't loose!

Hit on this through a friend and made £100 in a month. That was being cautious with it and only doing 1 bet at a time.   It's called Profit Accumulator, which is a sytem for doing "Matched betting". From what I can see, matched betting has been around for years, but not as simple as this.   It takes a while to get your head around how it works.   Makes money from bookies's free bets. Converts about ~75% of the free bet into money in your pocket.   Using tools on the Profit Accumulator web

browolf

browolf

Debian install CDs

For the first time I've had to install debian from the DVDs. Usually I use the minimal ISO and update from the internet.   I need a machine to install FreeRadius on. Using debian on a hyper-V virtual machine on win 2008r2. It installed Really fast   So what's a mystery is after switching the sources from DVD to the internet ones in sources.list, only 3 mentions of radius can be found. Unlike the 63! in the wheezy repository site.   I've done apt-get update and even apt-get upgrade (which

browolf

browolf

Friday's weird events

This is strange.   Set up 2 dhcp boxes on the guest wireless to replace proxies. Proxies no longer needed, only dhcp to hand out county addresses.   First one works fine. Its a debian base install with only isc-dhcp-server, dnstools, ntfs-3g, dhcpstatus & ssh. It's super quick on a dual core HP workstation!   the second one is a failover handing out the 2nd half of our allocated range. I was writing the documentation whilst I did that one. Sort of a record of how to set another up if so

browolf

browolf

×
×
  • Create New...