Make from a Powershell script an Exe file

I use this program to make scripts and easy added to Landesk. And it works for Windows 10.

Start iexpress

Click on Next

Click on Next

Enter a Title of the package and click on Next

Click on Next

Click on Next

Add the powershell script (*.ps1) and click on Next

Fill in at Install Program: powershell.exe -noprofile -Sta -executionpolicy bypass -File <Powershell scriptname.ps1>
And click on Next

Click on Next

Click on Next

Where to save the exe file. Click on browse. Select the options what you want and click on Next

When the install is done, do you want to reboot?
I always use No restart. Click on Next

Choose if you want to save the SED file and Click on Next.

Click on Next to create Package

The package is created. Click on Finish and test the application.

Outlook – Save attachements from multiple emails at once

A department complained that they recieve a lot of emails with attachements to save on the network drive. They needed to open all the emails one by one and save the attachement. I searched on the internet and i found mAttachementSaver

If you can’t download this. Below is the code of mAttachmentSaver.bas

Used the content of the website.

Save attachments from multiple selected items in Outlook (VBA)

Save attachments from multiple selected items in Outlook (VBA)

Introduction

This VBA sample illustrates how to save attachments from multiple selected items in Outlook.

Scenarios

When multiple items are selected, the Save Attachments option in the File menu will be grayed out, and it’s inconvenient to save attachments one by one. This script is useful and can be used to save attachments from multiple selected items all at once.

Script

Import the “mAttachmentSaver.bas” file.

Step1. Press Alt+F11 to open the VBE in Outlook.

Step2. Drag the “mAttachmentSaver.bas” file to the Project Explorer (Press Ctrl+R if you cannot see it) or via File >> Import File… (Ctrl+M).

Run the ExecuteSaving macro to save attachments.

Step3. Go back to Outlook UI, and then press Alt+F8 to open the Macros window.

Step4. Select “ExecuteSaving” in the names list, and then click the Run button (Please remember to select Outlook item(s) before running this macro).

Step5. Select a specific folder to save attachments from Browse For Folder dialog box, and then click the OK button.

 

Here are some code snippets for your references. To get the complete script sample, please click the Download button at the beginning of this page.

Visual Basic
Edit|Remove

Note

1. Please make sure that macros are enabled in Outlook.

For Outlook 2010:
File >> Options >> Trust Center >> Trust Center Settings >> Macro Settings >> Enable all macros >> OK >> OK >> Restart Outlook

For Outlook 2007:
Tools >> Macro >> Security… >> Macro >> Security >> No security check for macros >> OK >> Restart Outlook

For Outlook 2003:
Tools >> Macro >> Security… >> Macro >> Security >> Low >> OK >> Restart Outlook

2. This macro will save all attachments even those are used in the item body.

3. If the attachment file to be saved (let’s call “FileA.txt”) has already existed in the folder (FileA.txt, FileB.txt, FileC.txt … and so on), the date time string will be appended to the attachment file name automatically.
For example:
The “FileA.txt” file may be named as “FileA_05201830669.txt”.
“05” means the current month;
“20” means the current day;
“18” means the current hour;
“30” means the current minute;
“669” means the current millisecond.

4. In Windows file system, the specified path cannot be so long that you cannot create or save a file. The maximum path length limitation is 260 characters. So sometimes some attachments cannot be saved successfully if the specified path is over 260 characters.

 

Create a reboot popup with Landesk

The problem what I had with Landesk, when software is installed I want to inform the user to reboot. This is not configured in Landesk.

I made this script that use landesk client on the system to create a popup for a reboot.

Add this script to landesk as a program and you can use it every time when you need to inform the user to reboot.

Netsend with PStools

I created this script to send a message to all of our managed systems if there are problems and email is not working.

Here is the overview of the files what you need.

The computer.txt is the list of all hostnames where you want to send message.

PsExec you can download at Microsoft.

readme.txt is a short manual how to use it for other people

The startmij.cmd file below you can only run when the files are local on the system with UAC enabled and tested only with Windows 7. And you need to have local admin rights on all of the domain computers.

OSD – BIOS upgrade during OS Deployment in MDT/ConfigMgr by Mikael Nystrom

Source: deploymentbunny.com

Changed the script for my enviroment

This is how it is in MDT.

This is the folder structure

Policy Windows 10 – Project to this PC

How to disable the Project to this PC feature in Windows 10 1607

Using GPO, you can disable Project to this PC in the UI by settings the GPO setting Don’t allow this PC to be projected to to Enable. This settings is located under Computer configuration > (Policies) > Administrative templates > Windows Components > Connect

Policy Windows 10 – Mobile hotspot

How to disable the Mobile hotspot feature in Windows 10 1607

Using GPO, you can disable Mobile Hotspot in the UI by settings the GPO setting Prohibit use of Internet Connection sharing on your DNS domain network to Enabled. This settings is located under Computer configuration > (Policies) > Administrative templates > Network > Network Connections.

Send emails from functional mailbox to send box of that mailbox

We have Multiple mailboxes. Standard is when you send an email from those mailboxes, the emails are in your own send box. By adding this regkey it will be placed in the mailbox of where you send it from.

This is for Outlook 2010. Change 14.0 to the correct version. (Save the file as *.reg and run it)

14.0 = Office 2010
15.0 = Office 2013
16.0 = Office 2016