Uninstall Office professional and Install Click to run SCCM

7 בFebruary 2017

How to uninstall Office 2013 and install 2016 click to run including warning message by SCCM: Following to my last article about Office 2016 deployment by SCCM: http://pelegit.co.il/deploy-office-2016-click-run-via-sccm/ In this article you are going to see several steps: Notify user about installing Close office process by TASKKILL Installing new Office version uninstall old office version informing the users about success. Let take a look on steps: The first step is going to be simple VBS script with MsgBox: result = MsgBox ("" & vbnewline & "Dear PelegIT users, Office version 2016 upgrade will start shortly. Please save your files and do not open any office programs until...
תגיות:
2 תגובות

Check Skype For Business version

Assuming you want to upgrade your Skype For business's version or want to know what is the current version you have to open Skype For Business Management Shell and run the following commands: Check  CS Server Version: Get-CsServerVersion And for getting the version of each component you have to run this: Get-CsServerPatchVersion | ft -AutoSize Before you are running upgrade make sure: Front End + Edge are up to date with Windows Update Run the following command through SfB Shell: Stop-CsWindowsService net stop w3svc Follow the steps here ( The step can be changed from environment to environment so I prefer you will go over to...
תגיות:
אין תגובות

Manage Local Account users by PowerShell

30 בJanuary 2017

Well, today I am going to share with you a good script which knows to remove any foreign user from a computer except certain user that you might specify. In my script, I set to remove any local users except of 'Administrator' & 'Visitor & 'DefaultAccount' $ComputerMember = "WinNT://ComputerName" $Users = $ComputerMember.Children | where {$_.SchemaClassName -eq 'user'} $users.Name foreach ($user in $users.Name) { if($user -eq "Administrator" -or $user -eq "Visitor" -or $userv -eq "DefaultAccount") { } else { $ComputerMember.Delete("User",$user) } } This script either can runs per OU or through TXT file, whenever you want. How to Delete a specific Local Admin from all computer...
תגיות:
אין תגובות

Read CSV add to group Powershell

29 בJanuary 2017

Hi guys, Today my dear friend Yossi brought me kind of task to add new members to a security group, so I got CSV file with list of Mail attribute, If you look into the script you can see that I am querying MAIL parameter and retrieve the SamAccountName and then exporting it to CSV Look at the following script: $File = Get-Content C:\PlaygroundPowershell\EmailAddress_List.csv Foreach ($a in $File) { Get-AdUser -Filter {Mail -eq $a} -Properties Mail | Select SamAccountName | Export-Csv C:\PlaygroundPowershell\EmailAddress_List.csv -NoTypeInformation Append } Once CSV exported, the second stage is to add the users from the CSV to a security group by the following command: $Users = Import-Csv...
תגיות:
אין תגובות

How to change language display Login windows 10

24 בJanuary 2017

Welcome yo my blog again, it is was very important for me to share with you the following knowledge, I do not know if you have noticed yet or not, even your Operating System language is configured as English, in the Windows login page English page won't be as default and you have to change the language with alt + shift, I already hear about this annoying case too many times and decided to put an end to this. Please follow the step you have to do: Open start and type "region & language settings", under region & language you should see two...
תגיות:
2 תגובות

How to query BIOS settings by SCCM

23 בJanuary 2017

Hi again dear visitors, in this article you are going to see how I am querying BIOS settings (of Lenovo) and retrieves information directly from the bios. For what do I need it? There are a couple of reasons, What if you have deployed Windows 10 machines and you want to trace down and check which computer is not configured with UEFI? what if you want to see UEFI settings? secure boot? or even boot sequence configuration. I am talking about information that isn't collected to SCCM databases on a regular basis, As you may know, by default SCCM knows to collect basic...
תגיות:
אין תגובות

Check White Space Exchange

22 בJanuary 2017

Hi Guys, I would like to talk and show you useful commands about White Space of Exchange databases, It is could sound you little bit weird but something the size of databases we see in Exchange is not the real utilization size we are seeing under LUNS, what doest it mean?, Exchange doesn't know to reduce the databases after any delete process, or move process has been done. You have to check it out and follow to databases size changes by the followings commands: If you have a gap of 3-10 GB of whitespace I even don't suggest to start with...
תגיות:
אין תגובות

Popup message to users by PowerShell

20 בJanuary 2017

Hello guys, I have made a PowerShell script for you, this PS script helps you to inform users in urgent or updates, cases. You can deploy this PS1 file by SCCM, GPO, any other distribution tool. Add-Type -AssemblyName system.windows.Forms $user = $env:USERNAME $Form = New-Object system.windows.forms.form $Form.Text = "Good Morning,$user" $Font = New-Object System.Drawing.Font("Tahoma",14,::Regular) $Form.Size = New-Object System.Drawing.Size(500,500) $Form.Font = $Font $Image = ::FromFile("$($Env:Public)\Pictures\PelegIT1.jpg") #Make sure the pic is located on users computers $Form.BackgroundImage = $Image $Form.BackgroundImageLayout = "None" $Icon = ::ExtractAssociatedIcon($PSHOME + "\powershell.exe") $Form.Icon = $Icon $Label = New-Object System.Windows.Forms.Label $Form.StartPosition = "CenterScreen" $Label.Text = "Hi $user","`n","`n`rWelcome to my IT Blog ","","`n `nThank you for visiting my IT blog,Meir Peleg" $Label.AutoSize = $true $Label.Location =...
תגיות: ,
אין תגובות

How to delete mail office 365

15 בJanuary 2017

Hi guys, No sure it necsessary for everyone but I want to sahre with you this procedure. Imagine that your boss asks to delete certain mail from certain mailbox in offiec 365, How would you do that?: There are two available options that we can make use: grant full permission to that mailbox and then remove manully the relevant email connect to office 365 via Powershell and delete the mail. I am going to show you the second option, after connecting to office 365 by Powershell here are the context you need. First of all, we have to find out some details about a mail, then...
תגיות:
אין תגובות