Script to uninstall a program on all stations in a domain with a DC Windows Server 2008 R2

Hello
I need to uninstall a software (in this case is Microsoft Security Essential) on 130 computers in a domain where the DC is Windows server 2008 R2. The domain computers are running Windows XP (most of them), Windows 7 and Windows 8.
Can somebody tell me how to do that? I'm not very happy to manually uninstall MSE on all that 130 computers.
I never used scripts and I don't know how to make one.
Thank Tou

Here is a good article on how to remotely uninstall software:
http://blogs.technet.com/b/heyscriptingguy/archive/2011/12/14/use-powershell-to-find-and-uninstall-software.aspx
¯\_(ツ)_/¯

Similar Messages

  • Pin Programs on the Windows 7 Taskbar & Start Menu with Group Policy (Windows Server 2008 R2)

    Dear ALL,
    I want to Pin Programs on the Windows 7 Taskbar & Start Menu with Group Policy (Windows Server 2008 R2) as per below description. Can someone please help me how to proceed and achieve this. 
    Pin the following applications to the Taskbar:
    Outlook
    Pin the following applications to the Start Menu:
    Outlook
    Excel
    Word
    Internet Explorer
    Software Center
    Regards,
    Amit Kumar Rao

    https://www.google.de/search?q=windows+7+pin+to+taskbar+vbs
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • How to uninstall BPC 7.5 on Windows Server 2008 R2

    Hello Everyone
    I have to uninstall BPC 7.5 and then perform a re installation as the Domain Name was wrongly specified in previous installation. We already have a BW server installed and on top of it the BPC 7.5 Installation was carried out.
    O.S: Windows Server 2008 R2
    D.B: MS SQL Server 2008
    Could someone please suggest me the best possible way to uninstall BPC server without harming BW system? Kindly reply.
    Thanks and Regards
    Ahmed

    Hello Everybody
    I ran Server-->Diagnostics and found that there were 2 errors:
    1) SAP Server Connection->Database Connection->Status:Connection Error
    2) Message Queue-> Queue Name: Private$\BpcStatusMessageQueue>Status:Incorrect>Possible Reasons->BPC WebServer or IE Proxy cannt work.
    I have .NET 2.o installed and the value of "Enable 32 bit applications to run on 64 is set to True". I checked for users BPC_SYSADMIN, BPC_Admin, BPC_USER are all able to login to BW system.  Also the value of message queue under private queue is same as the one Private$\BPCStatusMessageQueue.
    Where do i need to check for logs for these errors.Could someone suggest how to resolve them.
    Thanks Everybody.

  • PowerShell Script running Excel won't run on Windows Server 2008 R2

    I have a script that creates a report of a single example of each warning or error in the Windows Event log, for each server in a list of servers,with the number of times that error has occurred in the last week on each server. It creates this report in
    Excel. I have this script running automated through Task Scheduler for one client on Windows 7 and it's working perfectly. I have another client that I am attempting to run this script automated on a server running Windows Server 2008 R2. I can manually run
    the script and everything works, but if I try to schedule the script everything works except for the Excel PowerShell commands. I've have tried:
    Created the Desktop folders for config\systemprofile in System32 and in SysWOW64.
    Configured permissions in DCOM for Microsoft Excel Application.
    Configured folder permissions for config\systemprofile.
    Verified PowerShell is working.
    Unchecked the option in the task to only run while logged on.
    Does anyone have any idea why this is happening and how I can fix it? Thanks!
    Sincerely,
    Christopher Beard

    You might have to launch the application once as the system account so that it can set up the Excel environment, I've had the same problem when  trying to update Excel files from an admin Powershell console using my admin account.  Use psexec with
    a -s option to run it as system account locally while logged on to the target server:
    psexec -s "c:\program files (x86)\microsoft office\office14\excel.exe"
    Then you'll most likely be prompted to input initials - which is what I suspect is preventing your code from running properly.
    There may be some other more elegant way to handle this, but you'd be better off asking that question in one of the forums devoted to Office products.
    I hope this post has helped!

  • Script stops automatically on windows server 2008, IE8 is not launched or it doesn't navigate

    QTP 11.0 - Script stops automatically on windows server 2008, IE8 and works fine on other standalone machines having Windows 7. Pls advise. It is very weird, it suddenly stops launching IE8. Sometimes it launches IE8 but des not navigate from one step to another. I have scheduled it using a vbscript though windows scheduler.  I tired to uninstall QTP, then reinstall, it works fine for first run but stops again.

    To Wendy23,
    Just for clarity, the Windows Server 2008 OS that I ran ROBOCOPY and XCOPY on was the non-R2 version. Microsoft might have fixed this issue in R2.
    You'll probably need to logon as local Administrator or use an account belonging to the local Administrators group.
    Also, open the Command Prompt using "Run as Administrator" (right-click on Command Prompt), then run the XCOPY and ROBOCOPY commands from within this prompt.
    To answer G.Write, the storage is local hard disks.
    Thanks, was a long time ago, I was having a problem with robocopy not copying permissions on a SAN, and was wondering if the SAN was the problem, but your method worked fine for me, thanks.

  • How do I run a vb script in Windows Server 2008 R2

    Hello,
    How do I run a vb script
    to generate an OID to create a new element
    of a schema in an active directory
     in Windows Server 2008 R2?
    Thank you for your feedback.
    Juan Carlos
    Juan Carlos

    Hello,
    How do I run a vb script
    to generate an OID to create a new element
    of a schema in an active directory
     in Windows Server 2008 R2?
    Thank you for your feedback.
    Do you have the script yourself? Assuming yes, it is the command:
    cscript YourScript.vbs
    Mahdi Tehrani   |  
      |  
    www.mahditehrani.ir
    Please click on Propose As Answer or to mark this post as
    and helpful for other people.
    This posting is provided AS-IS with no warranties, and confers no rights.
    How to query members of 'Local Administrators' group in all computers?

  • Windows Server 2008 R2: Script create multi users with Windows Powershell

    Dear All,
    I have windows server 2008 R2 Active Directory Domain Service. I want to create multi users by using Windows PowerShell.
    Could you guide?
    BR,
    Khemarin Set
    [email protected]

    Dear Awinish,
    Your link very my solution. but i'm very basic with Powershell and I never have experience with it.
    This is the link original script that you are provide:
    function Select-FileDialog 
    param([string]$Title,[string]$Directory,[string]$Filter="CSV Files (*.csv)|*.csv")
    [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null
    $objForm = New-Object System.Windows.Forms.OpenFileDialog
    $objForm.InitialDirectory = $Directory
    $objForm.Filter = $Filter
    $objForm.Title = $Title
    $objForm.ShowHelp = $true
    $Show = $objForm.ShowDialog()
    If ($Show -eq "OK")
    Return $objForm.FileName
    Else
    Exit
    $FileName = Select-FileDialog -Title "Import an CSV file" -Directory "C:"
    $ExchangeUsersOU = "OU=ExchangeUsers" # I don understand, I have all users are store in all-users ou
    $domain = [System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest()
    $DomainDN = (([System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest()).Domains | ? {$_.Name -eq $domain}).GetDirectoryEntry().distinguishedName
    $final = "LDAP://$DomainDN"
    $DomainPath = [ADSI]"$final"
    $cOU = $DomainPath.Create("OrganizationalUnit",$ExchangeUsersOU)
    $cOU.SetInfo()
    $UserInformation = Import-Csv $FileName
    $OUPath = "LDAP://$ExchangeUsersOU,$DomainDN" # I don understand
    $UserPath = [ADSI]"$OUPath"
    Write-Host "---------------------------------------------------------------"
    Write-Host "Creating LAB Users"
    Write-Host ""
    Write-Host "---------------------------------------------------------------"
    Foreach ($User in $UserInformation){
    $CN = $User.samAccountName
    $SN = $User.Surname
    $Given = $User.givenName
    $samAccountName = $User.samAccountName
    $Display = $User.DisplayName
    $LABUser = $UserPath.Create("User","CN=$CN")
    Write-Host "Creating User: $User.samAccountName"
    $LABUser.Put("samAccountName",$samAccountName)
    $LABUser.Put("sn",$SN)
    $LABUser.Put("givenName",$Given)
    $LABUser.Put("displayName",$Display)
    $LABUser.Put("mail","$samAccountName@$domain")
    $LABUser.Put("description", "Lab User - created via Script")
    $LABUser.Put("userPrincipalName","$samAccountName@$domain")
    $LABUser.SetInfo()
    $Pwrd = $User.Password
    $LABUser.psbase.invoke("setPassword",$Pwrd)
    $LABUser.psbase.invokeSet("AccountDisabled",$False)
    $LABUser.psbase.CommitChanges()
    Write-Host "Script Completed"
    If posible, could you help to correct script as: I have domain name: hello.net. All user are store in all-users ou.
    BR,
    Khemarin Set
    [email protected]

  • Windows Server 2008 R2 - Won't load certain web pages - Happens in all browers - Won't do windows updates

    This server (Windows Server 2008 R2 Standard with SP1) is used to host thin clients as well as RDP sessions.  One morning the office is fine, they come back from lunch and all of the sudden they can't load certain web pages, such as adobe.com
    and pandora.com to name a couple.  This was roughly 3 days ago. 
    1.)  I have tried machines that are not connected to this server (not thin client or RDP), but are on the same network, they can load up any web page fine with no issues.
    2.) On the server I have tried Opera, Chrome, IE and Firefox, all have the same exact problem.
    3.) Tried different DNS servers just to be sure, even though it only effects the server and no one else.
    Based on these facts I know that it is something wrong with the server, but not tied to a specific brower.  In all browsers when you load up a page in question it just sits there with a blank screen trying to load, it never generates any errors. 
    The Event Viewer is also clean, no errors.  So with no errors I have had trouble trying to find a starting place for this.  Things I have tried:
    1.) ipconfig /flushdns to try and clear out any DNS issues
    2.) Changing the DNS servers for the server to 8.8.8.8 and 4.2.2.2
    3.) Scanning for Viruses and Malware/Spyware
    4.) Checking proxy settings on the server
    5.) Updating and then removing Adobe Flash (thought it was tied to flash at first).  Problem persists even with no flash player installed.
    6.) Completed a failed update of .net, no effect
    7.) Loading up browsers in debug mode to try and find anything in the site code that I could relate between failed sites.  I found nothing I could identify
    Of all issues to finally be stumped on this seems like an easy one, but I can't even begin to come up with an idea at this point. 
    I have tried to lay out all of the facts that I know as plainly as I can.  I am hoping that someone has seen this before as this issue is effecting a number of differnt users and keeping them from doing portions of their job.
    Help is most appreciated, thank you!

    I was able to figure out a solution.
    CAUSE:
    It appears that the Internet isn’t fully up to date and ready to use EDns -- which is enabled on Windows Server 2008 R2 by default. The solution for this is to disable Edns. Note that this isn’t
    a problem for most Windows Server 2008 R2 member servers.  It’s only a problem for DNS *servers* that do recursive lookups.  i.e. likely only your domain controller will be affected if that is where your DNS Server role exists.
    SOLUTION:
    To disable EDns, you can do it from the command prompt, or by editing the registry.
    Create a DWORD called EnableEDNSProbes and set to 0 in HKLM\SYSTEM\CurrentControlSet\services\DNS\Parameters
    Restart the DNS Server service for it to take effect.

  • How do I run a non-server program on Windows Server 2008

    I currently run a synchronization software application on my desktop in order to backup and synchronize over 600GB of data.  I would like to install this on our server, which runs Windows Server 2008, but the software does not provide for installation
    on this operating system.  I continue to receive a message stating that the software may not run properly on Windows Server OS, but it does not allow me to bypass this message.  Is there any way to create a partition or trick the software into thinking
    that it is running on a different operating system or do I have to abandon Server 2008 and install a basic home operating system in order to run this software?  Any help would be tremendously appreciated.  
    Thanks!
     

    Hi,
    According to your description, my understanding is that you want to install an software which is not supported by Windows Server.
    Try to install this software in other compatibility mode:
    1. Right-click the installation program and select properties.
    2. Select Compatibility tab, select the checkbox Run this program in compatibility mode for.
    3. try to use different OS to install this program.
    Besides, you may right-click the installation program and select Run as administrator.
    Above are my personal suggestion and just for your reference. If the problem still exit, I suggest you to connect the software‘s support/form for better help.
    If you want to backup date, I suggest you to use Windows Server Backup, you may reference the link below for detailed information:
    http://technet.microsoft.com/en-us/library/cc770757.aspx
    Best Regards,           
    Eve Wang     

  • How uninstall WSUS server role from Windows Server 2008 R2 with database hosted on remote SQL server?

    Hello, 
    I'm looking to uninstall the WSUS server role 3.0 from Windows Server 2008 R2 SP1. The thing is the database is hosted on a remote MS SQL server. I want to remove the database as well. I would like help for figuring out what I need to do to completely remove
    WSUS and its database.
    Any kind of help is appreciated! Thanks  

    Hi,
    WSUS offers limited support for running database software on a computer that is separate from the computer where the rest of WSUS is installed. This section offers step-by-step
    instructions for how to install WSUS in this configuration.
    If you meet the uninstall issue with the normal uninstall, please post the detail information for us but if you just want to manage the WSUS related SQL data, you can refer
    the following KB then delete corresponding database.
    In the general procedure, you will create the related WSUS database as below::
    Run WSUS Setup from the command line, using the SQLINSTANCE_NAME=servername\instancename command-line option, where servername is the name of the remote computer, and instancename
    is the name of the SQL Server instance that you will use for WSUS.
    More information:
    Choose the Database Used for WSUS 3.0
    http://technet.microsoft.com/en-us/library/cc708452(v=ws.10).aspx
    Appendix B: Configure Remote SQL
    http://technet.microsoft.com/en-us/library/cc708595(v=ws.10).aspx
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Require list of all events for Windows Server 2008 Active Directory

    Hi all,
    I require list of all events for Windows Server 2008 Active Directory. Event Log name for Active Directory log is "Directory Service".
    Regards,
    SR

    Hi,
    Thanks for your posting.
    Do you mean you want to list all Active Directory logs into one file named “Directory Services”?
    If that, it’s hard to achieve. There are kinds of Active Directory logs stored in different locations and they have different file formats. It’s hard
    to collect them into one file.
    Active directory records events in the directory services log in Event Viewer. By default, Active Directory records only critical error events. To instruct Active
    Directory to record other events in the directory services log, we need to modify registry.
    For more information please refer to following MS articles:
    Active Directory Diagnostic Logging
    http://technet.microsoft.com/en-us/library/cc961809.aspx
    How to configure Active Directory diagnostic event log
    http://support.microsoft.com/kb/314980
    Lawrence
    TechNet Community Support

  • Windows Server 2008 R2: Using PowerShell to send a MSI file to all workstations

    Hello!
    We are currently using Windows Server 2008 R2. In the upcoming months, we are releasing new software. Instead of touching all the machines with gpupdate /force, we would like to know if we could somehow use Windows PowerShell and send that
    command to all the computers in our organization? We are currently in the process of using Group Policy Management to set up the new GPO. After we create them, we would like to send the MSI file to all workstations. I know it is SUPER easy to do within Windows
    Server 2012... as I have read articles and seen screenshots. I am just having a hard time figuring out how to make it work with Windows Server 2008 R2.
    Thanks!
    Megan

    New-PSSession -computername Computer
    where Computer is one of your remote computers.  If that succeeds, great!  But I'm guessing it won't and enabling that on all of your computers would require more effort than what you're trying to accomplish in the first place.
    Psexec is free to download and you don't have to deploy it:
    http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
    As far as identifying your target computers, it really depends on your environment.  Get-ADComputer is effective, but the example I provided above would get literally every computer in your active directory - is this something you want to deploy to
    any and all servers, workstations, etc?  How big and complex is your AD?  Is this something you need to coordinate with all your systems around about the same time, or can it be staggered?  Do you expect your target computers not to reboot between
    now and then?  I know that's a lot of questions, but your question is loaded and not easy to answer without knowing more about your environment.
    What about this?
    http://technet.microsoft.com/en-us/library/jj134201.aspx
    There is a requirement to have certain firewall exceptions on your target systems, but hopefully they are because that is the best approach.
    I hope this post has helped!

  • Powershell script to get firewall status on all computers on the domain

    Trying to create a script that will get the status of the firewall's on all computers in the domain. I have a decent start but the formatting looks like crap and I am sure there is a better way to do this. Any help would be appreciated.
    $strFilter = "computer"
    $objDomain = New-Object System.DirectoryServices.DirectoryEntry
    $objSearcher = New-Object System.DirectoryServices.DirectorySearcher
    $objSearcher.SearchRoot = $objDomain
    $objSearcher.SearchScope = "Subtree"
    $objSearcher.PageSize = 1000
    $objSearcher.Filter = "(objectCategory=$strFilter)"
    $colResults = $objSearcher.FindAll()
    foreach ($i in $colResults)
    $objComputer = $i.GetDirectoryEntry()
    $objComputer.Name
    netsh -r $objComputer.Name advfirewall show allprofiles state | Export-Csv -append -Path C:\Firewall.csv
    My export is not working as expected - it is just giving me gibberish numbers

    Using the above script I was able to get the netsh output to txt.  However the formatting is not very good.  Not sure if there is anything that can be done about that.  Unfortunately though the output does not even display the computer
    name so that the output is just a bunch of the following...
    Domain Profile Settings:
    State                                 OFF
    Private Profile Settings:
    State                                 OFF
    Public Profile Settings:
    State                                 OFF
    Ok.
    Domain Profile Settings:
    State                                 OFF
    Private Profile Settings:
    State                                 OFF
    Public Profile Settings:
    State                                 OFF
    Ok.
    How do I at least get the computer name in the text file?
    I added $objComputer.Name to the loop this and it didn't work...  it did not put this in the text file.
    Thanks for your help 
    $strFilter = "computer"
    $objDomain = New-Object System.DirectoryServices.DirectoryEntry
    $objSearcher = New-Object System.DirectoryServices.DirectorySearcher
    $objSearcher.SearchRoot = $objDomain
    $objSearcher.SearchScope = "Subtree"
    $objSearcher.PageSize = 1000
    $searcher=[adsisearcher]'(objectCategory=computer)'
    $searcher.FindAll() |
    ForEach-Object{
    $objComputer.Name
    netsh -r $_.Properties['name'][0] advfirewall show allprofiles state
    } |
    Out-File -append -FilePath C:\Firewall.txt

  • Error message after latest update and backup, can't operate program at all, no customer service.  LR 5.5, Windows 8.1

    I updated to LR 5.5 and later restarted my computer.  I didn't use the program for a few days and then when I did, it wanted to backup the catalog.  I agreed and closed the program.  The next time I opened it, it asked me for my region, saying it was required.  When I answered, I got an error message saying it has encountered an error reading the preview cache and needs to quit.  It fails to fix the error and gives the same message over and over.  I can't use the program at all.  Customer service has apparently been discontinued and I'm really at the end of my rope with this whole company.  I don't think I've ever had a mass-release program with so many problems.

    open disk utility, make sure that you're back to only 1 partition should be 'macintosh hd' unless you renamed it
    do not try to use the disk, instead DL the x64 8.1 pro ISO from this link, and once it is finished, then open bca and choose all 3 options (copy iso, copy windows support and install windows)
    http://getintopc.com/softwares/operating-systems/windows-8-1-download/

  • How to find and export all Scheduled Tasks in Domain with multiple servers.

    Hi everyone,
    I have been given a task of finding all of Scheduled Tasks in the Domain on all of the servers. So far I have manage to create a script that will pull out all Scheduled Tasks from one Server, in this case Domain Controller. 
    Butt in my company are more than 150 servers so I am looking for a script that can connect to AD (or LDAP), than to certain OUs, then pull out Server list and than query them for Schedule Task. I have found already some scripts online and tried to adjust
    them butt they simply didnt work.
    I am new in the company and still learning about the system,  this is my first real task so any help will be greatly appreciated.

    Just a tip that I found after running across this myself - if you run a
    Get-AdComputer -filter {operatingsystem -like '*server*'} | ft name | out-file servers.txt
    and then save the output to a text file, it may look good, but there may be white space at the end of the computer names. Make sure that only the computernames are in the file and then the script works great.
    http://absoblogginlutely.net
    This would happen because you are trying to get around the format of the output.  When you want the raw value do it this way;  it is faster and easier:
    Get-AdComputer -filter {operatingsystem -like '*server*'} |
         %{$_.Name } | out-file servers.txt
    Now there can never be any extra spaces and there will be no header to cause problems. 
    This is why it pays to spend time studying the details of how PowerShell works instead of just sticking things together until you get a result.  PowerShell is designed to do all of these things without fudging or guesswork but it requires that you actually
    learn how it works.  I highly recommend stating with a good technical book on PowerShell.
    ¯\_(ツ)_/¯

