Browse Forum Posts by Tags

Showing related tags and posts for the Forums application. See all tags in the site
  • Re: How to get MS Office product key

    This script will give you a nice object with ComputerName, ProductName (tested on Office and Visio), and ProductKey. Works against the local and a remote computer. You can pass an array of computer names. function Get-MSOfficeProductKey { param ( [ string []] $computerName = "." ) $product...
    Posted to General (Forum) by Aleksandar on 05-18-2009
    Filed under: WMI, Registry, Product Key, MS Office, remote
  • remote changing software options

    MSOffice has some addons wich can be installed extra. (For example : the calendar ActiveX Object). Is it possible to REMOTE install a MSOffice option. Is this also possible via WMI-Object ? This question can be deleted. I solve this by using loading an ADM-file.
    Posted to General (Forum) by Bernard on 07-20-2009
    Filed under: remote, extra, MSOffice, installed components
  • How do you delete $NTUninstall* folders on remote computers listed on a text file

    I am a powersheel rookie and I need help with a powershell command to delete the C:\Windows\$NTUninstall* folders from remote computers that are listed on a text file. I have all my script stuff under C:\Scripts and I have a text file called computers.txt that has all the names of the computers on my...
    Posted to General (Forum) by shramj on 06-30-2010
    Filed under: remote, Remove Folders, Delete Folder, remove
  • PowerShell remoting and exit codes

    I have to call a PowerShell script from outside PowerShell (using a batch file). How do I read the exit code returned by the script after accessing a remote system? C:\gdp>powershell Get-Content ./test15.ps1 param($name) Get-Process -Name $name exit 82 ----- Example 1 (local): C:\gdp>powershell...
    Posted to General (Forum) by rockstar on 09-16-2010
    Filed under: Scripting, Remote host, remote, Command Line Script Execution, powershell 2.0
  • .net remote powershell with Exchange 2010 Cmdlets - Problem with "Script block literals are not allowed in restricted language mode or a Data section"

    Hi All, I am trying to run cmdlets from VB.NET. I managed to create a session to a remote session and to run either basic powershell commands or Exchange 2010 cmdlets. However I have a problem when trying to run more complex scripts, like "Get-Mailbox | Where-Object {$_.database -match "database"...
    Posted to PowerShell for Exchange (Forum) by OlivierR on 12-03-2010
    Filed under: remoting, Exchange, script block, remote, powershell, exchange 2010, .net
  • Remote operations

    Hi All. The list of operations which to me need to be fulfilled in PowerShell 2.0: *************************************** 1. To receive the list of all domain groups. 2. To receive all the user logins who are a part of certain domain group. 3. To receive all computer names whish is accessible on a network...
    Posted to Learn PowerShell (Forum) by Bush on 02-03-2012
    Filed under: Remote
  • Show a menu based on multiple variables!

    I'm writing a script in powershell. What I want to have happen, is to have a menu to restart a service appear based on an error being detected on the server. Say a service is not running, or outlook does not pass a connectivity test, I want the script to use both variables in determining to show...
    Posted to PowerShell for Exchange (Forum) by jwhite on 02-14-2012
    Filed under: InvokeCommand, remoting, Exchange, script block, remote, powershell, exchange 2010, Powershell command:
  • Re: Show a menu based on multiple variables!

    In my script I created a menu that allowed the user to restart a service on the server from within the powershell session. My idea was to use a if (condition) that showed the menu if the condition applied. I got it figured out though. I did this: if ((condition is true) -or (condition2 is true) -or ...
    Posted to PowerShell for Exchange (Forum) by jwhite on 02-15-2012
    Filed under: remoting, Exchange, remote, powershell, exchange 2010
  • Re: Add event logs to a transcript!

    Yes so I added the -append switch to the start-transcript. Also did a >> with get-eventlog so it would append that info to the info in the transcript. Problem is that it's throwing the error "unable to access the file as another person or process is all ready using it". So how would...
    Posted to PowerShell for Exchange (Forum) by jwhite on 02-20-2012
    Filed under: remoting, Exchange, script block, remote, powershell, exchange 2010, Powershell command:
  • Need to grab Exceptions from a test-outlookconnectivity test in powershell...

    I have a variable: $result = test-outlookconnectivity -protocol:http -trustanysslcert:$true -verbose What I want to do with it is pull any errors exceptions from the verbose output, and store them into a seperate variable so that I can use it how I want. So as an example: $error = @() $result = test...
    Posted to PowerShell for Exchange (Forum) by jwhite on 02-29-2012
    Filed under: InvokeCommand, script block, remote, powershell, exchange 2010, Powershell command:
Page 1 of 2 (15 items) 1 2 Next >
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.