PowerShell Command / Script to add additional Global Administrator as an Owner to a Security Group In Office 365

Hi There,
I have a requirement as the Office 365 Administrator with the following:
Anyone, know if there is a command in Power Shell (Script) for Office 365 to add an additional Global Administrator as an Owner to a particular
Security Group or all Security Groups or to a Security Group that contains a certain word or phrase.
1. Add a Global Administrator to ALL Security Groups:
2. Add a Global Administrator to a Specific Security Group:
3. Add a Global Administrator to ALL Security Groups that contain a specific Word / Phrase:
Any suggestions would be helpful.  This has become a necessity for my organisation.
Thank You in advance.
Shenil

#Add a Global Administrator to ALL Security Groups:
$GlobalAdminID = Get-MsolRoleMember -RoleObjectId "62e90394-69f5-4237-9190-012177145e10" | Select EmailAddress
#$GlobalAdminID
foreach($id in $GlobalAdminID.EmailAddress)
Get-DistributionGroup | ? {$_.GroupType -eq "Security"}| %{Add-DistributionGroupMember -Identity $_.DisplayName -Member $id }
#Add a Global Administrator to a Specific Security Group:
$GlobalAdminID = Get-MsolRoleMember -RoleObjectId "62e90394-69f5-4237-9190-012177145e10" | Select EmailAddress
foreach($id in $GlobalAdminID.ObjectId)
Get-DistributionGroup | ? {$_.GroupType -eq "Security" -and $_.DisplayName -eq 'Name1'}| %{Add-DistributionGroupMember -Identity $_.DisplayName -Member $id }
#Add a Global Administrator to ALL Security Groups that contain a specific Word / Phrase:
$GlobalAdminID = Get-MsolRoleMember -RoleObjectId "62e90394-69f5-4237-9190-012177145e10" | Select EmailAddress
foreach($id in $GlobalAdminID.ObjectId)
Get-DistributionGroup | ? {$_.GroupType -eq "Security" -and $_.DisplayName -like '*Some Phrase*'}| %{Add-DistributionGroupMember -Identity $_.DisplayName -Member $id }
Note: I didn't test this - Please test or use -Whatif
Change RoleObjectID as applicable
Get-MSOLRole will give company administrator GUID that;s Global Admin ID
Regards Chen V [MCTS SharePoint 2010]

