Setting autoreply with powershell

Hello,
I need some assistance please.  I know how to Set- and Get-Mailboxautoreplyconfiguration.  What I need assistance with is, after a user leaves they will often set an out of office or auto reply message.  I am in need of a script that I can
GET the Auto reply message.  If one is set, I'd like to add additional text to it and then SET it.  If one isn't set already, I'd like to add a standard response.
I know this is extra coding language that I am not yet skilled in.  Does anyone have a script like this already?
Thank you in advance!

Hi,
You can check the repository for prewritten scripts:
https://gallery.technet.microsoft.com/scriptcenter
If you don't find what you're looking for and you can't write your own, you can request a script here:
https://gallery.technet.microsoft.com/scriptcenter/site/requests
I'm sure that people will share their scripts if they have something similar to what you're looking for (sorry, but I don't), but you may be better served by starting up there.
Let us know if you have any specific questions.
Good luck.
Don't retire TechNet! -
(Don't give up yet - 13,225+ strong and growing)

Similar Messages

  • DFS V2 setting ABE with Powershell

    Hello everybody
    we currently have a stand-alone DFS running on W2K8R2 without replication. Inside our central namespace the access based enumeration is enabled. In former times we create a dfs-share with dfscmd.exe for and used dfsutil.exe for setting the abe. This
    works very fine.
    Now I tried this with powershell:
    new-dfsnfolder creates the share as expected.
    grant-dfsnaccess seems to works without an error.
    But the share itself still has "use inheritance permissions from local filesystem" instead of "set explicit permissions on the dfs Folder" and is viewable for everybody. Switching inside the gui to "explicit permission" shows
    the permissions given with grant-dfsnaccess.
    Has anybody an idea how to switch this Setting?
    Best regards from Germany   Guido

    Hi Guido,
    It seems that you have encounter the issue described in this article:
    The Windows PowerShell cmdlet Grant-DfsnAccess does not change inheritance on DFS links
    This is because although the Grant-DfsnAccess cmdlet successfully configures the view permissions for individual groups or users, the cmdlet does not change the inheritance mode from use inherited to set explicit.
    To work around this problem, use one of the following method:
    dfsutil property sd grant \\Contoso.com\Software\Projects Contoso\SarahJones:RX protect
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Set multi user column with PowerShell used to work in 2010 but no longer works in 2013

    In SharePoint 2010 I used PowerShell to set the value of multi user people columns and it worked really well.  I attempt to use the same PowerShell to set the same column type in SharePoint 2013 and it fails.
    here is the PowerShell that I use in 2010:
    $web = Get-SPWeb "http://intranet"
    $list = $web.lists["TestList"]
    $item = $list.items.add()
    $item["Title"] = "Test multi user column"
    $users = @("Domain\user1", "Domain\user2")
    $userList = new-object Microsoft.SharePoint.SPFieldUserValueCollection
    foreach($user in $users)
    $spUser = $web.EnsureUser($user)
    $userValue = new-object Microsoft.SharePoint.SPFieldUserValue($web, $spUser.ID, $spUser.Name)
    $userList.Add($userValue)
    $item["MultiUserColumn"] = $userList
    $item.update()
    I have used this on three SharePoint 2013 farms with differing results.  On two of them I receive an error when running $item.update(): Exception calling "Update" with "0" argument(s): "Invalid look-up value.  A look-up
    field contains invalid data. Please check the value and try again."
    If I take one of the users out of the $users list then it works fine, but it will not allow multiple users to be set with PowerShell.  I can use the GUI to add more than one user but not PowerShell.
    Does anyone know if these methods have changed in 2013? I haven't been able to find anyone else with this issue.
    mmm... coffee...

    Not sure but maybe something to do with casting. Below is the code snippet from one of the blogs. Try modifying your script like below and see if still you get the error
    [Microsoft.SharePoint.SPFieldUserValueCollection]$lotsofpeople = New-Object Microsoft.SharePoint.SPFieldUserValueCollection
    $user1 = $w.EnsureUser("domain\user1");
    $user1Value = New-Object Microsoft.SharePoint.SPFieldUserValue($w, $user1.Id, $user1.LoginName)
    $user2 = $w.EnsureUser("domain\user2");
    $user2Value = New-Object Microsoft.SharePoint.SPFieldUserValue($w, $user2.Id, $user2.LoginName);
    $lotsofpeople.Add($user1Value);
    $lotsofpeople.Add($user2Value);
    $i["lotsofpeoplefield"] = $lotsofpeople;
    $i.Update();
    #-or-
    $l.Fields["lotsofpeoplefield"].ParseAndSetValue($i,$lotsofpeople);
    $i.Update();
    Reference to the link
    http://social.technet.microsoft.com/wiki/contents/articles/20831.sharepoint-a-complete-guide-to-getting-and-setting-fields-using-powershell.aspx
    Geetanjali Arora | My blogs |

  • BCS Set Permissions problem with PowerShell

    Hello, I am seeing an odd behavior, was wondering if anyone else encountered this problem before.
    I have a large BDC Model with multiple Entities (ECTs) that was created with Visual Studio, as part of the process we have a Powershell script that iteritates all the entities and sets their permissions to the 'All Authenticated Users' group. 
    $serviceContextURL="https://ACME.dsi-sp.com/"
    $ECTNamespace="ACMEBusinessDataConnectivityModel.ACMEReportingPortal"
    [String[]]$permissions=@("Execute","Edit","SelectableInClients","SetPermissions")
    $bdc = Get-SPBusinessDataCatalogMetadataObject -BdcObjectType Catalog -ServiceContext $serviceContextURL
    # Get the list of all LOB systems
    $lobs = $bdc.GetLobSystems("ACMEReportingPortal")
    Foreach($lob in $lobs){
        $lobEntities = $lob.Entities
        Write-Host $lob.DefaultDisplayName
        foreach($entity in $lob.Entities) {
            write-host "ECTName: " $entity.Name
            $ECTName = $entity.Name
            $ECT = Get-SPBusinessDataCatalogMetadataObject -BdcObjectType "Entity" -ServiceContext $serviceContextURL -Name $ECTName -Namespace  $ECTNamespace
            if($ECT-ne $null)
                 $user = New-SPClaimsPrincipal -EncodedClaim "c:0(.s|true"
                 Grant-SPBusinessDataCatalogMetadataObject -Identity $ECT -Principal $user -Right $permissions
                 write-host "Permissions set for " $ECTName
            else
                 write-host -f Yellow $ECTName external content type does not exists
    The script works fine as expected, however when you try to access the External List that is based on one of these ECTs, you get access denied. I then go into BCS validate the permissions are set as expected i.e. 'All Authenticated Users' is selected with
    the four permission, and it looks fine. try again access denied. I then go and remove the 'All Authenticated Users' group from Permissions, and manually re-add it back, try the External list again, now it works. !
    Has one seen this before or can comment on why it is not working with powershell?  is there a service recycling needed perhaps or something like that?
    Thanks in advance, mark
    Mark A. Eckert SharePoint Consultant Pharmica Consulting, Inc.

    Thanks for responding. 
    its too repetitive to keep adding permissions via CA, there are a lot of entities and we are in a constant state of developing the BDC solution so we are deploying it a lot.
    In ULS, it looks like impersonation is breaking down with ReadList and NT AUTHORITY\IUSR
    02/05/2013 13:45:55.52  w3wp.exe (0x0E7C)                        0x0834 Business Connectivity Services Business Data                
     g0jq High     Access Denied for User '0#.w|dsi-sp\meckert', which may be an impersonation by 'NT AUTHORITY\IUSR'. Securable MethodInstance with Name 'ReadList' has ACL that contains:   8b44f992-350b-4560-bf52-e0308d4b6382
    02/05/2013 13:45:55.53  w3wp.exe (0x0E7C)                        0x0834 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (EnsureListItemsData). Execution Time=636.737909427036 8b44f992-350b-4560-bf52-e0308d4b6382
    02/05/2013 13:45:55.53  w3wp.exe (0x0E7C)                        0x0834 SharePoint Foundation        
     Web Parts                      89a1 High     Error while executing web part: Microsoft.SharePoint.SPException: Access denied
    by Business Data Connectivity. ---> Access Denied for User '0#.w|dsi-sp\meckert', which may be an impersonation by 'NT AUTHORITY\IUSR'. Securable MethodInstance with Name 'ReadList' denied access. Stack Trace:    at Microsoft.SharePoint.BusinessData.Runtime.DataClassRuntime.ExecuteInternal(IDataClass
    thisDataClass, ILobSystemInstance lobSystemInstance, ILobSystem lobSystem, IMethodInstance methodInstanceToExecute, IMethod methodToExecute, IParameterCollection nonReturnParameters, Object[]& overrideArgs)     at Microsoft.SharePoint.BusinessData.Runtime.EntityRuntime.ExecuteInternal(IDataClass
    thisDataClass, ILobSystemInstance lobSystemInstance, ILobSystem lobSystem, IMethodInstance methodInstanceToExecute, IMeth... 8b44f992-350b-4560-bf52-e0308d4b6382
    02/05/2013 13:45:55.53* w3wp.exe (0x0E7C)                        0x0834 SharePoint Foundation        
     Web Parts                      89a1 High     ...od methodToExecute, IParameterCollection nonReturnParameters, Object[]&
    overrideArgs, IFilterCollection filters)     at Microsoft.SharePoint.BusinessData.Runtime.EntityRuntime.ExecuteFiltered(IEntity this, IFilterCollection filterCollection, IMethodInstance methodInstanceToExecute, ILobSystemInstance lobSystemInstance)    
    at Microsoft.SharePoint.BusinessData.Runtime.EntityRuntime.<FindFiltered>b__3(IEntity e, IMethodInstance mi, IFilterCollection fc, ILobSystemInstance lsi)     at Microsoft.SharePoint.BusinessData.Runtime.EntityInstanceEnumeratorFactory.CreateEntityInstanceEnumerator(IEntity
    entity, IMethodInstance methodInstance, IFilterCollection filters, ILobSystemInstance lobSystemInstance, ExecutionCallBack executionCallBack)     at Microsoft.SharePoint.BusinessData.MetadataModel.Sta... 8b44f992-350b-4560-bf52-e0308d4b6382
    02/05/2013 13:45:55.53* w3wp.exe (0x0E7C)                        0x0834 SharePoint Foundation        
     Web Parts                      89a1 High     ...tic.Entity.FindFiltered(IFilterCollection filterCollection, String finderName,
    ILobSystemInstance lobSystemInstance)     at Microsoft.SharePoint.SPListDataSource.GetEntityInstanceEnumerator(XmlNode xnMethodAndFilters)      --- End of inner exception stack trace ---    
    at Microsoft.SharePoint.SPListDataSource.GetEntityInstanceEnumerator(XmlNode xnMethodAndFilters)     at Microsoft.SharePoint.SPListDataSource.GetFilteredEntityInstancesInternal(XmlDocument xdQueryView, Boolean fFormatDates, Boolean fUTCToLocal,
    String firstRowId, Boolean fBackwardsPaging, String& bdcidFirstRow, String& bdcidNextPageRow, List`1& lstColumnNames, Dictionary`2& dictColumnsUsed, List`1& mapRowOrdering, List`1& lstEntityData)     at Microsoft.SharePoint.SPListDataSource.GetFilteredEntityInstances(XmlDocument
    xdQue... 8b44f992-350b-4560-bf52-e0308d4b6382
    02/05/2013 13:45:55.53* w3wp.exe (0x0E7C)                        0x0834 SharePoint Foundation        
     Web Parts                      89a1 High     ...ryView, Boolean fFormatDates, Boolean fUTCToLocal, String firstRowId, Boolean
    fBackwardsPaging, String& bdcidFirstRow, String& bdcidNextPageRow, List`1& lstColumnNames, Dictionary`2& dictColumnsUsed, List`1& mapRowOrdering, List`1& lstEntityData)     at Microsoft.SharePoint.SPListItemCollection.EnsureEntityDataViewAndOrdering(String&
    bdcidFirstRow, String& bdcidNextPageFirstRow)     at Microsoft.SharePoint.SPListItemCollection.EnsureListItemsData()     at Microsoft.SharePoint.SPListItemCollection.get_Count()     at Microsoft.SharePoint.WebControls.SPDataSourceView.ExecuteSelect(DataSourceSelectArguments
    selectArguments, String aggregateString, Boolean wantReturn, BaseXsltListWebPart webpart, SPListItem& listItem, SPListItemCollection& listItems, String[]& fieldList)     at Microsoft.ShareP... 8b44f992-350b-4560-bf52-e0308d4b6382
    02/05/2013 13:45:55.53* w3wp.exe (0x0E7C)                        0x0834 SharePoint Foundation        
     Web Parts                      89a1 High     ...oint.WebControls.SingleDataSource.GetXPathNavigatorInternal()    
    at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigator()     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) 8b44f992-350b-4560-bf52-e0308d4b6382
    02/05/2013 13:45:55.53  w3wp.exe (0x0E7C)                        0x0834 SharePoint Foundation        
     Web Parts                      89a2 High     InnerException 1: Access Denied for User '0#.w|dsi-sp\meckert', which may be
    an impersonation by 'NT AUTHORITY\IUSR'. Securable MethodInstance with Name 'ReadList' denied access. Stack Trace:    at Microsoft.SharePoint.BusinessData.Runtime.DataClassRuntime.ExecuteInternal(IDataClass thisDataClass, ILobSystemInstance
    lobSystemInstance, ILobSystem lobSystem, IMethodInstance methodInstanceToExecute, IMethod methodToExecute, IParameterCollection nonReturnParameters, Object[]& overrideArgs)     at Microsoft.SharePoint.BusinessData.Runtime.EntityRuntime.ExecuteInternal(IDataClass
    thisDataClass, ILobSystemInstance lobSystemInstance, ILobSystem lobSystem, IMethodInstance methodInstanceToExecute, IMethod methodToExecute, IParameterCollection nonReturnParameters, Object[]& overrideArgs, IFilterColle... 8b44f992-350b-4560-bf52-e0308d4b6382
    02/05/2013 13:45:55.53* w3wp.exe (0x0E7C)                        0x0834 SharePoint Foundation        
     Web Parts                      89a2 High     ...ction filters)     at Microsoft.SharePoint.BusinessData.Runtime.EntityRuntime.ExecuteFiltered(IEntity
    this, IFilterCollection filterCollection, IMethodInstance methodInstanceToExecute, ILobSystemInstance lobSystemInstance)     at Microsoft.SharePoint.BusinessData.Runtime.EntityRuntime.<FindFiltered>b__3(IEntity e, IMethodInstance
    mi, IFilterCollection fc, ILobSystemInstance lsi)     at Microsoft.SharePoint.BusinessData.Runtime.EntityInstanceEnumeratorFactory.CreateEntityInstanceEnumerator(IEntity entity, IMethodInstance methodInstance, IFilterCollection filters,
    ILobSystemInstance lobSystemInstance, ExecutionCallBack executionCallBack)     at Microsoft.SharePoint.BusinessData.MetadataModel.Static.Entity.FindFiltered(IFilterCollection filterCollection, String finderName, ILobSystemInstance ... 8b44f992-350b-4560-bf52-e0308d4b6382
    02/05/2013 13:45:55.53* w3wp.exe (0x0E7C)                        0x0834 SharePoint Foundation        
     Web Parts                      89a2 High     ...lobSystemInstance)     at Microsoft.SharePoint.SPListDataSource.GetEntityInstanceEnumerator(XmlNode
    xnMethodAndFilters)  8b44f992-350b-4560-bf52-e0308d4b6382
    02/05/2013 13:45:55.53  w3wp.exe (0x0E7C)                        0x0834 SharePoint Foundation        
     Monitoring                     b4ly High     Leaving Monitored Scope (DataBinding DataFormWebPart (Submission Milestone)). Execution
    Time=684.852125060587 8b44f992-350b-4560-bf52-e0308d4b6382
    Mark A. Eckert SharePoint Consultant Pharmica Consulting, Inc.

  • Set CN Name SameAccoutName UserPrincipalName and distinguished name with powershell

    I am trying to set a users  CN, Name, SameAccoutName, UserPrincipalName, and distinguished name to uppercase with PowerShell.
    I can set the SAMAccoutName and UPN but I cannot figure out how to set the other 3 attributes.
    I am only changing the names to all uppercase.  nothing  more.  The names will not change just the case. 
    I have a script i have put together to plug in the info so i just need to do one and i will let the script do the rest.  
    Is this possible to change the mentioned attributes with Power-Shell?
    I know the below piece works fine for those 2 attributes just cant get the other 3. 
    Thanks
    Set-ADUser -Identity $user -SamAccountName $upperSAM -UserPrincipalName $upperUPN
    Lishron

    That will not set anything to uppercase.  You are also missing 90% of the script.  What makes you tnink this will work.
    Her is an example:
    $name='SomeName'
    $name.ToUpper()
    In the modern world of computing we do not use all uppercase.  This pracatice was ended in computing shortly after WWII.  Only military teletype maintained this because 90% ot the machines could only pring uppercase.
    Uppercase is harder to read and is basically counter to all modern computer conventions.  I notice that office clerks and data entry people whoare minimally trained in computer data entry like all uppercase because they hate having to use the shift
    key and being careful to correct text errors.
    Any system that requires uppercase will define an entry method that automatically forces upper case.  AD does not require this.
    For logons and email case is never considered. any case works as all do caseless compares.
    ¯\_(ツ)_/¯

  • Activate File History in windows 8.1 with Powershell

    Hey :) 
    I just wondered if there is any way to activate File History in Windows 8.1 with Powershell? 
    I want to make a script where File History get activated automaticly, and since I want to do this on a lot of computers I want to use powershell. 

    Hi,
    Looks like you can just adjust a registry value to enable/disable this feature:
    http://www.eightforums.com/tutorials/7706-file-history-enable-disable-windows-8-a.html
    EDIT: Since you want to do this on multiple machines, I'd suggest using GP to set this value.
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • Create a Loolup field with PowerShell but Change the Default Display field

    Hi 
    I am creating the a load of site columns with PowerShell. In the case of a Lookup Column I want to ensure that a the the industry column is checked programmatically.
    $myField.LookupList = $spLookupList.ID
    $myField.LookupField = $LookUpmyField.InternalName
    As you can see there is no provision for a display name (Industry) which I want to display to the user once they select a lookup column
    I just know somebody is going to suggest CAML !!!!  Btw the code works but none of the checkboxes are selected as expected. 
    Daniel
    Freelance consultant

    I tried a same in past. Couldn't find a perfect code. You can try below:
    http://blogs.msdn.com/b/varun_malhotra/archive/2008/06/19/how-to-set-the-default-value-for-a-look-up-field-for-an-item-as-it-is-being-created.aspx
    <Code>
    SPList docs = w.Lists["Documents"];
    SPFieldLookup fl = (SPFieldLookup)docs.Fields["City"];
    fl.DefaultValue = "1;#Mexico City";
    fl.Update();
    </Code>
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/afd71aa8-54d3-424f-9b72-67328e080048/update-lookup-field-powershell?forum=sharepointdevelopmentprevious
    $w = Get-SPWeb http://web
    $l = $w.Lists["MyDocumentLibrary"]
    $lf = $l.Fields["lookupColumn"]
    $i = $l.Items[0] #List item to update
    $lf.ParseAndSetValue($i,"1;#lookupvalue") #1;#lookupvalue refers to the ID of the lookup item and the value of the lookup item.
    $i.Update()
    If this helped you resolve your issue, please mark it Answered

  • Right click on script"run with PowerShell"

    I have set the execution policy in GPO to remoteSigned, and it is working fine, when I run the script from cmd prompt powershell –f
    When I right click the script and choose “run with PowerShell” it starts with this text in red
    Set-ExecutionPolicy : Windows PowerShell updated your execution policy successfully, but the setting is overridden by a policy defined at a more specific scope. 
    Due to the override, your shell will retain its current effective executionpolicy of RemoteSigned
    The script is working, but it do not look right for a user of the script.
    Sometimes when I run the script “run with PowerShell” it prompts the user to overwrite policy, again no matter if I choose yes or no, the script will run.
    I am running on Windows 8.1 Update 1 x64, Powershell 4.0
    Do anyone know how to fix?
    Kind Regards
    Jens
    Jens Lund

    There is another Group Policy setting that is setting a different policy. Post in the GP forum to get help with fixing this.
    Possibility #2.  You are setting the policy in your profile or on the command line.
    ¯\_(ツ)_/¯

  • How to add ProxyAddress attribute to multiple users? with powershell

    I need to add the attribute ProxyAddress several users at once, in AD 2008 R2. with powershell.
    Thanks beforehand.

    Hi,
    Use Set-ADUser:
    http://ss64.com/ps/set-aduser.html
    See the -Add parameter.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • GP logon script with PowerShell

    We have a Windows Server 2012 domain and would like to create a GP logon script with PowerShell.
    So if you execute the .ps1 file, the specified logon script settings (including parameters) would be applied automatically in the GP.
    Any idea of such command line?

    Thanks for the tips!
    May not be the easiest solution, but it works:
    I created a backup of the GPO set fully graphical interface, and I've copied ps1 file in the same folder.
    #Start
    #Create GPO
    $gponame = "Program_AutoStart"
    Write-Host ""
    $ou = Read-Host "What is your Organisational Unit name?"
    Write-Host ""
    $enforce = Read-Host "Do you want enforce Group Policy link? (Yes/No)"
    $dc1 = $env:userdnsdomain
    $dc1length = $env:userdnsdomain.Length
    $dc1s = $env:userdnsdomain.Split(".")
    $dc1count = $dc1s[$dc1s.Count-1].Length+1
    $dc1max = $dc1length-$dc1count
    $dc1 = $dc1.Substring(0,$dc1max)
    $dc2 = $env:userdnsdomain.Split(".")
    $dc2 = $dc2[$dc2.Count-1]
    Write-Host ""
    Write-Host -Object "Create a new Group Policy Object..."
    #replace GPO settings
    ##backup.xml file
    $backupFilePath = ".\backup\{2F708EB2-F154-4739-8F6D-1F16C954649C}\Backup.xml"
    $content = Get-Content -path $backupFilePath
    $content | foreach { $_.Replace("mydomainname","$env:userdnsdomain") } | Set-Content $backupFilePath
    $content = Get-Content -path $backupFilePath
    $content | foreach { $_.Replace("mycomputername","$env:COMPUTERNAME") } | Set-Content $backupFilePath
    $content = Get-Content -path $backupFilePath
    $content | foreach { $_.Replace("mynetbiosname","$env:userdomain") } | Set-Content $backupFilePath
    ##backup.xml file
    $bkupinfoFilePath = ".\backup\{2F708EB2-F154-4739-8F6D-1F16C954649C}\bkupinfo.xml"
    $content = Get-Content -path $bkupinfoFilePath
    $content | foreach { $_.Replace("mydomainname","$env:userdnsdomain") } | Set-Content $bkupinfoFilePath
    $content = Get-Content -path $bkupinfoFilePath
    $content | foreach { $_.Replace("mycomputername","$env:COMPUTERNAME") } | Set-Content $bkupinfoFilePath
    $content = Get-Content -path $bkupinfoFilePath
    $content | foreach { $_.Replace("mynetbiosname","$env:userdomain") } | Set-Content $bkupinfoFilePath
    ##gpreport.xml file
    $gpreportFilePath = ".\backup\{2F708EB2-F154-4739-8F6D-1F16C954649C}\gpreport.xml"
    $programexe = "$env:logonserver\$share\My_Program\program.exe"
    $content = Get-Content -path $gpreportFilePath
    $content | foreach { $_.Replace("mycommand","$programexe") } | Set-Content $gpreportFilePath
    Write-Host ""
    $parameters = Read-Host "Add your parameters"
    $content = Get-Content -path $gpreportFilePath
    $content | foreach { $_.Replace("myparameters","$parameters") } | Set-Content $gpreportFilePath
    ##scripts.ini file
    $gpreportFilePath = ".\backup\{2F708EB2-F154-4739-8F6D-1F16C954649C}\DomainSysvol\GPO\User\Scripts\scripts.ini"
    $content = Get-Content -path $gpreportFilePath
    $content | foreach { $_.Replace("mycommand","$programexe") } | Set-Content $gpreportFilePath
    $content = Get-Content -path $gpreportFilePath
    $content | foreach { $_.Replace("myparameters","$parameters") } | Set-Content $gpreportFilePath
    #Import GPO and link
    Write-Host ""
    Write-Host -Object "Import Group Policy settings..."
    Import-GPO -BackupGpoName "$gponame" -TargetName "$gponame" -Path ".\backup" -CreateIfNeeded
    New-GPLink -Name "$gponame" -target "ou=$ou,dc=$dc1,dc=$dc2" -Enforced $enforce -LinkEnabled Yes
    #Replace undo
    ##backup.xml file
    $content = Get-Content -path $backupFilePath
    $content | foreach { $_.Replace("$env:userdnsdomain","mydomainname") } | Set-Content $backupFilePath
    $content = Get-Content -path $backupFilePath
    $content | foreach { $_.Replace("$env:COMPUTERNAME","mycomputername") } | Set-Content $backupFilePath
    $content = Get-Content -path $backupFilePath
    $content | foreach { $_.Replace("$env:userdomain","mynetbiosname") } | Set-Content $backupFilePath
    ##backup.xml file
    $content = Get-Content -path $bkupinfoFilePath
    $content | foreach { $_.Replace("$env:userdnsdomain","mydomainname") } | Set-Content $bkupinfoFilePath
    $content = Get-Content -path $bkupinfoFilePath
    $content | foreach { $_.Replace("$env:COMPUTERNAME","mycomputername") } | Set-Content $bkupinfoFilePath
    $content = Get-Content -path $bkupinfoFilePath
    $content | foreach { $_.Replace("$env:userdomain","mynetbiosname") } | Set-Content $bkupinfoFilePath
    ##gpreport.xml file
    $content = Get-Content -path $gpreportFilePath
    $content | foreach { $_.Replace("$programexe","mycommand") } | Set-Content $gpreportFilePath
    $content = Get-Content -path $gpreportFilePath
    $content | foreach { $_.Replace("$parameters","myparameters") } | Set-Content $gpreportFilePath
    ##scripts.ini file
    $content = Get-Content -path $gpreportFilePath
    $content | foreach { $_.Replace("$programexe","mycommand") } | Set-Content $gpreportFilePath
    $content = Get-Content -path $gpreportFilePath
    $content | foreach { $_.Replace("$parameters","myparameters") } | Set-Content $gpreportFilePath
    #End

  • HT204053 I have another Apple ID from when I originally set up this iPod, now I can't reset it as I am also set up with Find My iPhone which may have been doen by mistake I have been in contact with Apple itself and they can't fix the problem so far

    i have originally forgotten my pass code for a new iPod Touch, now I have with Apple's help reset it to factory, my issue is due to the change in my Apple ID , the iPod will not  let me set it up under the new Id or the old one.I also have been set up with find my iPhone and I don't remember if I did this or not, could have been the grand children trying to help out. Any ideas or suggestions, I haven't even used this yet and I have owned it for 6months already. Really am disappointed that the process is so difficult to navigate.

    I have also noticed the same "problem".  I do not fully understand the impact of using the same ID on multiple computers and devices if I want to keep them all in sync.

  • HT204053 I share an iTunes account with my daughter, I just got an ipad and need to set up with my own I'd for iCloud sync  how can I keep my apps and music?

    I share an iTunes account with my daughter, I just got an ipad and need to set up with my own I'd for iCloud sync  how can I keep my apps and music?

    ColleenMcG wrote:
    You can continue to share the same iTunes account ID with your daughter and set up a separate iCloud account with a different ID.
    => is this a different iCloud account for each device?  I thought iCloud account ID had to match some iTunes account ID, for which we only have one i Tunes account?
    You need to set up a separate iCloud account for each person that does not want to share their iCloud data.  If you share an iCloud account with someone, any data you both sync with the shared account is merged, and you end up with each other's data on your device(s).  If, for example, you owned two devices and someone else in the family also owned two devices, you would both want your own iCloud accounts, and you would each set up your personal iCloud account on the two devices you own.  In other words, you want a separate iCloud account for each person to be used on the devices they own.  Each iCloud account has to have a separate Apple ID.  The ID does not need to be the same as the ID used for iTunes.  Many families perfer to share the same iTunes account/ID, but maintain separate iCloud accounts with different IDs to keep there data separated.
    ColleenMcG wrote:
    It does not need to be the same as the ID used for iCloud.
    => what ID, iTunes?  So I can have a separate iCloud account "only" ID which I also assume must be some [valid] email address?  The children currently do not have email accounts anywhere.
    Yes, I was referring to the iTunes ID not needing to be the same as the ID used for iCloud.  In order to set up an Apple ID your children will need to have a valid email address that can be verified by Apple.  Apple requires this so they have a way of contacting the owner if there is a problem with the account, such as when you may need to reset the password on the account.  When you set up the ID, Apple will send a verification email to this email account and you will need to click on the verificating link in the email to complete the process.  If they don't currently have an email account you can just set one up with gmail or another free email hosting service.  They don't have to use the account but you will need it to set up the ID.

  • HT202213 I have a new computer we set up with itunes home sharing. Can I add music to this new computer sync my iphone and ipod to it instead of the original computer. I'm not sure if it makes a difference if I have a different apple id than with our orig

    I have a new computer that we set up with itunes home sharing and I need some assistance. I also have my own apple id and would like to make the new computer the one I use for my music. Should I set up a whole new itunes library/account or still work with the home sharing?

    Correct. When you update via iTunes all synced media that is not in your iTunes library will be lost.
    As IO said before:
    You can redownload most iTunes pruchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    I do not think it included audio books.

  • I have a IPhone 5 and Iphone 5s. Both are set up with the same account ID and running IOS 8.0.2. When the phones are connected to the same Wifi at home, both phones will ring when someone call in to one of the phone.  Anyway to solve this problem?

    I have a IPhone 5 and Iphone 5s, each phone is activited with a different service provider. Both are set up with the same account ID and running IOS 8.0.2. When the phones are connected to the same Wifi at home, both phones will ring when someone call in to one of the phone.  Hence you do not know exactly which line the caller called.  If you answered using the wrong phone, then anyone calling the other number will not get through.  Anyway to solve this problem?

    Hey David Koh TP,
    Thanks for the question. It sounds like your devices are set up to use continuity together. Specifically, it sounds like you are signed into the same Apple ID in FaceTime, and have iPhone Cellular Calls enabled. To resolve your issue, simply disable this setting:
    Connect your iPhone, iPad, and iPod touch using Continuity
    http://support.apple.com/kb/HT6337
    Turn off iPhone cellular calls
    To turn off iPhone Cellular Calls on a device, go to Settings > FaceTime and turn off iPhone Cellular Calls.
    Thanks,
    Matt M.

  • I want to Facetime my Ipad from my Iphone but they are both set up with the same Apple id.  Do I need to create a new id for one of them in order to facetime with the other?

    I want to Facetime my Ipad from my Iphone but they are both set up with the same Apple id.  Do I need to create a new id for one of them in order to facetime with the other?

    You should be able to call the iPad using your Apple ID from the iPhone. When calling from iPad use the iPhone's phone number to initiate the call.

Maybe you are looking for

  • Mini DVI-Adapter Not Working

    Today I went to the Apple Store and got myself one of those fancy new Mini-DVI to DVI adapters, hoping it would work with my screen at home, which I had previously running on the Mini Displayport to VGA Adapter on my original MacBook. Strangely, when

  • I'm using ethernet connection to apple tv and it won't recognize my apple id. It keeps telling me my id or password are incorrect, but I know for sure they are not. Is anyone able to help me?

    Tried resetting my password trhough itunes and the iforgot.apple.com I unplugged all the cords from the apple tv for 30 seconds, re-connected and still have the same problem My network meets all the specs netflix/hulu isn't showing up on the main men

  • 925 video - no sound

    Hi, taking video using the camera app has no sound. The speaker & mic work in all other cases such as calls and youtube. the volume is 30/30 and set to "ring & vibrate". anyone got any ideas how to fix? Solved! Go to Solution.

  • Deactivating pop ups

    Hi @ all! How can I deactivate the pop up, which apears when i open a pdf- document? Adobe reader show me some bubbles, one text is like this: "get all files easily open on all devices" Is there a possibility to turn off this bubbles? Thanks for your

  • Not able to download apps on iPhone 3G

    I recently changed my credit card on my iTunes account and now I cannot download any apps on my iPhone. It keeps saying "Your account info has changed. Go to iTunes store on your computer and update your biling info. I have done this like 10 times an