Tag: deploy
How to change a Office plugin that installs in a Users Profile to work on a Shared terminal server
Recently had a plugin that installed by default to the users profile location , this is how to manually change it to a directory so it can […]
InTune – Copy file using PowerShell to the computer from an Azure Blob location
I set a 100 Year Expiry , and leave access as Read Only It will give you URI and query string Copy the URI ONLY up to […]
How to deploy trusteer rapport via Intune or GPO silently
Download from http://download.trusteer.com/Gcur4Wtnu/RapportSetup-Full_x64.exeIntune : RapportSetup-Full_x64.exe /s /p NOICONS=true NOBROWSER=true ACCEPTLICENSE=TRUEGPO Powershell Computer Startup Script : [pastacode lang=”bash” manual=”If(!(Test-Path%20-path%20%22C%3A%5CProgram%20Files%20(x86)%5CTrusteer%5CRapport%5CConsole.ico%22))%0A%0A%20%7B%0A%20cd%20%22%5C%5Clocal%5Cto%5Cinstaller%5CGroupPolicy%5CTrustee%22%0A.%5CRapportSetup-Full_x64.exe%20%2Fs%20%2Fp%20NOICONS%3Dtrue%20NOBROWSER%3Dtrue%20ACCEPTLICENSE%3DTRUE%0A%0A%7D%0A” message=”” highlight=”” provider=”manual”/]
How to Use Powershell to Mail Merge Outlook Signature for Users out of Active Directory
Script 1[pastacode lang=”markup” manual=”%23Get%20Active%20Directory%20information%20for%20current%20user%0A%0A%24UserName%20%3D%20%24env%3Ausername%0A%0A%24Filter%20%3D%20%E2%80%9C(%26(objectCategory%3DUser)(samAccountName%3D%24UserName))%E2%80%9D%0A%0A%24Searcher%20%3D%20New-Object%20System.DirectoryServices.DirectorySearcher%0A%0A%24Searcher.Filter%20%3D%20%24Filter%0A%0A%24ADUserPath%20%3D%20%24Searcher.FindOne()%0A%0A%24ADUser%20%3D%20%24ADUserPath.GetDirectoryEntry()%0A%0A%24ADDisplayName%20%3D%20%24ADUser.name%0A%0A%24ADTitle%20%3D%20%24ADUser.title%0A%0A%24ADOffice%20%3D%20%24ADUser.physicalDeliveryOfficeName%0A%0A%24script%3AADMobileNumber%20%3D%20%24script%3AADUser.mobile%0A%0A%24ADTelePhoneNumber%20%3D%20%24ADUser.telephoneNumber%0A%0A%24ADExtension1%20%3D%20%24ADUser.extensionAttribute1%0A%0A%24ADExtension2%20%3D%20%24ADUser.extensionAttribute2%0A%0A%24ADExtension3%20%3D%20%24ADUser.extensionAttribute3%0A%0A%20%0A%0A%23Additional%20Variables%0A%0A%24AppData%3D(Get-Item%20env%3Aappdata).value%0A%0A%24SigPath%20%3D%20%E2%80%98%5CMicrosoft%5CSignatures%E2%80%99%0A%0A%24LocalSignaturePath%20%3D%20%24AppData%2B%24SigPath%0A%0A%24SignatureName%20%3D%20’%25signaturename%25’%0A%0A%24DomainName%20%3D%20’%25domainname%25’%0A%0A%24fulladdetails%20%3D%20%24ADDisplayName%2B%24ADExtension1%2B%24ADTitle%2B%24ADOffice%2B%24script%3AADMobileNumber%2B%24ADTelePhoneNumber%0A%0A%20%0A%0A%23Check%20if%20signature%20directory%20exists%20and%2C%20if%20not%2C%20update%20it%0A%0AIf%20(Test-Path%20%24LocalSignaturePath)%0A%0A%7B%7D%0A%0AElse%0A%0A%7BNew-Item%20%24LocalSignaturePath%20-type%20directory%7D%0A%0A%20%0A%0AWrite-host%20%24fulladdetails%0A%0A%20%0A%0A%23Check%20if%20%20Signature%20has%20changed%0A%0AIf%20(%22%24fulladdetails%22%20-eq%20%22%24SigChkDetails%22)%0A%0A%7B%20Exit%20%7D%0A%0AElse%0A%0A%7B%20%20%7D%0A%0A%20%0A%0A%23Delete%20old%20signature%20files%0A%0ARemove-Item%20%22%24LocalSignaturePath%5C%24ADDisplayName.htm%22%20-Recurse%20-Force%0A%0A%20%0A%0A%23Copy%20over%20signature%20template%0A%0A%24SigSource%20%3D%20%E2%80%9C%5C%5Cpath%5Cto%5Csignature%5Csource%22%0A%0A%24filename%20%3D%20%22%5C%5Cpath%5Cto%5Csignature%5Ctemplate.htm%22%0A%0A%24filename2%20%3D%20%22%5C%5Cpath%5Cto%5Clogo.jpg%22%0A%0A%20%0A%0ACopy-Item%20%24filename%20%24LocalSignaturePath%20-Recurse%20-Force%0A%0ACopy-Item%20%24filename2%20%24LocalSignaturePath%20-Recurse%20-Force%0A%20%0A%0A%23Modify%20Signature%20and%20Insert%20Variables%0A%0A(Get-Content%20%24LocalSignaturePath%5Ctemplate.htm)%20-replace%20’FullName’%2C%20%24ADDisplayName%20%7C%20Set-Content%20%24LocalSignaturePath%5Ctemplate.htm%0A%0A(Get-Content%20%24LocalSignaturePath%5Ctemplate.htm)%20-replace%20’PositionTitle’%2C%20%24ADTitle%20%7C%20Set-Content%20%24LocalSignaturePath%5Ctemplate.htm%0A%0A(Get-Content%20%24LocalSignaturePath%5Ctemplate.htm)%20-replace%20’PhoneNumber’%2C%20%24ADTelePhoneNumber%20%7C%20Set-Content%20%24LocalSignaturePath%5Ctemplate.htm%0A%0A%20%0A%0AIf(!%24script%3AADMobileNumber%20-or%20!%24ADExtension2)%7B%0A%0A(Get-Content%20%24LocalSignaturePath%5Ctemplate.htm)%20-replace%20’%3Cb%3EM%3C%2Fb%3E%20MobileNumber’%2C%20%24NULL%20%7C%20Set-Content%20%24LocalSignaturePath%5Ctemplate.htm%7D%0A%0AELSE%0A%0A%7B(Get-Content%20%24LocalSignaturePath%5Ctemplate.htm)%20-replace%20’MobileNumber’%2C%20%24script%3AADMobileNumber%20%7C%20Set-Content%20%24LocalSignaturePath%5Ctemplate.htm%7D%0A%0A%20%0A%0AIf(!%24ADExtension1)%7B%0A%0A(Get-Content%20%24LocalSignaturePath%5Ctemplate.htm)%20-replace%20’%2C%20Qualification’%2C%20%24NULL%20%7C%20Set-Content%20%24LocalSignaturePath%5Ctemplate.htm%7D%0A%0AELSE%0A%0A%7B(Get-Content%20%24LocalSignaturePath%5Ctemplate.htm)%20-replace%20’Qualification’%2C%20%24ADExtension1%20%7C%20Set-Content%20%24LocalSignaturePath%5Ctemplate.htm%7D%0A%0A%20%0A%0AIf(%24ADOffice%20-ne%20’Singapore’)%7B%0A%0AIf(!%24ADExtension3)%7B%0A%0A(Get-Content%20%24LocalSignaturePath%5Ctemplate.htm)%20-replace%20’ImageRow’%2C%20’%3Cimg%20src%3D%22.%2Flogo.jpg%22%20width%3D%22259%22%20height%3D%2274%22%20border%3D%220%22%20%2F%3E’%20%7C%20Set-Content%20%24LocalSignaturePath%5Ctemplate.htm%7D%0A%0A%7DELSE%0A%0A%7B(Get-Content%20%24LocalSignaturePath%5Ctemplate.htm)%20-replace%20’ImageRow’%2C%20%24null%20%7C%20Set-Content%20%24LocalSignaturePath%5Ctemplate.htm%7D%0A%0A%0A%0A%20%0A%0ARename-Item%20-Path%20%24LocalSignaturePath%5Ctemplate.htm%20-NewName%20%22%24ADDisplayName.htm%22%0A%0A%20%0A%0A%23Set%20company%20signature%20as%20default%20for%20New%20messages%0A%0A%5BVoid%5D%20%5BReflection.Assembly%5D%3A%3ALoadWithPartialName(%22Microsoft.Office.Interop.Word%22)%0A%0A%24MSWord%20%3D%20New-Object%20-com%20word.application%0A%0A%24EmailOptions%20%3D%20%24MSWord.EmailOptions%0A%0A%24EmailSignature%20%3D%20%24EmailOptions.EmailSignature%0A%0A%24EmailSignatureEntries%20%3D%20%24EmailSignature.EmailSignatureEntries%0A%0A%24EmailSignature.NewMessageSignature%3D%24ADDisplayName%0A%0A%24MSWord.Quit()%0A%0A%20%0A%0A%23Set%20company%20signature%20as%20default%20for%20Reply%20messages%0A%0A%5BVoid%5D%20%5BReflection.Assembly%5D%3A%3ALoadWithPartialName(%22Microsoft.Office.Interop.Word%22)%0A%0A%24MSWord%20%3D%20New-Object%20-com%20word.application%0A%0A%24EmailOptions%20%3D%20%24MSWord.EmailOptions%0A%0A%24EmailSignature%20%3D%20%24EmailOptions.EmailSignature%0A%0A%24EmailSignatureEntries%20%3D%20%24EmailSignature.EmailSignatureEntries%0A%0A%24EmailSignature.ReplyMessageSignature%3D%24ADDisplayName%0A%0A%24MSWord.Quit()%20″ message=”” highlight=”” provider=”manual”/] Script 2https://pastebin.com/NLJauHgN Script 3https://github.com/raymix/PowerShell-Outlook-Signatures
How to deploy Project 2010 or other Office 2010 apps with Intune and setup.exe installer
Extract the ISO to a folder and run from the root foldersetup.exe /adminto open thisGo through all the options especially above for the CD Key information and […]
How to Deploy Scheduled Tasks Remotely SCHTASKS and BatchPatch
Recently a Webroot Bug : https://community.spiceworks.com/topic/2114911-netlogon-5820-endpoint-duplicate-windows-10 and https://community.webroot.com/t5/Known-Issues-KB/Netlogon-is-not-starting-after-Reboot/ta-p/316119 Had caused Netlogon service to not start on some machines which stops group policy running. We needed to deploy the following which […]