Similar Messages

  • Script needed to query last logon for users within an AD security group

    Hi all,
    I'm looking for a vbscript that will query a specific AD security group, and export the following information into an Excel document:
    1. Full name of the user.
    2. A timestamp of the last logon for each user.
    Any help would be great.

    At the moment I'm using a batch script to attempt to query a few different security groups. Below is a line from the script:
    dsquery group -samid <group name> | dsquery * -filter "&(objectClass=person)(ObjectCategory=user)" -attr cn lastLogonTimestamp
    There a two issues with the command.
    1. The results aren't being pulled from the security group specified.
    2. The timestamp is in an unreadable format. I've understand this needs to be converted?
    The Powershell option looks handy, but sadly the clients environment is Server 2003 based with no Powershell option.

  • Add list item using anonymous user in public website of shareopint 2013 office 365

    Can any body know the solution to over come of following error while add list item using anonymous user using CSOM in shareopint 2013 office 365 public website.
    I have tried following solution to narrow down the error from "Access permission"
    http://sharepointtaproom.com/2014/08/28/anonymous-api-access-for-office-365-public-sites/#comment-2304

    Try below:
    http://www.codeproject.com/Articles/785099/Publish-a-Form-for-Anonymous-Users-on-a-Public-Sit
    http://blogs.technet.com/b/sharepointdevelopersupport/archive/2013/06/13/how-to-allow-anonymous-users-to-add-items-to-sharepoint-list-using-client-object-model.aspx
    // Allows AddItem operation using anonymous access
    private
    static voidAllowAnonAccess(){
    Console.WriteLine("Enabling Anonymous access....");
    SPWebApplication webApp =
    SPWebApplication.Lookup(new
    Uri(webAppUrl));
                webApp.ClientCallableSettings.AnonymousRestrictedTypes.Remove(typeof(Microsoft.SharePoint.SPList),
    "GetItems");
                webApp.ClientCallableSettings.AnonymousRestrictedTypes.Remove(typeof(Microsoft.SharePoint.SPList),
    "AddItem");
                webApp.Update();
    Console.WriteLine("Enabled Anonymous access!");  
    // Revokes Add/Get Item operation using anonymous access
    private static
    voidRemoveAnonAccess(){
    Console.WriteLine("Disabling Anonymous access....");
    SPWebApplication webApp =
    SPWebApplication.Lookup(new
    Uri(webAppUrl));
                webApp.ClientCallableSettings.AnonymousRestrictedTypes.Add(typeof(Microsoft.SharePoint.SPList),
    "GetItems");
                webApp.ClientCallableSettings.AnonymousRestrictedTypes.Add(typeof(Microsoft.SharePoint.SPList),
    "AddItem");
                webApp.Update();
    Console.WriteLine("Disabled Anonymous access!"); 
    http://www.fiechter.eu/Blog/Post/12/Create-a-survey-for-anonymous-users-on-Office-365
    If this helped you resolve your issue, please mark it Answered

  • I need to export the mailbox (archive) for pst by powershell (Office 365 azure)

    I opened a support request with MS for: Move After 14 days all items in the folder "deleted items" to the archive. 
    - But after two days I noticed that the emails were moved "after 14 days" of the "all folders", moving approximately 90% of the emails from all users (roughly 2GB each user). 
    - How do I export a mailbox (with sub folders) to pst file (by powershell)? 
    - After, i can to import this pst file by powershell to mailbox?! 
    - Or I can undo what has been done and return the emails to the main box?
    Thanks.
    - - My system:
    Office 365 
    Módulo Windows Azure Active Directory para Windows PowerShell
    All users are in the office 365 (I have no local exchange)
    Dirsync, ADFS, DC in cloud (azure)

    Hi,
    You may try to run the following command:
    New-MailboxExportRequest -Mailbox JSmith -FilePath "\\SERVER01\PSTFileShare\Jsmith.pst" -IsArchive
    For more information, please refer:
    Mailbox import and export requests
    http://technet.microsoft.com/en-us/library/ee633455(v=exchg.150).aspx
    If you need further assitance about the powershell command, you can post a question in Exchange forum:
    https://social.technet.microsoft.com/Forums/office/en-US/home?category=exchangeserver
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to add user in administrator group of project server 2010 with powershell command ?

    I want to add one user in Administrator group of Project Server .
    Please let me know how to do this through power shell command.

    Hello,
    You would need to use the PSI in your PowerShell commands. Here is a .Net example to get you started, convert this to PowerShell:
    http://blogs.msdn.com/b/ajjose/archive/2013/05/24/creating-a-project-server-user-and-adding-user-to-a-group-through-psi.aspx
    Examples of PowerShell and the PSI can be found here in some of the scripts:
    http://gallery.technet.microsoft.com/scriptcenter/Update-Server-Lookup-table-bb1ae14f
    http://gallery.technet.microsoft.com/scriptcenter/Create-Server-2010-2013-19bd3cc7
    http://gallery.technet.microsoft.com/scriptcenter/Bulk-create-Server-Sites-784f7b29
    These wont do what you need but will give you an idea of using the PSI in PowerShell
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Powershell command invoke-sqlcmd in batch script

    I have a powershell command that I want to be run in batch script. It works well in powershell window but I cannot call it properly in batch script. the powershell command goes like this:
    invoke-sqlcmd -inputfile "D:\Reports\sql.sql" -ServerInstance Server1 | export-csv "D:\RawDataFiles\Raw\samp.csv" -Force -En UTF8
    I hope somebody could help me out. Also, is it possible to include batch variable in replace of the file path for input and output file instead of putting the whole path in powershell command (stil run inside in batch script)?
    Thanks.

    I have found that works :) to run the invoke-sqlcmd within batch script:
    I have use this line:
    powershell -Command "& {Add-PSSnapin SqlServerCmdletSnapin100; Add-PSSnapin SqlServerProviderSnapin100; invoke-sqlcmd -inputfile '%sqlPath1%' -ServerInstance %Server% | export-csv '%out_path1%\%out1_fn%' -Force -En UTF8;}"
    works like charm yay! ^_^

  • Powershell Command for global package update?

    Dear Community,
    at the moment I'm testing some packages on my development system without any App-V infrastructure in use.
    So I create my package on the sequencer and use this powershell command to publish the package:
    Add-AppvClientPackage -Path <Path to App-V Share> | Mount-AppVClientPackage | Publish-AppvClientPackage -Global
    This works fine and I'm able to test my application. But I don't know the PowerShell command to update an existing package on my system.
    Any help appreciated!
    Thanks,
    Hoba

    We are talking different things.
    Providing a new version for an already existing package does not remove the previous from disk (for instance people might be using version 1 while other people use version 2 on the same machine).
    If you want to fully remove version 1 then yes, do the command RalJans said.  It is my understanding that the App-V client is smart enough to stream only the 'new' bits from version 2, so even though they both remain on disk you aren't necessarily eating
    up 2x the diskspace.  I'm sure you could override that by mounting, etc.
    As for your question about unpublishing, I've always had it recommended to perform an unpublish and remove because remove only will leave behind certain things, so unpublishing is cleaner.  And yes be careful, the -all refers to all packages on the
    machine, it is not part of the package name.
    I don't know what you mean by refresh options.  The way upgrading works is by 2 packages containing the same package GUID but a different package GUID that both get added|published to the same machine.  You don't have to (you also don't get to)
    choose which package is a new version.  For example, you may consider it a new version, but if you had to go back to the sequencer and start over from scratch, the App-V Client will not allow you to treat them as the same package.

  • Administrator Unable To Run Powershell Commands When UPD Enabled

    Hi All,
    We have a single Windows 2012 R2 RDS configured with UPD enabled for the defined collection. So far everything is working fine for standard users; however, the domain administrator can no longer run PowerShell commands (see attached screenshot). 
    I believe this is the result of the UPD "impersonating" the local c:\. How can I get around this for domain administrator accounts?
    Thanks in advance.

    Hi,
    By UPD, you mean user profile disk, right?
    In addition, all non-administrator users can run the exact same PowerShell cmdlet, right?
    What about other PowerShell cmdlets, are administrators able to run them?
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Powershell command to add users to list

    I am looking for a powershell command to add an Active Directory user to a list and set the permission level on the list, e.g. read or contribute.
    Ideally, the script should check if the list is inheriting permissions from the parent and if so, remove the inheritance, clear the list of users and add the specified users.
    Any ideas?

    I haven't tested this but the logic is like below
    $spweb = Get-SPWeb -Identity ("URL")
    $splist = $spweb.Lists['List Name']
    if($splist.Permissions.Inherited)
    Write-Host "Let's Break the inhertiance..."
    $splist.BreakRoleInheritance($true , $true)
    #Role assignment
    $role = $splist.RoleAssignments["Read"]
    #Specific User
    $account = $spweb.EnsureUser('Domain\User')
    #remove assignment
    $assignment = New-Object Microsoft.SharePoint.SPRoleAssignment($account)
    $assignment.RoleDefinitionBindings.Remove($role)
    $splist.RoleAssignments.Remove($assignment)$split.Update()
    else
    $role = $splist.RoleAssignments["Read"]
    $account = $spweb.EnsureUser('Domain\User')
    $assignment = New-Object Microsoft.SharePoint.SPRoleAssignment($account)
    $assignment.RoleDefinitionBindings.Add($role)
    $splist.RoleAssignments.Add($assignment)
    $splist.Update()
    Regards Chen V [MCTS SharePoint 2010]

  • Another powershell workflow script will run in powershell ISE but no powershell command prompt.

    Hi,
    Im having some issue with a few powershell workflow scripts that will work in powershell ISE but they will appear to not run in a Admin powershell command prompt session.
    The script is simple.
    Workflow NewUser
        Param (
                [Parameter(Mandatory=$True)]
                [string] $givenname,
                [Parameter(Mandatory=$True)]
                [string] $surname,
                [Parameter(Mandatory=$True)]    
                [string] $template
        "Param1 = $givenname"
        "Param2 = $surname"
        "Param3 = $template"
    The saved file name is NewUser.ps1.
    When I run .\NewUser.ps1 -givenname test -surname test -template test
    Nothing happens.   In Powershell ISE, it outputs
    Param1 = test
    Param2 = test
    Template = test
    I can run .\NewUser.ps1 skdjfsdkfjsdkfjsdkfj in powershell command
    and nothing happens.
    I notice this behavior with a number of scripts that I get working with ISE and they dont work in powershell command prompt. 
    We are using Powershell 4.0
    Thanks Lance

    When I run
    Set-psdebug -step
    then newuser.ps1 -givename test -surname test -template test
    it gets to the line workflow newuser and quits
    am I missing some dependency?
    Running  [System.Threading.Thread]::GetDomain().GetAssemblies() in powershell commmand returns the following.
    GAC    Version        Location                                                                                       
    True   v4.0.30319     C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll                                   
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.ConsoleHost\v4.0_3.0.0.0__31bf...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll      
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.C...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management.Automation\v4.0_3.0.0.0__31bf3856...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\Syst...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xm...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.DirectoryServices\v4.0_4.0.0.0__b03f5f7f11d5...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management\v4.0_4.0.0.0__b03f5f7f11d50a3a\Sy...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Management.Infrastructure\v4.0_1.0.0.0__3...
    False  v4.0.30319                                                                                                    
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration.Install\v4.0_4.0.0.0__b03f5f7f...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_64\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\Sy...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Security\v4.0_3.0.0.0__31bf385...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Activities\v4.0_3.0.0.0__31bf3...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\Sy...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Workflow.ServiceCore\v4.0_3.0....
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities.Presentation\v4.0_4.0.0.0__31bf38...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework\v4.0_4.0.0.0__31bf3856ad364e3...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsB...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_64\PresentationCore\v4.0_4.0.0.0__31bf3856ad364e35\Prese...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.X...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Core.Activities\v4.0_3.0.0.0__...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Diagnostics.Activities\v4.0_3....
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Management.Activities\v4.0_3.0...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Security.Activities\v4.0_3.0.0...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Utility.Activities\v4.0_3.0.0....
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.WSMan.Management.Activities\v4.0_3.0.0.0_...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.DurableInstancing\v4.0_4.0.0.0__31bf...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf385...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Dat...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Commands.Utility\v4.0_3.0.0.0_...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\Syst...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Mic...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Commands.Management\v4.0_3.0.0...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Dynamic\v4.0_4.0.0.0__b03f5f7f11d50a3a\Syste...
    and for the ISE it returns this 
    GAC    Version        Location                                                                                                     
    True   v4.0.30319     C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll                                                 
    False  v4.0.30319     C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe                                                
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.ISECommon\v4.0_3.0.0.0__31bf3856ad364e35\Mic...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll                    
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Window...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll    
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management.Automation\v4.0_3.0.0.0__31bf3856ad364e35\Syste...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll          
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.GPowerShell\v4.0_3.0.0.0__31bf3856ad364e35\M...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.Composition\v4.0_4.0.0.0__b77a5c561934e089\...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Editor\v4.0_3.0.0.0__31bf3856ad364e35\Micros...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework\v4.0_4.0.0.0__31bf3856ad364e35\Presentation...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll          
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_64\PresentationCore\v4.0_4.0.0.0__31bf3856ad364e35\PresentationCore.dll  
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.Xaml.dll          
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Config...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll            
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\Syste...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationProvider\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationP...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll      
    False  v4.0.30319                                                                                                                  
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.DirectoryServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Di...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Managemen...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Management.Infrastructure\v4.0_1.0.0.0__31bf3856ad364e3...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll  
    False  v4.0.30319                                                                                                                  
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework.AeroLite\v4.0_4.0.0.0__31bf3856ad364e35\Pre...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationTypes\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationType...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemXml\v4.0_4.0.0.0__b77a5c561934e089\Pr...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration.Install\v4.0_4.0.0.0__b03f5f7f11d50a3a\Syste...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_64\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transacti...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Security\v4.0_3.0.0.0__31bf3856ad364e35\Micr...
    False  v4.0.30319                                                                                                                  
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.GraphicalHost\v4.0_3.0.0.0__31bf3856ad364e35...
    False  v4.0.30319                                                                                                                  
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemCore\v4.0_4.0.0.0__b77a5c561934e089\P...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll            
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Commands.Utility\v4.0_3.0.0.0__31bf3856ad364...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemData\v4.0_4.0.0.0__b77a5c561934e089\P...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Commands.Management\v4.0_3.0.0.0__31bf3856ad...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceProcess\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Servi...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Activities\v4.0_3.0.0.0__31bf3856ad364e35\Mi...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activitie...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Workflow.ServiceCore\v4.0_3.0.0.0__31bf3856a...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities.Presentation\v4.0_4.0.0.0__31bf3856ad364e35\Sys...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Core.Activities\v4.0_3.0.0.0__31bf3856ad364e...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Diagnostics.Activities\v4.0_3.0.0.0__31bf385...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Management.Activities\v4.0_3.0.0.0__31bf3856...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Security.Activities\v4.0_3.0.0.0__31bf3856ad...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Utility.Activities\v4.0_3.0.0.0__31bf3856ad3...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.WSMan.Management.Activities\v4.0_3.0.0.0__31bf3856ad364...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.DurableInstancing\v4.0_4.0.0.0__31bf3856ad364e35\S...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\Syst...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll  
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemXmlLinq\v4.0_4.0.0.0__b77a5c561934e08...
    True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Dynamic\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Dynamic.dll    
    Thanks Lance

  • Extend/Configure VS2013 to add additional Refactoring commands?

    Is it possible to Extend/Configure VS2013 to add additional Refactoring commands?
    I'm interested in a command similar to Resharper's Introduce Field for example.
    Introduce Field (Select an expression or a local variable and apply this refactoring. It will create a new field or constant and initialize it with the expression or local variable initializer. The field can be assigned in its initializer, type constructors
    or current members.)
    Thank you,
    Daniel
    bit.ly/danielsilion

    Thanks for Deric's help.
    Hi siliond,
    Thank you for posting in MSDN forum.
    Is it possible to Extend/Configure VS2013 to add additional Refactoring commands?
    I agree with Deric's suggestion, I think that you can use the extension of Resharper to add the refactorings in VS2013. Since the
    Visual Studio General Forum is not support the VS Extension tools issue, if you have any issue about the
    Resharper, please you submit a discussion to Q AND A on
    Resharper, may be you will get better support about the issue.
    Thanks for your undserstanding.
    Best Regards,
    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.
    Click
    HERE to participate the survey.

  • Powershell Script: Add users from an OU to an AD security Group

    Hi
    can anybody point me to a link or have a script which I can get a list of users from an OU then put them into an AD security group
    Regards

    Hi - thanks for the info the script didn't run as expected.
    What we are trying to achieve is that we have an OU with several child OU's below and we need to capture all user accounts from al OU's and then either be able to export to a CSV or pipe the out put to an AD group
    dsquery user "OU=organizationalunit,DC=name,dc=com" -limit 0 >>
    filename.txt
    with the filename.txt you can do this:
    for /f "tokens=* delims= " %i in (filename.txt) do dsmod group "CN=groupname,OU=organizationalUnit,DC=name,DC=com" -addmbr %i
    or, just pipe the initial results into the dsmod command:
    dsquery user "OU=organizationalunit,DC=name,dc=com" | dsmod group "CN=groupname,OU=organizationalUnit,DC=name,DC=com" -addmbr

  • Project Server 2010: We want to create the User Profile Service but it keeps hanging when attempted from Central Administration. Any PowerShell commands to do this instead?

    We want to create the User Profile service in Project Service 2010. Are there any PowerShell commands that can be used to achieve this?
    Thanks in advance.

    Hello,
    See the links below for examples:
    http://www.harbar.net/archive/2010/10/30/avoiding-the-default-schema-issue-when-creating-the-user-profile.aspx
    http://thesharepointfarm.com/2011/03/configuring-user-profile-service-and-user-profile-synchronization-service-via-powershell/
    http://blogs.msdn.com/b/rcormier/archive/2012/05/10/how-to-create-a-sharepoint-user-profile-service-application-with-powershell.aspx
    I'd also review this is if it is stuck starting:
    http://www.harbar.net/articles/sp2010ups2.aspx
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Exchange Powershell Commands Missing from EMS

    I just performed a fresh install of Exchange 2013 w/ SP1 on Windows 2012 Standard R2 which is also a domain controller in an organization that already has an Exchange 2010 server (on a separate server). When I launch the Exchange Management Shell and attempt
    to run "Get-ExchangeServer" I get the error "The term 'Get-ExchangeServer' is not recognized as the name of a cmdlet, function, script file, or operable program..." I see that \\HKLM\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns\Microsoft.Exchange.Management.PowerShell.SnapIn
    is loading the module name "D:\Program Files\Microsoft\Exchange\bin\Microsoft.Exchange.PowerShell.Configuration.dll" (which is the correct path to that file).
    I've restarted the server twice and have the same issue. Also tried doing an unattended install of just the Managment Tools since using the setup GUI didn't give me the option of uninstalling and reinstalling the Management Tools since the checkbox is greyed
    out. I searched the ExchangeSetup log for errors and didn't find any.
    How do I get the Exchange Management Shell to register the Exchange Powershell commands? Do I need to uninstall Exchange and Re-Install?

    Open Powershell as Administrator.
    1. Add-Pssnapin *Setup*
    2. Install-CannedRbacRoleAssignments -InvocationMode Install -verbose
    3. Install-CannedRbacRoleAssignmentSRAP -InvocationMode Install -verbose
    4. Install-CannedRbacRoles -InvocationMode Install -verbose
    Try the above commands and let me know if that helps
    if that doesn't can you run the below command reply back with the output
    Get-Command |?{$_.Name -like "Get-Exchange*"}
    ***VOTE IF HELPFUL / MARK ANSWER IF ANSWERS ***
    Pavan Maganti ~ ( Exchange | 2003/2007/2010/E15(2013)) ~~ Please remember to click “Vote As Helpful&quot; if it really helps and &quot;Mark as Answer” if it answers your question, “Unmark as Answer” if a marked post does not actually answer your
    question. ~~ This Information is provided is &quot;AS IS&quot; and confers NO Rights!!

  • I need a powershell command to replace unicode chars in a file name to a blank space

    Can anyone provide me with a powershell command which will search and replace a specific unicode character in a file name to just a blank space?
    Thanks

    Hi Roadster198,
    In addition, if you want to search and rename the text files under a folder, please also check this script:
    Get-ChildItem -Path d:\test1\1\*.txt -Recurse| where{$_.name -like "*ф*"}|rename-item -newname { $_.name -replace "ф"," " }
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    TechNet Community Support

Maybe you are looking for

  • Lion Server VPN: Static IPs to Clients?

    Does anyone have any thoughts as to whether it might be possible to have the Lion L2TP server hand out static IPs to clients when they connect, based on the username they use to log in? Looking at this snippet from /Library/Preferences/SystemConfigur

  • Can't able to view DataControls in Data controller accordian

    Hi I am using jdeveloper 11.1.1.6.0, i created all business components and pushed them into application Module. And in another application i created project viewcontroller, in which i added business component jar to adf library. Even after refreshing

  • How Line Item Dimensions

    Hi.. I found some dimensions need to be conveted into line items. but when checked with cube that dimension has more than 1 characteristics. In that case what i have to do..and how can i convert it into line items

  • How to obtain URL in PL/SQL

    How do I obtain the URL of the page I'm sitting on within PL/SQL? I have a dynamic page with PL/SQL code and I need to obtain the URL how would I go about that?

  • SPA 122 Loosing Registration

    I'm having the same issue as other posts, and not seeing any solution. Hoping that the pieces below narrow down the issue, which I'm feeling is something simple. I have 2 numbers registered with voip.ms When I was on DSL, no issues the registration -