Maybe you are looking for

  • Check printing: Page break in Preview in PDF template

    Hi, We ran the the check printing report which had two invoices. We uploaded the data file and trying to view in the preview. But it displays the last invoice only. I created text field and wrote "page_break=yes". But nothing happens. Can you please

  • Select statement is very slow ?

    I have the table created in Oracle: CREATE TABLE tllog (autoid NUMBER(10,0) NOT NULL, txnum VARCHAR2(10), txdate DATE, brid VARCHAR2(4), tlid VARCHAR2(4), offid VARCHAR2(4), cfrid VARCHAR2(4), chkid VARCHAR2(4), tltxcd VARCHAR2(4), off_line VARCHAR2(

  • Please explain the following displayed properties

    Hi, I tried to change the format of displayname under search result rendering setting. I found the following string for displaying display name: <b>rnd:displayname(contentLink/[1;2-3]/alignTop/space-right=30</b> please explain how this setting works?

  • Weblogic-rdbms-jar.weblogic-rdbms-bean.tab

    Hi We are migrating our application from 8.1 to 9.2 and I am getting the following error while trying to install the application through the console. This application was working fine in 8.1, the only change i have done is to rebuild the application

  • How can I get back the Exact Duplicates menu item?

    All of a sudden, when I hold down the Option key and open the File Menu, I no longer get the item to show Exact Duplicates -- just plain Duplicates. I have no idea what's gone wrong! Does anyone have an idea how I can get Exact Duplicates back?