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...
תגיות:
אין תגובות

How to deploy In-Place Windows 10 via SCCM

12 בJanuary 2017

Hello everyone, I really hope you are good because this article goes to show you how to deploy Windows 10 "In-Place" Task Sequence via SCCM. The in-place image allows you to upgrade Windows 7/8 to Windows 10 with keeping all personal information and programs, the second type is scratch which is most popular and allows you to format the computer and install the Windows 10 from scratch (BTW, I am working on this article as well.) Several points before you starting with In-Place upgrade deployment in your organizations: Export a list of any software, applications of your users, give up about Google...
תגיות:
אין תגובות

Create offline image – Stand-Alone Media

5 בJanuary 2017

Hi guys, I would like to share with you a new procedure today, You are going to meet all steps you have to do in order to create a "Stand-Alone" image as known "Offline Image". Stand-Alone media allows you to deploy your Task Sequence as offline, without any communication between the client to SCCM. What are the options you have when your HD team has to deploy image when SCCM is not available? or when the remote site hasn't DP?, Therefore in this article, you will see how to create ISO file from you Task Sequence and deploying it wherever...
תגיות:
אין תגובות