When running a CU on an Exchange hybrid setup the installation failed because services were disabled. This script will make sure every 10 seconds that Exchange services are not disabled during installation.
Opslag
Access Exchange online with Office 365 multi-factor authentication (MFA/2FA)
- Hent link
- X
- Andre apps
I've been having some trouble doing Exchange PowerShell after enabling Office 365 MFA on my account. I did this to gain access from my computer. 1) First save this to a .reg file (e.g. fix.reg ) and run it to allow installing the Exchange Online Remote PowerShell Module on your computer from Internet Explorer: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\Security\TrustManager\PromptingLevel] "MyComputer"="Enabled" "LocalIntranet"="Disabled" "Internet"="Enabled" "TrustedSites"="Enabled" "UntrustedSites"="Enabled" 2) Then paste this URL in Internet Explorer to install the module: https://cmdletpswmodule.blob.core.windows.net/exopsmodule/Microsoft.Online.CSE.PSModule.Client.application 3) Now run this command to connect (remember to modify the UserPrincipalName to match your own username): Connect-EXOP...
7zip compress files (all or with specific extension) in folder and subfolder and delete original file
- Hent link
- X
- Andre apps
Send email with attached report of computers not reporting WSUS status within the last 30 days (or never)
- Hent link
- X
- Andre apps
Compress all BAK files in folder (and subfolders) with 7-Zip and delete original files
- Hent link
- X
- Andre apps
If Hyper-V replica is not normal, or running, send email warning
- Hent link
- X
- Andre apps
Get all user accounts where password never expires using PowerShell
- Hent link
- X
- Andre apps
Count and compare two folders with PowerShell and mail the result
- Hent link
- X
- Andre apps
Remove all phone numbers on all users in OU in Windows domain
- Hent link
- X
- Andre apps
Find all Exchange mailboxes a list of users have access to with PowerShell
- Hent link
- X
- Andre apps
To find all Exchange mailboxes a list of users have access to put the mailboxes in a TXT file. One mailbox per line, e.g.: myname@domain.com mynewname@domain.com etc. Save the file as 'users.txt' and put the file on your desktop. Run this code to create a TXT file with all the mailboxes a user has access to:
Installing Ansible on Ubuntu 18.04 and running simple commands
- Hent link
- X
- Andre apps
INSTALL: sudo apt update sudo apt install software-properties-common sudo apt-add-repository ppa:ansible/ansible sudo apt update sudo apt install ansible CONFIGURE: *Edit '/etc/ansible/hosts' *Define 'hosts' - or Ansible clients. Create a group called 'ahosts': [ahosts] host1 ansible_ssh_host=192.168.1.28 *Tell Ansible to use python interpreter in path /usr/bin/python3 (shipped with Ubuntu 18.04) [servers:vars] ansible_python_interpreter=/usr/bin/python3 *Tell Ansible to use username 'ak' when connecting to hosts (if not using SSH keys): *Make dir '/etc/ansible/group_vars' *Edit '/etc/ansible/group_vars/servers' --- ansible_ssh_user: ak RUN COMMAND ON HOSTS IN GROUP 'ahosts' AND ASK FOR SSH PASSWORD: ansible --ask-pass -m ping ahosts RUN COMMAND ON HOSTS 'host1' AND 'host2' AND ASK FOR SSH PASSWORD: ansible --ask-pass -m ping host1:host2 RUN SHELL COMMAND ON HOSTS IN ...
Data leak prevention for Danish social security numbers (regular expression)
- Hent link
- X
- Andre apps
I've created a regular expression to prevent leaking Danish social security numbers via e-mails. I use this filter in my SPAM filter/SMTP (outgoing and incoming) server (SpamTitan) and it will match both 123456-7890 and 1234567890: (\W|^)[0-9][0-9][0-9][0-9][0-9][0-9](-| |)[0-9][0-9][0-9][0-9](\W|$)
Adjust mouse sensitivity in Ubuntu 17.04
- Hent link
- X
- Andre apps
1) Create script. I created the script in my home folder. Insert your own user name instead: sudo nano /home/allan/mouseSensitivity.sh Script containing (220 is max sensitivity): echo -n 220 > /sys/devices/platform/i8042/serio1/sensitivity 2) Make file executable: sudo chmod +x /home/allan/mouseSensitivity.sh 3) Make script run at reboot. First edit crontab: sudo crontab -e and make script run at reboot: @reboot /home/allan/mouseSensitivity.sh
Make Firefox read certificates from Windows certificate store
- Hent link
- X
- Andre apps
I recently activated SSL inspection on user computers. I installed a certificate from the supplier to use, but Firefox did not read this certificate. Google Chrome and Internet Explorer worked fine. To make this work, force Firefox to read certificates from Windows store by changing settings in Firefox. Firefox will read .js files when starting. Create a new file containing: - and save with extension .js. E.g. Firefox_settings_securityEnterpriseRootEnabled.js . Use Windows to distribute this file to all computers to both 32 and 64 bit folder: C:\Program Files\Mozilla Firefox\defaults\pref & C:\Program Files (x86)\Mozilla Firefox\defaults\pref
Get list of all SIP addresses on Exchange in searchable view
- Hent link
- X
- Andre apps
Get-Mailbox -ResultSize Unlimited | Select-Object -ExpandProperty EmailAddresses | Where-Object {$_ -imatch "SIP" } | Select-Object ProxyAddressString | Out-GridView or to view in comma separated file: Get-Mailbox -ResultSize Unlimited | Select-Object -ExpandProperty EmailAddresses | Where-Object {$_ -imatch "SIP" } | Select-Object ProxyAddressString | Export-Csv [PATH TO FILE HERE]
Nokia 6, Oister og MMS
- Hent link
- X
- Andre apps
Oister kunne ikke hjælpe mig med opsætningen af min Nokia 6 og MMS, så jeg fandt selv ud af det. Nu kan du se hvordan her: Start med "Indstillinger" -> "Mere" -> "Mobilnetværk" -> "Adgangspunkter". Vælg "Oister MMS" og ret den til som nedenstående. Husk at vælge "Gem" i menuen til sidst. Genstart er ikke nødvendigt.
Mouse sensitivity too slow, or low, after upgrade to Ubuntu 17.04
- Hent link
- X
- Andre apps
I was unable to change the mouse sensitivity after upgrading to Ubuntu 17.04. It was very low/slow after upgrade. Changing it in the default mouse app didn't do any difference. And xinput didn't work. I ended up modifying "/sys/devices/platform/i8042/serio1/sensitivity" and changing the value to 220. It worked immediately. To make the change work after every reboot, edit '/etc/rc.local' and add this line before the command 'exit 0': echo -n 220 > /sys/devices/platform/i8042/serio1/sensitivity My '/etc/rc.local' looks like this: #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. echo -n 220 > /sys/devices/platform/i8042/serio1/sensitivity exit 0